Typically there is one such strategy for every ServerHttpRequest
and ServerHttpResponse type except in the case of Servlet containers
for which the standard Jakarta WebSocket API (JSR-356) does not define a way to
upgrade a request so a custom strategy is needed for every Servlet container.
org.springframework.web.reactive.socket.server.upgrade.StandardWebSocketUpgradeStrategy
| Modifier and Type | Method and Description |
|---|---|
| public Mono | Returns: completionMono<Void> to indicate the outcome of the
WebSocket session handling.the current exchange exchange, WebSocketHandler handler for the WebSocket session webSocketHandler, String the selected sub-protocol got the handler subProtocol, Supplier<HandshakeInfo> factory to create HandshakeInfo for the WebSocket session handshakeInfoFactory)Upgrade to a WebSocket session and handle it with the given handler. |
| upgrade | back to summary |
|---|---|
| public Mono Upgrade to a WebSocket session and handle it with the given handler.
| |