main.webrtc.RTCDataChannel.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package webrtc
external class RTCDataChannel : org.w3c.dom.events.EventTarget {
val label: String
val ordered: Boolean
val maxPacketLifeTime: Number?
val maxRetransmits: Number?
val protocol: String
val negotiated: Boolean
val id: Number?
val readyState: RTCDataChannelState
val bufferedAmount: Number
var bufferedAmountLowThreshold: Number
// binaryType: string;
fun close()
fun send(data: String)
fun send(data: org.w3c.files.Blob)
fun send(data: org.khronos.webgl.ArrayBuffer)
fun send(data: org.khronos.webgl.ArrayBufferView)
var onopen: DataChannelEventHandler
var onmessage: DataChannelEventHandler
var onbufferedamountlow: DataChannelEventHandler
// onerror: DataChannelEventHandler;
var onclose: DataChannelEventHandler
}