class HttpWebSocketCompletion
source · line 29public
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 outcome
source · line 39public
public val outcome: HttpWebSocketOutcome
get: public read-only
The final lifecycle outcome.
property elapsed
source · line 33public
public val elapsed: Duration
get: public read-only
Time from upgrade reservation through actual session and transport cleanup.
property sentClose
source · line 37public
public val sentClose: WebSocketClose?
get: public read-only
The local Close frame, if sent.
property context
source · line 31public
public val context: WebSocketContext
get: public read-only
The independent upgrade snapshot.
property peerClose
source · line 35public
public val peerClose: WebSocketClose?
get: public read-only
The peer Close frame, if received.
property failure
source · line 41public
public val failure: Throwable?
get: public read-only
The original terminal failure, absent for clean completion or graceful drain.