Record: CommonClientConfiguration
Common client configurations for WebSocket clients.
Fields
- subProtocols string[ ](default [])
- customHeaders map<string>(default {})
- readTimeout decimal(default -1)
- writeTimeout decimal(default -1)
- secureSocket ClientSecureSocket?(default ())
- maxFrameSize int(default 65536)
- webSocketCompressionEnabled boolean(default true)
- handShakeTimeout decimal(default 300)
- auth ClientAuthConfig?
- pingPongHandler PingPongService?
- retryConfig WebSocketRetryConfig?(default ())
Negotiable sub protocols of the client
Custom headers, which should be sent to the server
Read timeout (in seconds) of the client
Write timeout (in seconds) of the client
SSL/TLS-related options
The maximum payload size of a WebSocket frame in bytes. If this is not set, is negative, or is zero, the default frame size of 65536 will be used
Enable support for compression in the WebSocket
Time (in seconds) that a connection waits to get the response of the WebSocket handshake. If the timeout exceeds, then the connection is terminated with an error. If the value < 0, then the value sets to the default value(300)
Configurations related to client authentication
A service to handle the ping/pong frames. Resources in this service gets called on the receipt of ping/pong frames from the server
Retry related configurations.