Uses of Interface
java.net.http.WebSocket
Packages that use WebSocket
-
Uses of WebSocket in java.net.http
Methods in java.net.http that return types with arguments of type WebSocketModifier and TypeMethodDescriptionWebSocket.Builder.buildAsync(URI uri, WebSocket.Listener listener)WebSocket.sendBinary(ByteBuffer data, boolean last)Sends binary data with bytes from the given buffer.Initiates an orderly closure of this WebSocket's output by sending a Close message with the given status code and the reason.WebSocket.sendPing(ByteBuffer message)Sends a Ping message with bytes from the given buffer.WebSocket.sendPong(ByteBuffer message)Sends a Pong message with bytes from the given buffer.WebSocket.sendText(CharSequence data, boolean last)Sends textual data with characters from the given character sequence.Methods in java.net.http with parameters of type WebSocketModifier and TypeMethodDescriptiondefault CompletionStage<?>WebSocket.Listener.onBinary(WebSocket webSocket, ByteBuffer data, boolean last)A binary data has been received.default CompletionStage<?>Receives a Close message indicating the WebSocket's input has been closed.default voidAn error has occurred.default voidAWebSockethas 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 data, boolean last)A textual data has been received.