Class RTCDataChannel
Inheritance
RTCDataChannel
Syntax
public class RTCDataChannel : IDisposable
Properties
Id
Declaration
Property Value
Label
Declaration
public string Label { 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
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
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(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