WebSockets

fun WebSockets(pingIntervalMillis: Long, timeoutMillis: Long, maxFrameSize: Long, masking: Boolean)


fun WebSockets(pingIntervalMillis: Long, timeoutMillis: Long, maxFrameSize: Long, masking: Boolean, extensionsConfig: WebSocketExtensionsConfig)

Parameters

pingIntervalMillis

duration between pings or null to disable pings.

timeoutMillis

write/ping timeout after that a connection will be closed.

maxFrameSize

maximum frame that could be received or sent.

masking

whether masking need to be enabled (useful for security).

extensionsConfig

is configuration for WebSocket extensions.