Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<WebSocketClient> |
__TYPE_ARG |
Constructor and Description |
---|
WebSocketClient(Object delegate) |
WebSocketClient(WebSocketClient delegate) |
Modifier and Type | Method and Description |
---|---|
Completable |
close()
Close the client.
|
Single<WebSocket> |
connect(int port,
String host,
String requestURI)
Connect a WebSocket to the specified port, host and relative request URI
|
Single<WebSocket> |
connect(String requestURI)
Connect a WebSocket to the default client port, default client host and specified, relative request URI.
|
Single<WebSocket> |
connect(String host,
String requestURI)
Connect a WebSocket to the default client port and specified host and relative request URI.
|
Single<WebSocket> |
connect(WebSocketConnectOptions options)
Connect a WebSocket with the specified options.
|
boolean |
equals(Object o) |
WebSocketClient |
getDelegate() |
int |
hashCode() |
boolean |
isMetricsEnabled()
Whether the metrics are enabled for this measured object
|
static WebSocketClient |
newInstance(WebSocketClient arg) |
Completable |
rxClose()
Close the client.
|
Single<WebSocket> |
rxConnect(int port,
String host,
String requestURI)
Connect a WebSocket to the specified port, host and relative request URI
|
Single<WebSocket> |
rxConnect(String requestURI)
Connect a WebSocket to the default client port, default client host and specified, relative request URI.
|
Single<WebSocket> |
rxConnect(String host,
String requestURI)
Connect a WebSocket to the default client port and specified host and relative request URI.
|
Single<WebSocket> |
rxConnect(WebSocketConnectOptions options)
Connect a WebSocket with the specified options.
|
Single<Boolean> |
rxUpdateSSLOptions(SSLOptions options)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions) but supplying a handler that will be called when the update
happened (or has failed). |
Single<Boolean> |
rxUpdateSSLOptions(SSLOptions options,
boolean force)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions) but supplying a handler that will be called when the update
happened (or has failed). |
String |
toString() |
Single<Boolean> |
updateSSLOptions(SSLOptions options)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions) but supplying a handler that will be called when the update
happened (or has failed). |
Single<Boolean> |
updateSSLOptions(SSLOptions options,
boolean force)
Like
updateSSLOptions(io.vertx.core.net.SSLOptions) but supplying a handler that will be called when the update
happened (or has failed). |
ClientWebSocket |
webSocket()
Create a WebSocket that is not yet connected to the server.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<WebSocketClient> __TYPE_ARG
public WebSocketClient(WebSocketClient delegate)
public WebSocketClient(Object delegate)
public WebSocketClient getDelegate()
getDelegate
in interface Measured
public boolean isMetricsEnabled()
isMetricsEnabled
in interface Measured
true
if metrics are enabledpublic ClientWebSocket webSocket()
public Single<WebSocket> connect(int port, String host, String requestURI)
port
- the porthost
- the hostrequestURI
- the relative URIpublic Single<WebSocket> rxConnect(int port, String host, String requestURI)
port
- the porthost
- the hostrequestURI
- the relative URIpublic Single<WebSocket> connect(String host, String requestURI)
host
- the hostrequestURI
- the relative URIpublic Single<WebSocket> rxConnect(String host, String requestURI)
host
- the hostrequestURI
- the relative URIpublic Single<WebSocket> connect(String requestURI)
requestURI
- the relative URIpublic Single<WebSocket> rxConnect(String requestURI)
requestURI
- the relative URIpublic Single<WebSocket> connect(WebSocketConnectOptions options)
options
- the request optionspublic Single<WebSocket> rxConnect(WebSocketConnectOptions options)
options
- the request optionspublic Single<Boolean> updateSSLOptions(SSLOptions options)
updateSSLOptions(io.vertx.core.net.SSLOptions)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionspublic Single<Boolean> rxUpdateSSLOptions(SSLOptions options)
updateSSLOptions(io.vertx.core.net.SSLOptions)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionspublic Single<Boolean> updateSSLOptions(SSLOptions options, boolean force)
updateSSLOptions(io.vertx.core.net.SSLOptions)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionsforce
- force the update when options are equalspublic Single<Boolean> rxUpdateSSLOptions(SSLOptions options, boolean force)
updateSSLOptions(io.vertx.core.net.SSLOptions)
but supplying a handler that will be called when the update
happened (or has failed).options
- the new SSL optionsforce
- force the update when options are equalspublic Completable close()
public Completable rxClose()
public static WebSocketClient newInstance(WebSocketClient arg)
Copyright © 2024 Eclipse. All rights reserved.