spring-framework / org.springframework.web.reactive.socket.client / JettyWebSocketClient / <init>

<init>

JettyWebSocketClient()

Default constructor that creates and manages an instance of a Jetty org.eclipse.jetty.websocket.client.WebSocketClient. The instance can be obtained with #getJettyClient() for further configuration.

Note: When this constructor is used Lifecycle methods of this class are delegated to the Jetty WebSocketClient.

JettyWebSocketClient(jettyClient: WebSocketClient)

Constructor that accepts an existing instance of a Jetty org.eclipse.jetty.websocket.client.WebSocketClient.

Note: Use of this constructor implies the Jetty WebSocketClient is externally managed and hence Lifecycle methods of this class are not delegated to it.