class WebSocketSessionOptions
source · line 10public
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
public fun WebSocketSessionOptions.copy(configure: WebSocketSessionOptionsBuilder.() -> Unit = {}): WebSocketSessionOptions· scoop:scoop.http.asyncio:0.1.0
property maxDecompressedMessageBytes
source · line 31public
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 14public
public val incomingLimits: WebSocketFrameLimits = WebSocketFrameLimits()
get: public read-only
Limits applied to incoming wire frames and messages.
property outgoingFrameBytes
source · line 22public
public val outgoingFrameBytes: Long = 8192L
get: public read-only
The positive maximum payload chunk used for streamed output frames.
property inputBufferBytes
source · line 18public
public val inputBufferBytes: Long = 8192L
get: public read-only
The positive transport input buffer capacity.
property closeTimeout
source · line 26public
public val closeTimeout: Duration = Duration.seconds(5L)
get: public read-only
The deadline used by graceful close negotiation.