connect

fun connect(userId: String, authToken: String? = null, 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 auth token with null.

Parameters

userId

User ID to connect with. Refer to User.userId.

authToken

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

userId

User ID to connect with. Refer to User.userId.

authToken

Auth token. It should not be saved on the client side.

apiHost

Custom API Host. Internal use only.

wsHost

Custom WS Host. Internal use only.

handler

Callback handler.