Learn how to connect to the chat server and set connection settings.
disconnect()
method when an app goes to the background and the connect()
method when an app goes to the foreground. As a result, the SDK will disconnect/connect the current user from the Chat server when the app goes to the background/foreground mode.
Argument | Required | Description |
---|---|---|
userId | yes | The ID of a user. |
userPassword | yes | The password of the user. |