HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - DataChannelEvents.message()

Home > @rainway/web > DataChannelEvents > message

DataChannelEvents.message() method

Raised when a message arrives via the data channel

Signature:

message(data: Uint8Array): void | Promise<void>;

Parameters

ParameterTypeDescription
dataUint8Arraythe contents of the message

Returns:

void | Promise<void>