IWebSocketsTelemetryConsumer.OnWebSocketClosed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.