public interface WebSocketHandler
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onClose(WebSocketConnection connection)
Called when a connection is closed.
|
void |
onMessage(WebSocketConnection connection,
byte[] msg) |
void |
onMessage(WebSocketConnection connection,
String msg) |
void |
onOpen(WebSocketConnection connection) |
void |
onPing(WebSocketConnection connection,
byte[] msg) |
void |
onPong(WebSocketConnection connection,
byte[] msg) |
void onOpen(WebSocketConnection connection) throws Throwable
Throwablevoid onClose(WebSocketConnection connection) throws Throwable
void onMessage(WebSocketConnection connection, String msg) throws Throwable
Throwablevoid onMessage(WebSocketConnection connection, byte[] msg) throws Throwable
Throwablevoid onPing(WebSocketConnection connection, byte[] msg) throws Throwable
Throwablevoid onPong(WebSocketConnection connection, byte[] msg) throws Throwable
ThrowableCopyright © 2014. All rights reserved.