| Modifier and Type | Method and Description |
|---|---|
| public ClientWebSocket | |
| public ClientWebSocket | |
| public default void | |
| public default Future | connect(int port, String host, String requestURI)
Like |
| public void | connect(WebSocketConnectOptions
the request options options, Handler<AsyncResult<WebSocket>> handler that will be called with the WebSocket when connected handler)Connect a WebSocket with the specified options. |
| public Future | connect(WebSocketConnectOptions options)
Like |
| public default void | |
| public default Future | |
| public default void | connect(String
the relative URI requestURI, Handler<AsyncResult<WebSocket>> handler that will be called with the WebSocket when connected handler)Connect this WebSocket at the relative request URI using the default host and port. |
| public default Future | |
| public ClientWebSocket | |
| public ClientWebSocket | |
| public ClientWebSocket | exceptionHandler(Handler<Throwable> handler)
Redeclares io.
|
| public ClientWebSocket | |
| public ClientWebSocket | |
| public ClientWebSocket | |
| public ClientWebSocket | |
| public ClientWebSocket | writeBinaryMessage(Buffer data, Handler<AsyncResult<Void>> handler)
Redeclares io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public ClientWebSocket | writeFinalBinaryFrame(Buffer data, Handler<AsyncResult<Void>> handler)
Redeclares io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public ClientWebSocket | writeFinalTextFrame(String text, Handler<AsyncResult<Void>> handler)
Redeclares io. Same as |
| public ClientWebSocket | writeFrame(WebSocketFrame frame, Handler<AsyncResult<Void>> handler)
Redeclares io. Same as |
| public ClientWebSocket | writePing(Buffer
the data to write, may be at most 125 bytes data, Handler<AsyncResult<Void>> called when the ping frame has been successfully written handler)Redeclares io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Writes a ping frame to the connection. |
| public ClientWebSocket | writePong(Buffer
the data to write, may be at most 125 bytes data, Handler<AsyncResult<Void>> called when the pong frame has been successfully written handler)Redeclares io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Writes a pong frame to the connection. |
| public ClientWebSocket | writeTextMessage(String text, Handler<AsyncResult<Void>> handler)
Redeclares io. Same as |
| binaryMessageHandler | back to summary |
|---|---|
public ClientWebSocket binaryMessageHandler(@Nullable Handler<Buffer> handler)
| |
| closeHandler | back to summary |
|---|---|
| public ClientWebSocket closeHandler(Handler<Void> handler) Redeclares io.
| |
| 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 void connect(WebSocketConnectOptions options, Handler<AsyncResult<WebSocket>> handler) Connect a WebSocket with the specified options.
| |
| connect | back to summary |
|---|---|
| public Future Like | |
| connect | back to summary |
|---|---|
| public default void connect(String host, String requestURI, Handler<AsyncResult<WebSocket>> handler) Connect this WebSocket to the host and relative request URI and default port.
| |
| connect | back to summary |
|---|---|
| public default Future Connect this WebSocket to the host and relative request URI and default port. | |
| connect | back to summary |
|---|---|
| public default void connect(String requestURI, Handler<AsyncResult<WebSocket>> handler) Connect this WebSocket at the relative request URI using the default host and port.
| |
| connect | back to summary |
|---|---|
| public default Future Connect this WebSocket at the relative request URI using the default host and port. | |
| drainHandler | back to summary |
|---|---|
| public ClientWebSocket drainHandler(Handler<Void> handler) Redeclares io.
| |
| endHandler | back to summary |
|---|---|
| public ClientWebSocket endHandler(Handler<Void> endHandler) Redeclares io.
| |
| exceptionHandler | back to summary |
|---|---|
| public ClientWebSocket exceptionHandler(Handler<Throwable> handler) Redeclares io.
| |
| frameHandler | back to summary |
|---|---|
| public ClientWebSocket frameHandler(Handler<WebSocketFrame> handler) Redeclares io.
| |
| handler | back to summary |
|---|---|
| public ClientWebSocket handler(Handler<Buffer> handler) Redeclares io.
| |
| pongHandler | back to summary |
|---|---|
public ClientWebSocket pongHandler(@Nullable Handler<Buffer> handler)
| |
| textMessageHandler | back to summary |
|---|---|
public ClientWebSocket textMessageHandler(@Nullable Handler<String> handler)
| |
| writeBinaryMessage | back to summary |
|---|---|
| public ClientWebSocket writeBinaryMessage(Buffer data, Handler<AsyncResult<Void>> handler) Redeclares io. Doc from io. References Deprecated
See corresponding docs for further information. Same as
| |
| writeFinalBinaryFrame | back to summary |
|---|---|
| public ClientWebSocket writeFinalBinaryFrame(Buffer data, Handler<AsyncResult<Void>> handler) Redeclares io. Doc from io. References Deprecated
See corresponding docs for further information. Same as
| |
| writeFinalTextFrame | back to summary |
|---|---|
| public ClientWebSocket writeFinalTextFrame(String text, Handler<AsyncResult<Void>> handler) Redeclares io. Doc from io. Same as
| |
| writeFrame | back to summary |
|---|---|
| public ClientWebSocket writeFrame(WebSocketFrame frame, Handler<AsyncResult<Void>> handler) Redeclares io. Doc from io. Same as
| |
| writePing | back to summary |
|---|---|
| public ClientWebSocket writePing(Buffer data, Handler<AsyncResult<Void>> handler) Redeclares io. Doc from io. References Deprecated
See corresponding docs for further information. Writes a ping frame to the connection. This will be written in a single frame. Ping frames may be at most 125 bytes (octets). This method should not be used to write application data and should only be used for implementing a keep alive or to ensure the client is still responsive, see RFC 6455 Section section 5.5.2. There is no handler for ping frames because RFC 6455 clearly states that the only response to a ping frame is a pong frame with identical contents.
| |
| writePong | back to summary |
|---|---|
| public ClientWebSocket writePong(Buffer data, Handler<AsyncResult<Void>> handler) Redeclares io. Doc from io. References Deprecated
See corresponding docs for further information. Writes a pong frame to the connection. This will be written in a single frame. Pong frames may be at most 125 bytes (octets). This method should not be used to write application data and should only be used for implementing a keep alive or to ensure the client is still responsive, see RFC 6455 section 5.5.2. There is no need to manually write a pong frame, as the server and client both handle responding to a ping from with a pong from automatically and this is exposed to users. RFC 6455 section 5.5.3 states that pongs may be sent unsolicited in order to implement a one way heartbeat.
| |
| writeTextMessage | back to summary |
|---|---|
| public ClientWebSocket writeTextMessage(String text, Handler<AsyncResult<Void>> handler) Redeclares io. Doc from io. Same as
| |