Config

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var contentConverter: WebsocketContentConverter?

A converter for serialization/deserialization

Link copied to clipboard

Sets maximum frame size in bytes.

Link copied to clipboard

Sets interval of sending FrameType.PING messages.

Link copied to clipboard

Sets interval of sending ping frames.

Functions

Link copied to clipboard
fun channels(block: WebSocketChannelsConfig.() -> Unit)

Configuration for the incoming and outgoing Frame queues. Both queues are unlimited by default, which may lead to OutOfMemoryError under high backpressure. Some engines don't support suspending limited-size incoming channels — check compatibility before using them.

Link copied to clipboard
fun extensions(block: WebSocketExtensionsConfig.() -> Unit)

Configure WebSocket extensions.