W3cubDocs

/Haxe JavaScript

DataChannel

package js.html.rtc

extends EventTarget

Available on js

The RTCDataChannel interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data. Every data channel is associated with an RTCPeerConnection, and each peer connection can have up to a theoretical maximum of 65,534 data channels (the actual limit may vary from browser to browser).

Documentation RTCDataChannel by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

binaryType:DataChannelType

read onlybufferedAmount:Int

bufferedAmountLowThreshold:Int

read onlyid:Int

read onlylabel:String

read onlymaxPacketLifeTime:Int

read onlymaxRetransmits:Int

onbufferedamountlow:Function

onclose:Function

onerror:Function

onmessage:Function

onopen:Function

read onlyordered:Bool

read onlyprotocol:String

read onlyreadyState:DataChannelState

read onlyreliable:Bool

Methods

close():Void

send(data:ArrayBufferView):Void

send(data:String):Void

send(data:Blob):Void

send(data:ArrayBuffer):Void

Throws:

null

DOMError

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/rtc/DataChannel.html