A data channel from our device to another Peer on the Rainway Network.
export declare class DataChannel extends EventEmitter<DataChannelEvents>
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the
|request(data)||Sends a binary *request* message via this data channel. Awaits a response, and returns a promise that resolves to it. If a string is given, it will be utf-8 encoded before transmission.|
|send(data)||Sends a binary message via this data channel. If a string is given, it will be utf-8 encoded before transmission.|