Class RTCDataChannel | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class RTCDataChannel

    Inheritance
    System.Object
    RTCDataChannel
    Namespace: Unity.WebRTC
    Syntax
    public class RTCDataChannel

    Properties

    Id

    Declaration
    public int Id { get; }
    Property Value
    Type Description
    System.Int32

    Label

    Declaration
    public string Label { get; }
    Property Value
    Type Description
    System.String

    OnClose

    Declaration
    public DelegateOnClose OnClose { get; set; }
    Property Value
    Type Description
    DelegateOnClose

    OnMessage

    Declaration
    public DelegateOnMessage OnMessage { get; set; }
    Property Value
    Type Description
    DelegateOnMessage

    OnOpen

    Declaration
    public DelegateOnOpen OnOpen { get; set; }
    Property Value
    Type Description
    DelegateOnOpen

    Methods

    Close()

    Declaration
    public void Close()

    Send(Byte[])

    Declaration
    public void Send(byte[] msg)
    Parameters
    Type Name Description
    System.Byte[] msg

    Send(String)

    Declaration
    public void Send(string msg)
    Parameters
    Type Name Description
    System.String msg
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023