Class RTCDataChannel
Inheritance
RTCDataChannel
Syntax
public class RTCDataChannel : RefCountedObject, IDisposable
Properties
BufferedAmount
Declaration
public ulong BufferedAmount { get; }
Property Value
Id
Declaration
Property Value
Label
Declaration
public string Label { get; }
Property Value
MaxRetransmits
Declaration
public ushort MaxRetransmits { get; }
Property Value
MaxRetransmitTime
Declaration
public ushort MaxRetransmitTime { get; }
Property Value
Negotiated
Declaration
public bool Negotiated { get; }
Property Value
OnClose
Declaration
public DelegateOnClose OnClose { get; set; }
Property Value
OnMessage
Declaration
public DelegateOnMessage OnMessage { get; set; }
Property Value
OnOpen
Declaration
public DelegateOnOpen OnOpen { get; set; }
Property Value
Ordered
Declaration
public bool Ordered { get; }
Property Value
Protocol
Declaration
public string Protocol { get; }
Property Value
ReadyState
The property returns an enum of the RTCDataChannelState
which shows
the state of the channel.
Declaration
public RTCDataChannelState ReadyState { get; }
Property Value
See Also
Methods
Close()
Declaration
Dispose()
Declaration
public override void Dispose()
Overrides
Finalize()
Declaration
protected void Finalize()
Send(Byte[])
The method Sends data across the data channel to the remote peer.
Declaration
public void Send(byte[] msg)
Parameters
Type |
Name |
Description |
Byte[] |
msg |
|
Exceptions
See Also
Send(IntPtr, Int32)
Declaration
public void Send(IntPtr msgPtr, int length)
Parameters
Send(String)
The method Sends data across the data channel to the remote peer.
Declaration
public void Send(string msg)
Parameters
Type |
Name |
Description |
String |
msg |
|
Exceptions
See Also
Send(Void*, Int32)
Declaration
public void Send(void *msgPtr, int length)
Parameters
Type |
Name |
Description |
Void* |
msgPtr |
|
Int32 |
length |
|
Send<T>(NativeArray<T>)
Declaration
public void Send<T>(NativeArray<T> msg)
where T : struct
Parameters
Type Parameters
Send<T>(NativeSlice<T>)
Declaration
public void Send<T>(NativeSlice<T> msg)
where T : struct
Parameters
Type Parameters
See Also