Scoop API

scoop:scoop.http.server:0.1.0

HttpWebSocketCompletion

class HttpWebSocketCompletion

source · line 29
public
public class HttpWebSocketCompletion internal constructor(
    /** The independent upgrade snapshot. */
    public val context: WebSocketContext,
    /** Time from upgrade reservation through actual session and transport cleanup. */
    public val elapsed: Duration,
    /** The peer Close frame, if received. */
    public val peerClose: WebSocketClose?,
    /** The local Close frame, if sent. */
    public val sentClose: WebSocketClose?,
    /** The final lifecycle outcome. */
    public val outcome: HttpWebSocketOutcome,
    /** The original terminal failure, absent for clean completion or graceful drain. */
    public val failure: Throwable?
)

Final facts for an upgraded connection, including handoffs stopped before business work starts.

property elapsed

source · line 33
public
public val elapsed: Duration

get: public read-only

Time from upgrade reservation through actual session and transport cleanup.

property failure

source · line 41
public
public val failure: Throwable?

get: public read-only

The original terminal failure, absent for clean completion or graceful drain.