Repository navigation
Auto leave rooms and authentication. #985
|
Hi, thanks for this library. |
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 |
|
#986 I apparently forgot to add that function. |
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