Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to identify which WebSocket closed #1009

Open
doodahdayz opened this issue Mar 6, 2024 · 0 comments
Open

How to identify which WebSocket closed #1009

doodahdayz opened this issue Mar 6, 2024 · 0 comments
Labels

Comments

@doodahdayz
Copy link

If you have an array of WebSocketts created to listen for different servers and you receive a peer disconnected I can find no way to tell which of the WebSockets this message was for... The WebSockets are not "Equatable" in swift and on the didReceive we only get the WebSocketEvent and WebSocketClient passed in... Should not WebSocketClient be assigned a UUID or something to identify it so we can tell which of our WebSockets this event was for? I need to take action for the appropriate WebSocket when the WebSocket disconnects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant