v4.4.0
·
173 commits
to master
since this release
Features
Disconnect Websocket only
When you call SendbirdChat.disconnect
, it disconnects the WebSocket and clears local cache. You can think of it as logging out.
In some cases, you need to only disconnect the WebSocket. You can now do it by calling SendbirdChat.disconnectWebSocket
.
It only disconnects the WebSocket and preserves the local cache.
SendbirdChat.disconnectWebSocket {
// onDisconnected
}
To connect again after disconnecting with disconnectWebSocket()
,
use SendbirdChat.connect().
SendbirdChat.connect(userId: userId) { user, error in
if let user = user {
// onConnected
} else {
// Handle error.
}
}
Improvements
- Fixed to prevent initializing SendbirdChat multiple times with same
applicationId
andisLocalCachingEnabled