@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="RTCDataChannel")
public class RTCDataChannel
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
binaryType
The property binaryType on the RTCDataChannel interface is a DOMString which specifies the type of JavaScript object which should be used to represent binary data received on the RTCDataChannel.
|
int |
bufferedAmountLowThreshold
The RTCDataChannel property bufferedAmountLowThreshold is used to specify the number of bytes of buffered outgoing data that is considered "low." The default value is 0.
|
EventHandler |
onbufferedamountlow
The RTCDataChannel.onbufferedamountlow property is an EventHandler which specifies a function the browser calls when the bufferedamountlow event is sent to the RTCDataChannel.
|
EventHandler |
onclose
The RTCDataChannel.onclose property is an EventHandler which specifies a function to be called by the browser when the close event is received by the RTCDataChannel.
|
EventHandler |
onclosing
The RTCDataChannel.onclosing property is an EventHandler which specifies a function to be called by the browser when the closing event is received by the RTCDataChannel.
|
RTCErrorEventHandler |
onerror
The RTCDataChannel.onerror property is an EventHandler which specifies a function to be called when the error event is received.
|
MessageEventHandler |
onmessage
The RTCDataChannel.onmessage property stores an EventHandler which specifies a function to be called when the message event is fired on the channel.
|
RTCDataChannelEventHandler |
onopen
The RTCDataChannel.onopen property is an EventHandler which specifies a function to be called when the open event is fired; this is a simple Event which is sent when the data channel's underlying data transport—the link over which the RTCDataChannel's messages flow—is established or re-established.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RTCDataChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBufferedamountlowListener(EventListener callback) |
void |
addBufferedamountlowListener(EventListener callback,
AddEventListenerOptions options) |
void |
addBufferedamountlowListener(EventListener callback,
boolean useCapture) |
void |
addCloseListener(EventListener callback) |
void |
addCloseListener(EventListener callback,
AddEventListenerOptions options) |
void |
addCloseListener(EventListener callback,
boolean useCapture) |
void |
addErrorListener(RTCErrorEventListener callback) |
void |
addErrorListener(RTCErrorEventListener callback,
AddEventListenerOptions options) |
void |
addErrorListener(RTCErrorEventListener callback,
boolean useCapture) |
void |
addMessageListener(MessageEventListener callback) |
void |
addMessageListener(MessageEventListener callback,
AddEventListenerOptions options) |
void |
addMessageListener(MessageEventListener callback,
boolean useCapture) |
void |
addOpenListener(RTCDataChannelEventListener callback) |
void |
addOpenListener(RTCDataChannelEventListener callback,
AddEventListenerOptions options) |
void |
addOpenListener(RTCDataChannelEventListener callback,
boolean useCapture) |
int |
bufferedAmount()
The read-only RTCDataChannel property bufferedAmount returns the number of bytes of data currently queued to be sent over the data channel.
|
void |
close()
The RTCDataChannel.close() method closes the RTCDataChannel.
|
java.lang.Double |
id()
The read-only RTCDataChannel property id returns an ID number (between 0 and 65,534) which uniquely identifies the RTCDataChannel.
|
java.lang.String |
label()
The read-only RTCDataChannel property label returns a DOMString containing a name describing the data channel.
|
java.lang.Double |
maxPacketLifeTime()
The read-only RTCDataChannel property maxPacketLifeTime returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data channel was created, or null.
|
java.lang.Double |
maxRetransmits()
The read-only RTCDataChannel property maxRetransmits returns the maximum number of times the browser should try to retransmit a message before giving up, as set when the data channel was created, or null, which indicates that there is no maximum.
|
boolean |
negotiated()
The read-only RTCDataChannel property negotiated indicates whether the RTCDataChannel's connection was negotiated by the Web app (true) or by the WebRTC layer (false).
|
boolean |
ordered()
The read-only RTCDataChannel property ordered indicates whether or not the data channel guarantees in-order delivery of messages; the default is true, which indicates that the data channel is indeed ordered.
|
java.lang.String |
priority() |
java.lang.String |
protocol()
The read-only RTCDataChannel property protocol returns a DOMString containing the name of the subprotocol in use.
|
java.lang.String |
readyState()
The read-only RTCDataChannel property readyState returns an enum of type RTCDataChannelState which indicates the state of the data channel's underlying data connection.
|
void |
removeBufferedamountlowListener(EventListener callback) |
void |
removeBufferedamountlowListener(EventListener callback,
boolean useCapture) |
void |
removeBufferedamountlowListener(EventListener callback,
EventListenerOptions options) |
void |
removeCloseListener(EventListener callback) |
void |
removeCloseListener(EventListener callback,
boolean useCapture) |
void |
removeCloseListener(EventListener callback,
EventListenerOptions options) |
void |
removeErrorListener(RTCErrorEventListener callback) |
void |
removeErrorListener(RTCErrorEventListener callback,
boolean useCapture) |
void |
removeErrorListener(RTCErrorEventListener callback,
EventListenerOptions options) |
void |
removeMessageListener(MessageEventListener callback) |
void |
removeMessageListener(MessageEventListener callback,
boolean useCapture) |
void |
removeMessageListener(MessageEventListener callback,
EventListenerOptions options) |
void |
removeOpenListener(RTCDataChannelEventListener callback) |
void |
removeOpenListener(RTCDataChannelEventListener callback,
boolean useCapture) |
void |
removeOpenListener(RTCDataChannelEventListener callback,
EventListenerOptions options) |
void |
send(ArrayBuffer data)
The send() method of the RTCDataChannel interface sends data across the data channel to the remote peer.
|
void |
send(ArrayBufferView data)
The send() method of the RTCDataChannel interface sends data across the data channel to the remote peer.
|
void |
send(Blob data)
The send() method of the RTCDataChannel interface sends data across the data channel to the remote peer.
|
void |
send(java.lang.String data)
The send() method of the RTCDataChannel interface sends data across the data channel to the remote peer.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@Nonnull @BinaryType public java.lang.String binaryType
public int bufferedAmountLowThreshold
@Nullable public EventHandler onbufferedamountlow
@Nullable public EventHandler onclose
@Nullable public EventHandler onclosing
@Nullable public RTCErrorEventHandler onerror
@Nullable public MessageEventHandler onmessage
@Nullable public RTCDataChannelEventHandler onopen
@JsProperty(name="bufferedAmount") public int bufferedAmount()
@JsProperty(name="id") @Nullable public java.lang.Double id()
@JsProperty(name="label") @Nonnull public java.lang.String label()
@JsProperty(name="maxPacketLifeTime") @Nullable public java.lang.Double maxPacketLifeTime()
@JsProperty(name="maxRetransmits") @Nullable public java.lang.Double maxRetransmits()
@JsProperty(name="negotiated") public boolean negotiated()
@JsProperty(name="ordered") public boolean ordered()
@JsProperty(name="priority") @Nonnull @RTCPriorityType public java.lang.String priority()
@JsProperty(name="protocol") @Nonnull public java.lang.String protocol()
@JsProperty(name="readyState") @Nonnull @RTCDataChannelState public java.lang.String readyState()
public void close()
public void send(@Nonnull
java.lang.String data)
public void send(@Nonnull
Blob data)
public void send(@Nonnull
ArrayBuffer data)
public void send(@Nonnull
ArrayBufferView data)
@JsOverlay
public final void addErrorListener(@Nonnull
RTCErrorEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addErrorListener(@Nonnull
RTCErrorEventListener callback,
boolean useCapture)
@JsOverlay
public final void addErrorListener(@Nonnull
RTCErrorEventListener callback)
@JsOverlay
public final void removeErrorListener(@Nonnull
RTCErrorEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeErrorListener(@Nonnull
RTCErrorEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeErrorListener(@Nonnull
RTCErrorEventListener callback)
@JsOverlay
public final void addOpenListener(@Nonnull
RTCDataChannelEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addOpenListener(@Nonnull
RTCDataChannelEventListener callback,
boolean useCapture)
@JsOverlay
public final void addOpenListener(@Nonnull
RTCDataChannelEventListener callback)
@JsOverlay
public final void removeOpenListener(@Nonnull
RTCDataChannelEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeOpenListener(@Nonnull
RTCDataChannelEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeOpenListener(@Nonnull
RTCDataChannelEventListener callback)
@JsOverlay
public final void addBufferedamountlowListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addBufferedamountlowListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addBufferedamountlowListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeBufferedamountlowListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeBufferedamountlowListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeBufferedamountlowListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addCloseListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addCloseListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addCloseListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeCloseListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeCloseListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeCloseListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addMessageListener(@Nonnull
MessageEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addMessageListener(@Nonnull
MessageEventListener callback,
boolean useCapture)
@JsOverlay
public final void addMessageListener(@Nonnull
MessageEventListener callback)
@JsOverlay
public final void removeMessageListener(@Nonnull
MessageEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeMessageListener(@Nonnull
MessageEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeMessageListener(@Nonnull
MessageEventListener callback)