await Connect
suspend fun SendbirdChat.awaitConnect(userId: String, authToken: String? = null, apiHost: String? = null, wsHost: String? = null): AuthUser
Connects to SendbirdChat with given User
ID and auth token. If you have created User
s without auth token, pass authToken
with null
.
Return
The AuthUser object of the current user and the socket connection state.
Since
4.17.0
Parameters
user Id
User ID to connect with. Refer to User.userId.
auth Token
Auth token. It should not be saved on the client side.
api Host
Custom API Host. Internal use only.
ws Host
Custom WS Host. Internal use only.