Example usage for org.springframework.web.reactive.socket.adapter StandardWebSocketHandlerAdapter StandardWebSocketHandlerAdapter

List of usage examples for org.springframework.web.reactive.socket.adapter StandardWebSocketHandlerAdapter StandardWebSocketHandlerAdapter

Introduction

In this page you can find the example usage for org.springframework.web.reactive.socket.adapter StandardWebSocketHandlerAdapter StandardWebSocketHandlerAdapter.

Prototype

public StandardWebSocketHandlerAdapter(WebSocketHandler handler,
            Function<Session, StandardWebSocketSession> sessionFactory) 

Source Link

Usage

From source file:org.springframework.web.reactive.socket.client.StandardWebSocketClient.java

private StandardWebSocketHandlerAdapter createEndpoint(URI url, WebSocketHandler handler,
        MonoProcessor<Void> completion, DefaultConfigurator configurator) {

    return new StandardWebSocketHandlerAdapter(handler,
            session -> createWebSocketSession(session, createHandshakeInfo(url, configurator), completion));
}