Skip to main content

Disconnect

The SDK provides the disconnect method to disconnect the IM connection.

Example Usage

RongIMLib.disconnect().then(() => {
console.log('Disconnected successfully')
})

Applicable Scenarios

This method is recommended when logging out or switching accounts.