public static final class WebsocketServerSpec.Builder extends WebsocketSpec.Builder<WebsocketServerSpec.Builder>
Modifier and Type | Method and Description |
---|---|
WebsocketServerSpec |
build()
Builds new
WebsocketServerSpec . |
WebsocketServerSpec.Builder |
compressionAllowServerNoContext(boolean allowServerNoContext)
Allows the client to activate
server_no_context_takeover . |
WebsocketServerSpec.Builder |
compressionPreferredClientNoContext(boolean preferredClientNoContext)
Indicates if the server prefers to activate
client_no_context_takeover if client is compatible with. |
compress, get, handlePing, maxFramePayloadLength, protocols
public final WebsocketServerSpec.Builder compressionAllowServerNoContext(boolean allowServerNoContext)
server_no_context_takeover
.
Default to false.allowServerNoContext
- allows the client to activate server_no_context_takeover
PerMessageDeflateServerExtensionHandshaker
public final WebsocketServerSpec.Builder compressionPreferredClientNoContext(boolean preferredClientNoContext)
client_no_context_takeover
if client is compatible with.
Default to false.preferredClientNoContext
- indicates if the server prefers to activate
client_no_context_takeover
if client is compatible withPerMessageDeflateServerExtensionHandshaker
public final WebsocketServerSpec build()
WebsocketServerSpec
.WebsocketServerSpec