Authorized user. Will be initialized on successful ChatSDK.connect.
List of all user's rooms. Will be initialized on successful ChatSDK.connect.
Used for connecting to chat server. On success will initialize ChatSDK.user, ChatSDK.rooms and set ChatSDK.state to States.CONNECTED. Triggers ChatEvents.CONNECT on success.
JWT access token from CAS
Used for creating a chat room. Triggers ChatEvents.ROOM_ADDED on success.
Ids of users to invite to the room
Room's name
Disconnects from chat server and sets ChatSDK.state to States.DISCONNECTED. Triggers ChatEvents.DISCONNECT.
Used for leaving the room. Triggers ChatEvents.ROOM_REMOVED on success.
Removes all listeners.
Removes all listeners for event.
Removes all listeners for events.
Removes specific listener for event.
Removes specific listener for multiple events.
Adds listener for event.
Adds the same listener for multiple events.
Get user's room by id.
Used for updating user's username. Triggers ChatEvents.USER_META_UPDATED on success.
Username to set
Connection state.