Web SDK - RainwayStats.channels

Home > rainway-sdk > RainwayStats > channels

RainwayStats.channels property

Statistics for each channel. Based on a subset of WebRTC's RTCStatsReport API.

Signature:

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";
        };
    };