DataChannel

open class DataChannel

Java wrapper for a C++ DataChannelInterface.

Constructors

Link copied to clipboard
constructor(nativeDataChannel: Long)

Types

Link copied to clipboard
open class Buffer
Java version of C++ DataBuffer.
Link copied to clipboard
open class Init
Java wrapper for WebIDL RTCDataChannel.
Link copied to clipboard
interface Observer
Java version of C++ DataChannelObserver.
Link copied to clipboard
enum State
Keep in sync with DataChannelInterface::DataState.

Functions

Link copied to clipboard
open fun bufferedAmount(): Long
Return the number of bytes of application data (UTF-8 text and binary data) that have been queued using SendBuffer but have not yet been transmitted to the network.
Link copied to clipboard
open fun close()
Close the channel.
Link copied to clipboard
open fun dispose()
Dispose of native resources attached to this channel.
Link copied to clipboard
open fun id(): Int
Link copied to clipboard
open fun label(): String
Link copied to clipboard
Register `observer`, replacing any previously-registered observer.
Link copied to clipboard
open fun send(buffer: DataChannel.Buffer): Boolean
Send `data` to the remote peer; return success.
Link copied to clipboard
Link copied to clipboard
Unregister the (only) observer.