Scoop API

scoop:scoop.http.server:0.1.0

WebSocketContext

class WebSocketContext

source · line 7
public
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 protocol

source · line 15
public
public val protocol: String?

get: public read-only

The actually selected subprotocol, or None.

property requestId

source · line 9
public
public val requestId: String

get: public read-only

The identifier of the completed upgrade request.