Package client
Interface WebSocketEventListener
public interface WebSocketEventListener
WebSocketEventListener - Interface for handling WebSocket events.
Defines methods for message reception, connection status changes, and error handling.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the WebSocket connection is establishedvoidCalled when the WebSocket connection is closedvoidCalled when an error occurs in the WebSocket connectionvoidonMessageReceived(Message message) Called when a message is received over the WebSocket connectionvoidupdateUserList(String chatName, String[] activeUsers, ArrayList<String> inChatUsers) Called when a chat update occurs
-
Method Details
-
onMessageReceived
Called when a message is received over the WebSocket connection -
onConnected
void onConnected()Called when the WebSocket connection is established -
onDisconnected
void onDisconnected()Called when the WebSocket connection is closed -
onError
Called when an error occurs in the WebSocket connection -
updateUserList
Called when a chat update occurs
-