Skip to content

Auto leave rooms and authentication. #985

Answered by ghost
jonataslaw asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #985 on December 09, 2020 02:45.