public interface WebSocketListener
WebSocketListener for WebSocket events. Use the appropriate listener for receiving message bytes.| Modifier and Type | Method and Description |
|---|---|
void |
onClose(WebSocket websocket)
Invoked when the
WebSocket is closed. |
void |
onError(java.lang.Throwable t)
Invoked when the
WebSocket is open. |
void |
onOpen(WebSocket websocket)
Invoked when the
WebSocket is open. |
void onOpen(WebSocket websocket)
WebSocket is open.websocket - the WebSocketvoid onClose(WebSocket websocket)
WebSocket is closed.websocket - the WebSocketvoid onError(java.lang.Throwable t)
WebSocket is open.t - a ThrowableCopyright © 2018. All Rights Reserved.