Class RTCDataChannelEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The RTCDataChannelEvent interface
represents an event related to a specific RTCDataChannel.
[Value("RTCDataChannelEvent")]
public class RTCDataChannelEvent : Event
- Inheritance
-
RTCDataChannelEvent
- Inherited Members
Remarks
-WebRTC
-RTCDataChannel
-A simple RTCDataChannel sample
-RTCPeerConnection (the target interface for RTCPeerConnection.Datachannel events)
Constructors
RTCDataChannelEvent()
public RTCDataChannelEvent()
RTCDataChannelEvent(string, RTCDataChannelEventInit)
The RTCDataChannelEvent() constructor
creates a new RTCDataChannelEvent object.
public RTCDataChannelEvent(string type, RTCDataChannelEventInit eventInitDict)
Parameters
typestringeventInitDictRTCDataChannelEventInit
Remarks
NOTE
You will rarely if ever construct an
RTCDataChannelEventby hand; these
events are normally created and sent by the WebRTC layer itself.
-WebRTC
-RTCDataChannel
-RTCPeerConnection
-A simple RTCDataChannel sample
Properties
Channel
The read-only property RTCDataChannelEvent.channel
returns the RTCDataChannel associated with the event.
[Value("channel")]
public RTCDataChannel Channel { get; }
Property Value
- RTCDataChannel
A RTCDataChannel object representing the data channel linking the
receiving RTCPeerConnection to its remote peer.
Remarks
-RTCPeerConnection.Datachannel
-RTCDataChannel
-A simple RTCDataChannel sample
-RTCPeerConnection