Package com.flashphoner.fpwcsapi.ws
Interface WebSocketChannelEvents
public interface WebSocketChannelEvents
WebSocketChannelEvents callback interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onWebSocketClose
(int code) Fire on websocket connection closevoid
onWebSocketError
(String description) Fire on websocket communication errorvoid
onWebSocketMessage
(WSMessage wsMessage) Fire on websocket message receivedvoid
Fire on websocket connection is open
-
Method Details
-
onWebSocketOpen
void onWebSocketOpen()Fire on websocket connection is open -
onWebSocketMessage
Fire on websocket message received- Parameters:
wsMessage
-
-
onWebSocketClose
void onWebSocketClose(int code) Fire on websocket connection close- Parameters:
code
-
-
onWebSocketError
Fire on websocket communication error- Parameters:
description
-
-