Home > @rainway/native > Peer > createDataChannel
Peer.createDataChannel() method
Creates a data channel.
Signature:
createDataChannel(options: DataChannelOptions): Promise<DataChannel>;
Parameters
Parameter | Type | Description |
---|---|---|
options | DataChannelOptions | data channel options |
Returns:
Promise<DataChannel>
data channel object