Interface RequestUpgradeStrategy

    • Method Detail

      • upgrade

        default reactor.core.publisher.Mono<Voidupgrade​(ServerWebExchange exchange,
                                                          WebSocketHandler webSocketHandler,
                                                          @Nullable
                                                          String subProtocol,
                                                          Supplier<HandshakeInfo> handshakeInfoFactory)
        Upgrade to a WebSocket session and handle it with the given handler.
        Parameters:
        exchange - the current exchange
        webSocketHandler - handler for the WebSocket session
        subProtocol - the selected sub-protocol got the handler
        handshakeInfoFactory - factory to create HandshakeInfo for the WebSocket session
        Returns:
        completion Mono<Void> to indicate the outcome of the WebSocket session handling.
        Since:
        5.1