public abstract class WebbitWebSocketHandler extends Object implements org.webbitserver.WebSocketHandler
| Constructor and Description |
|---|
WebbitWebSocketHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
attachWebSocket(org.webbitserver.WebSocketConnection connection,
ActorRef<Object> actor) |
void |
onClose(org.webbitserver.WebSocketConnection connection) |
void |
onMessage(org.webbitserver.WebSocketConnection connection,
byte[] msg) |
void |
onMessage(org.webbitserver.WebSocketConnection connection,
String msg) |
void |
onPing(org.webbitserver.WebSocketConnection connection,
byte[] msg) |
void |
onPong(org.webbitserver.WebSocketConnection connection,
byte[] msg) |
public static final String MH_KEY
public final void onMessage(org.webbitserver.WebSocketConnection connection,
String msg)
throws Throwable
onMessage in interface org.webbitserver.WebSocketHandlerThrowablepublic final void onMessage(org.webbitserver.WebSocketConnection connection,
byte[] msg)
throws Throwable
onMessage in interface org.webbitserver.WebSocketHandlerThrowablepublic void attachWebSocket(org.webbitserver.WebSocketConnection connection,
ActorRef<Object> actor)
public void onClose(org.webbitserver.WebSocketConnection connection)
throws Throwable
onClose in interface org.webbitserver.WebSocketHandlerThrowablepublic void onPing(org.webbitserver.WebSocketConnection connection,
byte[] msg)
throws Throwable
onPing in interface org.webbitserver.WebSocketHandlerThrowable