docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RTCDataChannelInit

    Provides configuration options for the data channel.

    Inheritance
    object
    RTCDataChannelInit
    Namespace: Unity.WebRTC
    Assembly: Unity.WebRTC.dll
    Syntax
    public class RTCDataChannelInit

    Fields

    id

    Specifies a unique 16-bit identifier for the data channel, allowing explicit channel setup during manual negotiation.

    Declaration
    public int? id
    Field Value
    Type Description
    int?
    See Also
    CreateDataChannel(string, RTCDataChannelInit)

    maxPacketLifeTime

    Specifies the maximum number of transmission retries for a message when operating under non-guaranteed delivery conditions.

    Declaration
    public int? maxPacketLifeTime
    Field Value
    Type Description
    int?
    Remarks

    Cannot be set along with maxRetransmits.

    See Also
    maxRetransmits

    maxRetransmits

    Specifies the maximum number of times the data channel will attempt to resend a message if initial transmission fails under unreliable conditions.

    Declaration
    public int? maxRetransmits
    Field Value
    Type Description
    int?
    Remarks

    Cannot be set along with maxPacketLifeTime.

    See Also
    maxPacketLifeTime

    negotiated

    Specifies whether the data channel's connection is manually negotiated by the application or automatically handled by WebRTC.

    Declaration
    public bool? negotiated
    Field Value
    Type Description
    bool?
    See Also
    CreateDataChannel(string, RTCDataChannelInit)

    ordered

    Determines whether the data channel ensures the delivery of messages in the order they were sent.

    Declaration
    public bool? ordered
    Field Value
    Type Description
    bool?
    See Also
    CreateDataChannel(string, RTCDataChannelInit)

    protocol

    Specifies the sub protocol being used by the data channel to transmit and process messages.

    Declaration
    public string protocol
    Field Value
    Type Description
    string
    See Also
    CreateDataChannel(string, RTCDataChannelInit)

    See Also

    CreateDataChannel(string, RTCDataChannelInit)
    In This Article
    Back to top
    Copyright © 2024 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)