public class StandardWebSocketHandlerAdapter extends Endpoint
WebSocketHandler
and its session.Constructor and Description |
---|
StandardWebSocketHandlerAdapter(WebSocketHandler handler,
Function<Session,StandardWebSocketSession> sessionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
onClose(Session session,
CloseReason reason) |
void |
onError(Session session,
Throwable exception) |
void |
onOpen(Session session,
EndpointConfig config) |
public StandardWebSocketHandlerAdapter(WebSocketHandler handler, Function<Session,StandardWebSocketSession> sessionFactory)
public void onOpen(Session session, EndpointConfig config)
public void onClose(Session session, CloseReason reason)