public interface RequestUpgradeStrategy
Typically there is one such strategy for every ServerHttpRequest
 and ServerHttpResponse type except in the case of Servlet containers
 for which the standard Java WebSocket API JSR-356 does not define a way to
 upgrade a request so a custom strategy is needed for every Servlet container.
| Modifier and Type | Method and Description | 
|---|---|
reactor.core.publisher.Mono<java.lang.Void> | 
upgrade(ServerWebExchange exchange,
       WebSocketHandler webSocketHandler,
       java.lang.String subProtocol)
Upgrade to a WebSocket session and handle it with the given handler. 
 | 
reactor.core.publisher.Mono<java.lang.Void> upgrade(ServerWebExchange exchange, WebSocketHandler webSocketHandler, @Nullable java.lang.String subProtocol)
exchange - the current exchangewebSocketHandler - handler for the WebSocket sessionsubProtocol - the selected sub-protocol got the handlerMono<Void> to indicate the outcome of the
 WebSocket session handling.