Chat Room Listener
Interface for delivering chat room lifecycle events as well as received messages and events.
Functions
Link copied to clipboard
Link copied to clipboard
Called when the room attempts to establish or reestablish socket connection, occurs when the room transitions into connecting state.
Link copied to clipboard
Called when room connection is closed and user is no longer able to send and receive messages, occurs when the room transitions into disconnected state.
Link copied to clipboard
Called after receiving chat room event.
Link copied to clipboard
Called after receiving delete message event.
Link copied to clipboard
Link copied to clipboard
abstract fun onUserDisconnected(room: ChatRoom, event: DisconnectUserEvent)
Content copied to clipboard
Called after receiving disconnect user event.