class HttpWebSocketBody
source · line 34public
public class HttpWebSocketBody internal constructor(
/** The endpoint's explicit negotiation and session options. */
public val options: WebSocketOptions,
/** Runs after HTTP cleanup, outside the request Context and deadline. */
public val onSession: suspend (WebSocketContext, AsyncWebSocketSession) -> Unit
)
Deferred upgrade policy and a callback that acquires its own session resources.
property onSession
source · line 38public
public val onSession: suspend (WebSocketContext, AsyncWebSocketSession) -> Unit
get: public read-only
Runs after HTTP cleanup, outside the request Context and deadline.
property options
source · line 36public
public val options: WebSocketOptions
get: public read-only
The endpoint's explicit negotiation and session options.