public final class JettyWebSocketHandler extends EngineIoWebSocket implements org.eclipse.jetty.websocket.api.WebSocketListener
Emitter.Listener| Constructor and Description |
|---|
JettyWebSocketHandler(EngineIoServer server) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<String,List<String>> |
getConnectionHeaders() |
Map<String,String> |
getQuery() |
void |
onWebSocketBinary(byte[] payload,
int offset,
int len) |
void |
onWebSocketClose(int statusCode,
String reason) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketError(Throwable cause) |
void |
onWebSocketText(String message) |
void |
write(byte[] message) |
void |
write(String message) |
public JettyWebSocketHandler(EngineIoServer server)
public Map<String,String> getQuery()
getQuery in class EngineIoWebSocketpublic Map<String,List<String>> getConnectionHeaders()
getConnectionHeaders in class EngineIoWebSocketpublic void write(String message) throws IOException
write in class EngineIoWebSocketIOExceptionpublic void write(byte[] message)
throws IOException
write in class EngineIoWebSocketIOExceptionpublic void close()
close in class EngineIoWebSocketpublic void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListenerpublic void onWebSocketClose(int statusCode,
String reason)
onWebSocketClose in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListenerpublic void onWebSocketError(Throwable cause)
onWebSocketError in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListenerpublic void onWebSocketBinary(byte[] payload,
int offset,
int len)
onWebSocketBinary in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketText(String message)
onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListenerCopyright © 2022. All rights reserved.