接口 RequestUpgradeStrategy

    • 方法详细资料

      • 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.
        参数:
        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
        返回:
        completion Mono<Void> to indicate the outcome of the WebSocket session handling.
        从以下版本开始:
        5.1