Scoop API

scoop:scoop.http.asyncio:0.1.0

WebSocketSessionOptions

class WebSocketSessionOptions

source · line 10
public
public class WebSocketSessionOptions internal constructor(
    /**
     * Limits applied to incoming wire frames and messages.
     */
    public val incomingLimits: WebSocketFrameLimits = WebSocketFrameLimits(),
    /**
     * The positive transport input buffer capacity.
     */
    public val inputBufferBytes: Long = 8192L,
    /**
         * The positive maximum payload chunk used for streamed output frames.
         */
    public val outgoingFrameBytes: Long = 8192L,
    /**
     * The deadline used by graceful close negotiation.
     */
    public val closeTimeout: Duration = Duration.seconds(5L),
    /**
     * The separate limit on decoded message size; by default it follows the incoming wire-message
     * limit.
     */
    public val maxDecompressedMessageBytes: Long = incomingLimits.maxMessageBytes
)

Incoming frame limits, bounded read/write buffers, graceful-close deadline, and decompressed-message limit for a WebSocket session.

Extensions

property maxDecompressedMessageBytes

source · line 31
public
public val maxDecompressedMessageBytes: Long = incomingLimits.maxMessageBytes

get: public read-only

The separate limit on decoded message size; by default it follows the incoming wire-message limit.

property incomingLimits

source · line 14
public
public val incomingLimits: WebSocketFrameLimits = WebSocketFrameLimits()

get: public read-only

Limits applied to incoming wire frames and messages.

property outgoingFrameBytes

source · line 22
public
public val outgoingFrameBytes: Long = 8192L

get: public read-only

The positive maximum payload chunk used for streamed output frames.

property inputBufferBytes

source · line 18
public
public val inputBufferBytes: Long = 8192L

get: public read-only

The positive transport input buffer capacity.

property closeTimeout

source · line 26
public
public val closeTimeout: Duration = Duration.seconds(5L)

get: public read-only

The deadline used by graceful close negotiation.