Uses of Interface
jdk.incubator.http.WebSocket
-
Packages that use WebSocket Package Description jdk.incubator.http High level HTTP and WebSocket API -
-
Uses of WebSocket in jdk.incubator.http
Methods in jdk.incubator.http that return types with arguments of type WebSocket Modifier and Type Method Description CompletableFuture<WebSocket>
WebSocket.Builder. buildAsync(URI uri, WebSocket.Listener listener)
CompletableFuture<WebSocket>
WebSocket. sendBinary(ByteBuffer message, boolean isLast)
Sends a Binary message with bytes from the givenByteBuffer
.CompletableFuture<WebSocket>
WebSocket. sendClose(int statusCode, String reason)
Sends a Close message with the given status code and the reason, initiating an orderly closure.CompletableFuture<WebSocket>
WebSocket. sendPing(ByteBuffer message)
Sends a Ping message with bytes from the givenByteBuffer
.CompletableFuture<WebSocket>
WebSocket. sendPong(ByteBuffer message)
Sends a Pong message with bytes from the givenByteBuffer
.CompletableFuture<WebSocket>
WebSocket. sendText(CharSequence message, boolean isLast)
Sends a Text message with characters from the givenCharSequence
.Methods in jdk.incubator.http with parameters of type WebSocket Modifier and Type Method Description default CompletionStage<?>
WebSocket.Listener. onBinary(WebSocket webSocket, ByteBuffer message, WebSocket.MessagePart part)
A Binary message has been received.default CompletionStage<?>
WebSocket.Listener. onClose(WebSocket webSocket, int statusCode, String reason)
A Close message has been received.default void
WebSocket.Listener. onError(WebSocket webSocket, Throwable error)
An unrecoverable error has occurred.default void
WebSocket.Listener. onOpen(WebSocket webSocket)
AWebSocket
has been connected.default CompletionStage<?>
WebSocket.Listener. onPing(WebSocket webSocket, ByteBuffer message)
A Ping message has been received.default CompletionStage<?>
WebSocket.Listener. onPong(WebSocket webSocket, ByteBuffer message)
A Pong message has been received.default CompletionStage<?>
WebSocket.Listener. onText(WebSocket webSocket, CharSequence message, WebSocket.MessagePart part)
A Text message has been received.
-