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
Parameter | Type | Description |
---|---|---|
data | Uint8Array | the contents of the message |
Returns:
void | Promise<void>