docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RTCDataChannelStats

    Reports statistics for a data channel.

    Inheritance
    object
    RTCStats
    RTCDataChannelStats
    Inherited Members
    RTCStats.Type
    RTCStats.Id
    RTCStats.Timestamp
    RTCStats.UtcTimeStamp
    RTCStats.Dict
    RTCStats.ToJson()
    Namespace: Unity.WebRTC
    Assembly: Unity.WebRTC.dll
    Syntax
    public class RTCDataChannelStats : RTCStats

    Properties

    bytesReceived

    The number of bytes received over the data channel.

    Declaration
    public ulong bytesReceived { get; }
    Property Value
    Type Description
    ulong

    bytesSent

    The number of bytes sent over the data channel.

    Declaration
    public ulong bytesSent { get; }
    Property Value
    Type Description
    ulong

    dataChannelIdentifier

    The identifier for the data channel.

    Declaration
    public int dataChannelIdentifier { get; }
    Property Value
    Type Description
    int

    label

    The label of the data channel.

    Declaration
    public string label { get; }
    Property Value
    Type Description
    string

    messagesReceived

    The number of messages received over the data channel.

    Declaration
    public uint messagesReceived { get; }
    Property Value
    Type Description
    uint

    messagesSent

    The number of messages sent over the data channel.

    Declaration
    public uint messagesSent { get; }
    Property Value
    Type Description
    uint

    protocol

    The protocol used by the data channel.

    Declaration
    public string protocol { get; }
    Property Value
    Type Description
    string

    state

    The state of the data channel.

    Declaration
    public string state { get; }
    Property Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)