DefaultWebSocketServerSession

Represents a server-side web socket session with all default implementations

See also

Functions

Link copied to clipboard
abstract suspend fun flush()
Link copied to clipboard
open suspend fun send(frame: Frame)
Link copied to clipboard
abstract fun start(negotiatedExtensions: List<WebSocketExtension<*>>)
Link copied to clipboard
abstract fun terminate()

Properties

Link copied to clipboard
abstract val call: ApplicationCall

Associated received call that originating this session

Link copied to clipboard
abstract val closeReason: Deferred<CloseReason?>
Link copied to clipboard
abstract val coroutineContext: CoroutineContext
Link copied to clipboard
abstract val extensions: List<WebSocketExtension<*>>
Link copied to clipboard
abstract val incoming: ReceiveChannel<Frame>
Link copied to clipboard
abstract var masking: Boolean
Link copied to clipboard
abstract var maxFrameSize: Long
Link copied to clipboard
abstract val outgoing: SendChannel<Frame>
Link copied to clipboard
abstract var pingIntervalMillis: Long
Link copied to clipboard
abstract var timeoutMillis: Long

Extensions

Link copied to clipboard
var DefaultWebSocketServerSession.pingInterval: Duration?

Ping interval or null to disable pinger. Please note that pongs will be handled despite this setting.

Link copied to clipboard
var DefaultWebSocketServerSession.timeout: Duration

A timeout to wait for pong reply to ping otherwise the session will be terminated immediately. It doesn't have any effect if pingInterval is null (pinger is disabled).