Modifier and Type | Method | Description |
---|---|---|
WebSocket.Builder |
WebSocket.Builder.connectTimeout(Duration timeout) |
Sets a timeout for the opening handshake.
|
WebSocket.Builder |
WebSocket.Builder.header(String name,
String value) |
Adds the given name-value pair to the list of additional headers for
the opening handshake.
|
WebSocket.Builder |
HttpClient.newWebSocketBuilder(URI uri,
WebSocket.Listener listener) |
Creates a builder of
WebSocket instances connected to the given
URI and receiving events and messages with the given Listener . |
WebSocket.Builder |
WebSocket.Builder.subprotocols(String mostPreferred,
String... lesserPreferred) |
Includes a request for the given subprotocols during the opening
handshake.
|
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-Debian+0-9b155-1