Class StandardWebSocketHandlerAdapter
java.lang.Object
jakarta.websocket.Endpoint
org.springframework.web.reactive.socket.adapter.StandardWebSocketHandlerAdapter
Adapter for Java WebSocket API (JSR-356) that delegates events to a reactive
WebSocketHandler
and its session.- Since:
- 5.0
- Author:
- Violeta Georgieva, Rossen Stoyanchev, Sam Brannen
-
Constructor Summary
ConstructorDescriptionStandardWebSocketHandlerAdapter
(WebSocketHandler handler, Function<Session, StandardWebSocketSession> sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onClose
(Session session, CloseReason reason) void
void
onOpen
(Session session, EndpointConfig config)
-
Constructor Details
-
StandardWebSocketHandlerAdapter
public StandardWebSocketHandlerAdapter(WebSocketHandler handler, Function<Session, StandardWebSocketSession> sessionFactory)
-
-
Method Details