Interface IWebSocketsTelemetryConsumer
A consumer of Yarp.ReverseProxy.WebSockets EventSource events.
Namespace: Yarp.Telemetry.Consumption
Assembly: Yarp.Telemetry.Consumption.dll
Syntax
public interface IWebSocketsTelemetryConsumer
Methods
| Improve this Doc View SourceOnWebSocketClosed(DateTime, DateTime, WebSocketCloseReason, Int64, Int64)
Called when a WebSockets connection is closed.
Declaration
void OnWebSocketClosed(DateTime timestamp, DateTime establishedTime, WebSocketCloseReason closeReason, long messagesRead, long messagesWritten)
Parameters
Type | Name | Description |
---|---|---|
DateTime | timestamp | Timestamp when the event was fired. |
DateTime | establishedTime | Timestamp when the connection upgrade completed. |
WebSocketCloseReason | closeReason | The reason the WebSocket connection closed. |
System.Int64 | messagesRead | Messages read by the destination server. |
System.Int64 | messagesWritten | Messages sent by the destination server. |