connect
Connects to SendbirdChat with given User
ID and auth token. If you have created User
s without auth token, refer to connect or just pass auth token with null
.
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. Set null if not used.
handler
Callback handler.
fun connect(userId: String, authToken: String?, apiHost: String?, wsHost: String?, handler: ConnectHandler?)
Connects to SendbirdChat with given User
ID and auth token. If you have created User
s without auth token, refer to connect or just pass authtoken
with null
.
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.
handler
Callback handler.