W3cubDocs

/Haxe JavaScript

DataChannel

package js.html.rtc

extends EventTarget

@:native("DataChannel") Available on js

Variables

binaryType:DataChannelType

read only bufferedAmount:Int

bufferedAmountLowThreshold:Int

read only id:Int

read only label:String

onbufferedamountlow:Function

onclose:Function

onerror:Function

onmessage:Function

onopen:Function

read only ordered:Bool

read only protocol:String

read only readyState:DataChannelState

read only reliable:Bool

read only stream:Int

Methods

close ():Void

send (data:ArrayBufferView):Void

send (data:String):Void

send (data:Blob):Void

send (data:ArrayBuffer):Void

Throws:

null DOMError

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