public static final class WebsocketClientSpec.Builder extends WebsocketSpec.Builder<WebsocketClientSpec.Builder>
Modifier and Type | Method and Description |
---|---|
WebsocketClientSpec |
build()
Builds new
WebsocketClientSpec |
WebsocketClientSpec.Builder |
version(io.netty.handler.codec.http.websocketx.WebSocketVersion version)
Sets websocket version to use.
|
compress, get, handlePing, maxFramePayloadLength, protocols
public final WebsocketClientSpec.Builder version(io.netty.handler.codec.http.websocketx.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