HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - DataChannel.send()

Home > @rainway/native > DataChannel > send

DataChannel.send() method

Sends a binary message via this data channel. If a string is given, it will be utf-8 encoded before transmission.

Signature:

send(data: string | Uint8Array): void;

Parameters

ParameterTypeDescription
datastring | Uint8Arraydata to transmit

Returns:

void