Share via


IWebSocketsTelemetryConsumer.OnWebSocketClosed Method

Definition

Called when a WebSockets connection is closed.

public void OnWebSocketClosed(DateTime timestamp, DateTime establishedTime, Yarp.Telemetry.Consumption.WebSocketCloseReason closeReason, long messagesRead, long messagesWritten);
abstract member OnWebSocketClosed : DateTime * DateTime * Yarp.Telemetry.Consumption.WebSocketCloseReason * int64 * int64 -> unit
Public Sub OnWebSocketClosed (timestamp As DateTime, establishedTime As DateTime, closeReason As WebSocketCloseReason, messagesRead As Long, messagesWritten As Long)

Parameters

timestamp
DateTime

Timestamp when the event was fired.

establishedTime
DateTime

Timestamp when the connection upgrade completed.

closeReason
WebSocketCloseReason

The reason the WebSocket connection closed.

messagesRead
Int64

Messages read by the destination server.

messagesWritten
Int64

Messages sent by the destination server.

Applies to