Home > @rainway/web > TransportStats
TransportStats interface
Rainway transport statistics.
Signature:
export interface TransportStats
Properties
Property | Type | Description |
---|---|---|
channels | { [label: string]: { id: string; label: string; bytesReceived: number; bytesSent: number; messagesReceived: number; messagesSent: number; timestamp: number; datachannelid?: number; protocol?: string; state?: "connecting" | "open" | "closing" | "closed"; }; } | Statistics for each channel. Based on a subset of WebRTC's RTCStatsReport API. |
raw | any | Raw statistics directly from the underlying transport. In WebRTC's case, an RTCStatsReport. |