Auto leave rooms and authentication. #985
-
Hi, thanks for this library. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
1, yes but you can also just call unsubscribeAll but yes it does auto remove disconnected sockets from rooms (here called topics) 2, yes the WebSocket has its http request passed in upgrade so you can do auth that way. Reconnect you have to solve yourself but that's like 9 lines of JavaScript |
Beta Was this translation helpful? Give feedback.
-
#986 I apparently forgot to add that function. |
Beta Was this translation helpful? Give feedback.
1, yes but you can also just call unsubscribeAll but yes it does auto remove disconnected sockets from rooms (here called topics)
2, yes the WebSocket has its http request passed in upgrade so you can do auth that way.
Reconnect you have to solve yourself but that's like 9 lines of JavaScript