Skip to content

chatClient.closeConnection() and chatClient.disconnectUser() #677

Answered by imtoori
Abacaxi-Nelson asked this question in Q&A
Discussion options

You must be logged in to vote

hey @Abacaxi-Nelson
closeConnection closes the connection without clearing the user
This will not trigger default auto-retry mechanism for reconnection.
You need to call openConnection to reconnect.

disconnectUser closes the connection and clears the state of the client

you would call the former when you want to temporarily close the connection, the latter is used for signout

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by imtoori
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