|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WebSocketHandler
A very simple interface adapter class that implements all methods and expose a WebSocket API close to the JavaScript Counterpart.
| Method Summary | |
|---|---|
void |
onByteMessage(WebSocket webSocket,
byte[] data,
int offset,
int length)
Invoked when a byte message is received. |
void |
onClose(WebSocket webSocket)
Invoked when a WebSocket is closed. |
void |
onError(WebSocket webSocket,
WebSocketProcessor.WebSocketException t)
Invoked when a WebSocket produces an error. |
void |
onOpen(WebSocket webSocket)
Invoked when a WebSocket is opened. |
void |
onTextMessage(WebSocket webSocket,
String data)
Invoked when a String message is received |
| Method Detail |
|---|
void onByteMessage(WebSocket webSocket,
byte[] data,
int offset,
int length)
throws IOException
webSocket - a WebSocketdata - offset - length -
IOException
void onTextMessage(WebSocket webSocket,
String data)
throws IOException
webSocket - a WebSocketdata -
IOException
void onOpen(WebSocket webSocket)
throws IOException
WebSocket is opened.
webSocket -
IOExceptionvoid onClose(WebSocket webSocket)
WebSocket is closed.
webSocket -
void onError(WebSocket webSocket,
WebSocketProcessor.WebSocketException t)
WebSocket produces an error.
webSocket -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||