Web SDK - RainwayStats

Home > rainway-sdk > RainwayStats

RainwayStats interface

Rainway transport statistics.


export interface RainwayStats 


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.
rawanyRaw statistics directly from the underlying transport. In WebRTC's case, an RTCStatsReport.