-
When user logout, I would like to close the websocket connection. Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
enisdenjo
Jun 24, 2022
Replies: 1 comment 1 reply
-
I recommend running the client in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
juan2lv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.