Modifier and Type | Method | Description |
---|---|---|
CompletableFuture<WebSocket> |
WebSocket.Builder.buildAsync() |
Builds a
WebSocket . |
CompletableFuture<WebSocket> |
WebSocket.sendBinary(ByteBuffer message,
boolean isLast) |
Sends a Binary message with bytes from the given
ByteBuffer . |
CompletableFuture<WebSocket> |
WebSocket.sendClose() |
Sends an empty Close message.
|
CompletableFuture<WebSocket> |
WebSocket.sendClose(int statusCode,
String reason) |
Sends a Close message with the given status code and the reason.
|
CompletableFuture<WebSocket> |
WebSocket.sendPing(ByteBuffer message) |
Sends a Ping message with bytes from the given ByteBuffer.
|
CompletableFuture<WebSocket> |
WebSocket.sendPong(ByteBuffer message) |
Sends a Pong message with bytes from the given ByteBuffer.
|
default CompletableFuture<WebSocket> |
WebSocket.sendText(CharSequence message) |
Sends a whole Text message with characters from the given
CharSequence . |
CompletableFuture<WebSocket> |
WebSocket.sendText(CharSequence message,
boolean isLast) |
Sends a Text message with characters from the given
CharSequence . |
Modifier and Type | Method | Description |
---|---|---|
default CompletionStage<?> |
WebSocket.Listener.onBinary(WebSocket webSocket,
ByteBuffer message,
WebSocket.MessagePart part) |
Receives a Binary message.
|
default CompletionStage<?> |
WebSocket.Listener.onClose(WebSocket webSocket,
int statusCode,
String reason) |
Receives a Close message.
|
default void |
WebSocket.Listener.onError(WebSocket webSocket,
Throwable error) |
Notifies an I/O or protocol error has occurred.
|
default void |
WebSocket.Listener.onOpen(WebSocket webSocket) |
Notifies the
Listener that it is connected to the provided
WebSocket . |
default CompletionStage<?> |
WebSocket.Listener.onPing(WebSocket webSocket,
ByteBuffer message) |
Receives a Ping message.
|
default CompletionStage<?> |
WebSocket.Listener.onPong(WebSocket webSocket,
ByteBuffer message) |
Receives a Pong message.
|
default CompletionStage<?> |
WebSocket.Listener.onText(WebSocket webSocket,
CharSequence message,
WebSocket.MessagePart part) |
Receives a Text message.
|
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b153-1