public static final class WebsocketClientSpec.Builder extends WebsocketSpec.Builder<WebsocketClientSpec.Builder>
Modifier and Type | Method and Description |
---|---|
WebsocketClientSpec |
build()
Builds new
WebsocketClientSpec . |
WebsocketClientSpec.Builder |
compressionAllowClientNoContext(boolean allowClientNoContext)
Allows the server to activate
client_no_context_takeover
Default to false. |
WebsocketClientSpec.Builder |
compressionRequestedServerNoContext(boolean requestedServerNoContext)
Indicates if the client needs to activate
server_no_context_takeover if the server is compatible with. |
WebsocketClientSpec.Builder |
version(WebSocketVersion version)
Sets websocket version to use.
|
compress, get, handlePing, maxFramePayloadLength, protocols
public final WebsocketClientSpec.Builder compressionAllowClientNoContext(boolean allowClientNoContext)
client_no_context_takeover
Default to false.allowClientNoContext
- allows the server to activate client_no_context_takeover
PerMessageDeflateClientExtensionHandshaker
public final WebsocketClientSpec.Builder compressionRequestedServerNoContext(boolean requestedServerNoContext)
server_no_context_takeover
if the server is compatible with.
Default to false.requestedServerNoContext
- indicates if the client needs to activate
server_no_context_takeover
if the server is compatible withPerMessageDeflateClientExtensionHandshaker
public final WebsocketClientSpec.Builder version(WebSocketVersion version)
WebSocketVersion.V13
by defaultversion
- WebSocket version to be usedNullPointerException
- if version is nullIllegalArgumentException
- if the version is unknownpublic final WebsocketClientSpec build()
WebsocketClientSpec
.WebsocketClientSpec