Class DataChannelBase
Inheritance
DataChannelBase
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
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
ConnectionId
Declaration
public string ConnectionId { get; protected set; }
Property Value
Implements
IsConnected
Declaration
public bool IsConnected { get; }
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 |
|
Send(Byte[])
Declaration
public virtual void Send(byte[] msg)
Parameters
Type |
Name |
Description |
Byte[] |
msg |
|
Send(String)
Declaration
public virtual void Send(string msg)
Parameters
Type |
Name |
Description |
String |
msg |
|
SetChannel(String, RTCDataChannel)
Declaration
public virtual void SetChannel(string connectionId, RTCDataChannel channel)
Parameters
Implements
SetChannel(SignalingEventData)
Declaration
public virtual void SetChannel(SignalingEventData data)
Parameters
Implements