HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - TransportStats

Home > @rainway/web > TransportStats

TransportStats interface

Rainway transport statistics.

Signature:

export interface TransportStats 

Properties

PropertyTypeDescription
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.