Skip to content

Commit 00174a9

Browse files
committed
Equatable conformance
1 parent 6619793 commit 00174a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/ObservableWebSocketClient/Interface/ObservableWebSocketClient+Equatable.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import Foundation
1010
extension ObservableWebSocketClient {
1111
public static func == (lhs: ObservableWebSocketClient,
1212
rhs: ObservableWebSocketClient) -> Bool {
13-
lhs.id == rhs.id
13+
lhs.id == rhs.id &&
14+
lhs.websocketURL == rhs.websocketURL &&
15+
lhs.isConnected == rhs.isConnected &&
16+
lhs.codableMessage == rhs.codableMessage &&
17+
lhs.error == rhs.error
1418
}
1519
}

0 commit comments

Comments
 (0)