public interface WebSocketListener
WebSocket
.Modifier and Type | Method and Description |
---|---|
void |
onWebsocketClose(WebSocket ws)
Called after the call of WebSocket.close() or when the other endpoint of
the connection is closed.
|
void |
onWebsocketMessage(WebSocket ws,
java.lang.String message)
Called when a full message has been received.
|
void |
onWebsocketOpen(WebSocket ws)
Called after successful handshake.
|
void onWebsocketOpen(WebSocket ws)
ws
- The WebSocket
instance where this event happenedvoid onWebsocketClose(WebSocket ws)
ws
- The WebSocket
instance where this event happened