Available on js
binaryType:DataChannelType
read onlybufferedAmount:Int
bufferedAmountLowThreshold:Int
read onlyid:Int
read onlylabel:String
onbufferedamountlow:Function
onclose:Function
onerror:Function
onmessage:Function
onopen:Function
read onlyordered:Bool
read onlyprotocol:String
read onlyreadyState:DataChannelState
read onlyreliable:Bool
read onlystream:Int
close():Void
send(data:ArrayBufferView):Void
send(data:String):Void
send(data:Blob):Void
send(data:ArrayBuffer):Void
Throws:
null
DOMError
@:value({ capture : false })addEventListener(type:String, listener:Function, capture:Bool = false):Void
@:value({ capture : false })addEventListener(type:String, listener:EventListener, capture:Bool = false, ?wantsUntrusted:Bool):Void
dispatchEvent(event:Event):Bool
@:value({ capture : false })removeEventListener(type:String, listener:Function, capture:Bool = false):Void
@:value({ capture : false })removeEventListener(type:String, listener:EventListener, capture:Bool = false):Void