---
title: "==(_:_:)"
framework: wifiaware
role: symbol
role_heading: Operator
path: "wifiaware/waendpoint/==(_:_:)"
---

# ==(_:_:)

Two endpoints are logically equivalent if they have the same service type (publish vs subscribe) with the same name, and refer to the same device.

## Declaration

```swift
static func == (lhs: WAEndpoint, rhs: WAEndpoint) -> Bool
```

## Parameters

- `lhs`: The left-hand side object.
- `rhs`: The other object to compare.

## Return Value

Return Value true if both sides are logically equivalent, false otherwise

## See Also

### Hashing and comparing

- [hash(into:)](wifiaware/waendpoint/hash(into:).md)
