org.danielnixon.saferdom.experimental.webrtc

RTCDataChannel

trait RTCDataChannel extends Object with raw.EventTarget

The RTCDataChannel interface represents a bi-directional data channel between two peers of a connection.

MDN

Annotations
@RawJSType() @native()
Linear Supertypes
raw.EventTarget, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RTCDataChannel
  2. EventTarget
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addEventListener[T <: raw.Event](type: String, listener: Function1[T, _], useCapture: Boolean = js.native): Unit

    The EventTarget.

    The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events (such as XMLHttpRequest).

    MDN

    Definition Classes
    EventTarget
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. var binaryType: String

    Returns a DOMString indicating the type of binary data transmitted by the connection.

    Returns a DOMString indicating the type of binary data transmitted by the connection. This should be either "blob" if Blob objects are being used or "arraybuffer" if ArrayBuffer objects are being used. Initially it is set to "blob".

    It controls the type of the MessageEvent.data property passed in the parameter of message targetting this RTCDataChannel.

    MDN

  9. def bufferedAmount: Double

    Returns an unsigned long containing the amount of bytes that have been queued for sending: that is the amount of data requested to be transmitted via RTCDataChannel.

    Returns an unsigned long containing the amount of bytes that have been queued for sending: that is the amount of data requested to be transmitted via RTCDataChannel.send() that has not been sent yet. Note that if the channel state, as given by RTCDataChannel.readyState is "closed", the buffering continues.

    MDN

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def close(): Unit

  12. def dispatchEvent(evt: raw.Event): Boolean

    Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order.

    Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) apply to events dispatched manually with dispatchEvent().

    MDN

    Definition Classes
    EventTarget
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hasOwnProperty(v: String): Boolean

    Definition Classes
    Object
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. val id: Double

    Returns an unsigned short being a unique id for the channel.

    Returns an unsigned short being a unique id for the channel. It is set at the creation of the RTCDataChannel object.

    MDN

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def isPrototypeOf(v: Object): Boolean

    Definition Classes
    Object
  22. val label: String

    Returns a DOMString containing a name describing the data channel.

    Returns a DOMString containing a name describing the data channel. There is no constraint of uniqueness about it.

    MDN

  23. val maxPacketLifeTime: Double

  24. val maxRetransmits: Double

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. val negotiated: Boolean

  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. var onclose: Function1[raw.Event, Any]

    Is the event handler called when the close event is received.

    Is the event handler called when the close event is received. Such an event is sent when the underlying data transport has been closed.

    MDN

  30. var onerror: Function1[raw.Event, Any]

  31. var onmessage: Function1[raw.MessageEvent, Any]

    Is the event handler called when the message event is received.

    Is the event handler called when the message event is received. Such an event is sent when a message is available on the data connection.

    MDN

  32. var onopen: Function1[raw.Event, Any]

  33. val ordered: Boolean

    The read-only property RTCDataChannel.

    The read-only property RTCDataChannel.ordered returns a Boolean indicating if the order of delivery of the messages is guaranteed or not.

    MDN

  34. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  35. val protocol: String

    Returns a DOMString containing the name of the subprotocol in use.

    Returns a DOMString containing the name of the subprotocol in use. If none, it returns "".

    MDN

  36. def readyState: RTCDataChannelState

    Returns an enum of the type RTCDataChannelState representing the state of the underlying data connection.

    Returns an enum of the type RTCDataChannelState representing the state of the underlying data connection.

    MDN

  37. def removeEventListener[T <: raw.Event](type: String, listener: Function1[T, _], useCapture: Boolean = js.native): Unit

    Removes the event listener previously registered with EventTarget.

    Removes the event listener previously registered with EventTarget.addEventListener.

    MDN

    Definition Classes
    EventTarget
  38. def send(data: |[|[|[String, Blob], ArrayBuffer], ArrayBufferView]): Unit

    Sends the data in parameter over the channel.

    Sends the data in parameter over the channel. The data can be a DOMString, a Blob, an ArrayBuffer or an ArrayBufferView.

    MDN

  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toLocaleString(): String

    Definition Classes
    Object
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. def valueOf(): Any

    Definition Classes
    Object
  43. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from raw.EventTarget

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped