Called when the room attempts to establish or reestablish socket connection, occurs when the room transitions into connecting state.
During this state user cannot send nor receive messages.
Called when room connection is closed and room will not automatically try to re-establish it, occurs when the room transitions into disconnected state.
During this state user cannot send nor receive messages.
reason why the room has disconnected
Called after receiving a chat room event.
This method is not called for:
Received event
Called after receiving a chat room message. The message can be sent by any of the users in the room, including the current user.
Received message
Called after receiving a delete message event.
Received delete message event
Called after receiving a disconnect user event.
Received disconnect user event
Generated using TypeDoc
Utility type defining events emitted by chat room. These include both lifecycle events as well as received messages and room events.