@WebSocket public class JettyWebSocketHandlerAdapter extends Object
@WebSocket
handler that delegates events to a
reactive WebSocketHandler
and its session.Constructor and Description |
---|
JettyWebSocketHandlerAdapter(WebSocketHandler handler,
Function<org.eclipse.jetty.websocket.api.Session,JettyWebSocketSession> sessionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
onWebSocketBinary(byte[] message,
int offset,
int length) |
void |
onWebSocketClose(int statusCode,
String reason) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketError(Throwable cause) |
void |
onWebSocketFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame) |
void |
onWebSocketText(String message) |
public JettyWebSocketHandlerAdapter(WebSocketHandler handler, Function<org.eclipse.jetty.websocket.api.Session,JettyWebSocketSession> sessionFactory)
@OnWebSocketConnect public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
@OnWebSocketMessage public void onWebSocketText(String message)
@OnWebSocketMessage public void onWebSocketBinary(byte[] message, int offset, int length)
@OnWebSocketFrame public void onWebSocketFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame)
@OnWebSocketClose public void onWebSocketClose(int statusCode, String reason)
@OnWebSocketError public void onWebSocketError(Throwable cause)