Telegraph
Telegraph copied to clipboard
Protocol 'WebSocket' as a type cannot conform to 'Equatable'
You are likely trying to put a WebSocket in a Dictionary. Unfortunately that isn't possible and that will result in the compiler error that you mentioned in the title. At some point I might refactor WebSocket to make that easier, but until then I recommend wrapping the WebSocket in a struct or class. You can give that object a unique identifier and make it support Equatable / Hashable