Struct WebRTCDataChannel
struct WebRTCDataChannel
;
Methods
Name | Description |
close
|
Closes this data channel, notifying the other peer.
|
getId
|
Returns the id assigned to this channel during creation (or auto-assigned during negotiation).
If the channel is not negotiated out-of-band the id will only be available after the connection is established (will return 65535 until then).
|
getLabel
|
Returns the label assigned to this channel during creation.
|
getMaxPacketLifeTime
|
Returns the maxPacketLifeTime value assigned to this channel during creation.
Will be 65535 if not specified.
|
getMaxRetransmits
|
Returns the maxRetransmits value assigned to this channel during creation.
Will be 65535 if not specified.
|
getProtocol
|
Returns the sub-protocol assigned to this channel during creation. An empty string if not specified.
|
getReadyState
|
Returns the current state of this channel, see channelstate .
|
getWriteMode
|
|
isNegotiated
|
Returns true if this channel was created with out-of-band configuration.
|
isOrdered
|
Returns true if this channel was created with ordering enabled (default).
|
poll
|
Reserved, but not used for now.
|
setWriteMode
|
|
wasStringPacket
|
Returns true if the last received packet was transferred as text. See writeMode .
|