Top Fields Constructors Methods
io.vertx.core.http.impl

public Class WebSocketClientImpl

extends HttpClientBase
implements WebSocketClient
Class Inheritance
All Implemented Interfaces
io.vertx.core.http.WebSocketClient, io.vertx.core.metrics.Measured
Imports
io.vertx.core.AsyncResult, .Future, .Handler, io.vertx.core.http.*, io.vertx.core.impl.CloseFuture, .VertxInternal

Field Summary

Inherited from io.vertx.core.http.impl.HttpClientBase:
closeFuturemetricsnetClientoptionsuseH2UniformStreamByteDistributorvertx

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
connect(WebSocketConnectOptions
the request options
options
,
Handler<AsyncResult<WebSocket>> handler)

Implements io.vertx.core.http.WebSocketClient.connect.

Connect a WebSocket with the specified options.

public Future<WebSocket>
connect(WebSocketConnectOptions options)

Implements io.vertx.core.http.WebSocketClient.connect.

Like connect(WebSocketConnectOptions, Handler) but returns a Future of the asynchronous result

public ClientWebSocket
webSocket()

Implements io.vertx.core.http.WebSocketClient.webSocket.

Create a WebSocket that is not yet connected to the server.

Inherited from io.vertx.core.http.impl.HttpClientBase:
closecloseclosecontextProvidergetHostgetMetricsgetPortisMetricsEnabledmetricsnetClientoptionsproxyFilterresolveProxyOptionsupdateSSLOptionsvertxwebSocketwebSocketwebSocketwebSocketwebSocketwebSocketwebSocketwebSocketwebSocketAbswebSocketAbs

Constructor Detail

WebSocketClientImplback to summary
public WebSocketClientImpl(VertxInternal vertx, HttpClientOptions options, CloseFuture closeFuture)

Method Detail

connectback to summary
public void connect(WebSocketConnectOptions options, Handler<AsyncResult<WebSocket>> handler)

Implements io.vertx.core.http.WebSocketClient.connect.

Doc from io.vertx.core.http.WebSocketClient.connect.

Connect a WebSocket with the specified options.

Parameters
options:WebSocketConnectOptions

the request options

Annotations
@Override
connectback to summary
public Future<WebSocket> connect(WebSocketConnectOptions options)

Implements io.vertx.core.http.WebSocketClient.connect.

Doc from io.vertx.core.http.WebSocketClient.connect.

Like connect(WebSocketConnectOptions, Handler) but returns a Future of the asynchronous result

Annotations
@Override
webSocketback to summary
public ClientWebSocket webSocket()

Implements io.vertx.core.http.WebSocketClient.webSocket.

Doc from io.vertx.core.http.WebSocketClient.webSocket.

Create a WebSocket that is not yet connected to the server.

Returns:ClientWebSocket

the client WebSocket

Annotations
@Override