Uses of Interface jdk.incubator.http.WebSocket (Java SE 9 & JDK 9 )

## 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 a `WebSocket`.
    `CompletableFuture<WebSocket>` | WebSocket.`sendBinary​(ByteBuffer message, boolean isLast)` | Sends a Binary message with bytes from the given `ByteBuffer`.
    `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 given `CharSequence`.

    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 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.