Connection state.
Authorized user. Will be initialized on successful PChatSDK.connect.
Used for connecting to chat room server. On success will initialize PChatSDK.user and set PChatSDK.state to States.CONNECTED. Triggers Events.CONNECT on success.
Room id
Username
JWT access token from CAS
Disconnects from chat server and sets PChatSDK.state to States.DISCONNECTED. Triggers Events.DISCONNECT.
Used for loading older chat room's history. Consecutive calls will be handled in a queue. Triggers Events.HISTORY_LOAD on success.
Timestamp to load messages before, by default oldest message's timestamp is used
Removes all listeners.
Removes all listeners for event.
Removes all listeners for events.
Removes specific listener for event.
Removes specific listener for multiple events.
Used for sending a message to the chat room. Triggers Events.MESSAGE on success.
Message content
List of all messages sorted from oldest to most recent.