class WebSocketContext
source · line 7public
public class WebSocketContext internal constructor(
/** The identifier of the completed upgrade request. */
public val requestId: String,
/** The selected endpoint metadata. */
public val route: HttpRouteInfo?,
/** The underlying connection's immutable protocol and TLS facts. */
public val connection: HttpConnectionInfo,
/** The actually selected subprotocol, or None. */
public val protocol: String?
)
Immutable upgrade facts without an HTTP request, response or request-scoped resource.
property route
source · line 11public
public val route: HttpRouteInfo?
get: public read-only
The selected endpoint metadata.
property protocol
source · line 15public
public val protocol: String?
get: public read-only
The actually selected subprotocol, or None.
property requestId
source · line 9public
public val requestId: String
get: public read-only
The identifier of the completed upgrade request.
property connection
source · line 13public
public val connection: HttpConnectionInfo
get: public read-only
The underlying connection's immutable protocol and TLS facts.