WebSocketOptions

class WebSocketOptions

Websockets configuration options

Constructors

<init>

WebSocketOptions()

Websockets configuration options

Properties

masking

var masking: Boolean

Whether masking need to be enabled (useful for security)

maxFrameSize

var maxFrameSize: Long

Maximum frame that could be received or sent

pingPeriod

var pingPeriod: Duration?

Duration between pings or null to disable pings

pingPeriodMillis

var pingPeriodMillis: Long

Duration between pings or 0 to disable pings

timeout

var timeout: Duration

write/ping timeout after that a connection will be closed

timeoutMillis

var timeoutMillis: Long

write/ping timeout after that a connection will be closed

Extension Properties

pingPeriod

var WebSocketOptions.pingPeriod: Duration?

timeout

var WebSocketOptions.timeout: Duration