HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - Peer.createDataChannel()

Home > @rainway/native > Peer > createDataChannel

Peer.createDataChannel() method

Creates a data channel.

Signature:

createDataChannel(options: DataChannelOptions): Promise<DataChannel>;

Parameters

ParameterTypeDescription
optionsDataChannelOptionsdata channel options

Returns:

Promise<DataChannel>

data channel object