connect
Connects to SendbirdChat with given User ID and auth token. If you have created Users without auth token, pass authToken with null.
Since
4.15.0
Parameters
User ID to connect with. Refer to User.userId.
Auth token. It should not be saved on the client side.
Custom API Host. Internal use only.
Custom WS Host. Internal use only.
Callback handler.
Deprecated
As of 4.17.0, replaced with awaitConnect(userId, authToken, apiHost, wsHost).
Replace with
awaitConnect(userId, authToken, apiHost, wsHost)Connects to SendbirdChat with given User ID and auth token. If you have created Users without auth token, pass authToken with null.
Return
The AuthUser object of the current user and the socket connection state.
Since
4.15.0
Parameters
User ID to connect with. Refer to User.userId.
Auth token. It should not be saved on the client side.
Custom API Host. Internal use only.
Custom WS Host. Internal use only.