Class DataChannelBase
Inheritance
DataChannelBase
Syntax
public abstract class DataChannelBase : MonoBehaviour, IDataChannel
Fields
label
Declaration
[SerializeField]
protected string label
Field Value
local
Declaration
[SerializeField]
protected bool local
Field Value
Properties
Channel
Declaration
public RTCDataChannel Channel { get; protected set; }
Property Value
Implements
IsLocal
Declaration
public bool IsLocal { get; }
Property Value
Implements
Label
Declaration
public string Label { get; }
Property Value
Implements
OnStartedChannel
Declaration
public OnStartedChannelHandler OnStartedChannel { get; set; }
Property Value
OnStoppedChannel
Declaration
public OnStoppedChannelHandler OnStoppedChannel { get; set; }
Property Value
Methods
OnClose(String)
Declaration
protected virtual void OnClose(string connectionId)
Parameters
Type |
Name |
Description |
String |
connectionId |
|
OnMessage(Byte[])
Declaration
protected virtual void OnMessage(byte[] bytes)
Parameters
Type |
Name |
Description |
Byte[] |
bytes |
|
OnOpen(String)
Declaration
protected virtual void OnOpen(string connectionId)
Parameters
Type |
Name |
Description |
String |
connectionId |
|
SetChannel(String, RTCDataChannel)
Declaration
public virtual void SetChannel(string connectionId, RTCDataChannel channel)
Parameters
Implements