It allows you to open WebSockets to servers.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Future | |
| public default void | |
| public default Future | connect(int port, String host, String requestURI)
Like |
| public default void | |
| public default Future | connect(String host, String requestURI)
Like |
| public default void | connect(String
the relative URI requestURI, Handler<AsyncResult<WebSocket>> handler that will be called with the WebSocket when connected handler)Connect a WebSocket to the default client port, default client host and specified, relative request URI. |
| public default Future | connect(String requestURI)
Like |
| public void | connect(WebSocketConnectOptions
the request options options, Handler<AsyncResult<WebSocket>> handler)Connect a WebSocket with the specified options. |
| public Future | connect(WebSocketConnectOptions options)
Like |
| public default Future | Returns: a future signaling the update successthe new SSL options options)Update the client with new SSL |
| public default void | updateSSLOptions(SSLOptions
the new SSL options options, Handler<AsyncResult<Boolean>> the update handler handler)Like |
| public Future | Returns: a future signaling the update successthe new SSL options options, boolean force the update when options are equals force)Update the client with new SSL |
| public default void | updateSSLOptions(SSLOptions
the new SSL options options, boolean force the update when options are equals force, Handler<AsyncResult<Boolean>> the update handler handler)Like |
| public ClientWebSocket |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> handler) Close the client. Closing will close down any pooled connections. Clients should always be closed after use. | |
| close | back to summary |
|---|---|
| public Future Like | |
| connect | back to summary |
|---|---|
| public default void connect(int port, String host, String requestURI, Handler<AsyncResult<WebSocket>> handler) Connect a WebSocket to the specified port, host and relative request URI
| |
| connect | back to summary |
|---|---|
| public default Future Like | |
| connect | back to summary |
|---|---|
| public default void connect(String host, String requestURI, Handler<AsyncResult<WebSocket>> handler) Connect a WebSocket to the default client port and specified host and relative request URI.
| |
| connect | back to summary |
|---|---|
| public default Future Like | |
| connect | back to summary |
|---|---|
| public default void connect(String requestURI, Handler<AsyncResult<WebSocket>> handler) Connect a WebSocket to the default client port, default client host and specified, relative request URI.
| |
| connect | back to summary |
|---|---|
| public default Future Like | |
| connect | back to summary |
|---|---|
| public void connect(WebSocketConnectOptions options, Handler<AsyncResult<WebSocket>> handler) Connect a WebSocket with the specified options.
| |
| connect | back to summary |
|---|---|
| public Future Like | |
| updateSSLOptions | back to summary |
|---|---|
| public default Future Update the client with new SSL
| |
| updateSSLOptions | back to summary |
|---|---|
| public default void updateSSLOptions(SSLOptions options, Handler<AsyncResult<Boolean>> handler) Like
| |
| updateSSLOptions | back to summary |
|---|---|
| public Future Update the client with new SSL The
| |
| updateSSLOptions | back to summary |
|---|---|
| public default void updateSSLOptions(SSLOptions options, boolean force, Handler<AsyncResult<Boolean>> handler) Like
| |
| webSocket | back to summary |
|---|---|
| public ClientWebSocket webSocket() Create a WebSocket that is not yet connected to the server.
| |