connect
Connects to SendbirdChat with given User ID and auth token. If you have created Users without auth token, refer to connect or just pass auth token with null.
Parameters
user
User ID to connect with. Refer to User.userId.
auth
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 Users without auth token, refer to connect or just pass authtoken with null.
Parameters
user
User ID to connect with. Refer to User.userId.
auth
Auth token. It should not be saved on the client side.
api
Custom API Host. Internal use only.
ws
Custom WS Host. Internal use only.
handler
Callback handler.