Skip to content

How to close ws connection when user logout #374

Answered by enisdenjo
juan2lv asked this question in Q&A
Discussion options

You must be logged in to vote

I recommend running the client in lazy mode which automatically closes the connection after all subscriptions complete and opens a new one when new subscriptions are made. This way, you don't have to manage the client manually, simply subscribe and unsubscribe when necessary.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@juan2lv
Comment options

Answer selected by juan2lv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants