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()Builds aWebSocket.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.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.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)Receives a Binary message.default CompletionStage<?>WebSocket.Listener. onClose(WebSocket webSocket, int statusCode, String reason)Receives a Close message.default voidWebSocket.Listener. onError(WebSocket webSocket, Throwable error)Notifies an I/O or protocol error has occurred.default voidWebSocket.Listener. onOpen(WebSocket webSocket)Notifies theListenerthat it is connected to the providedWebSocket.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.
-