Home > @rainway/web > MessageEventRequest > respond
MessageEventRequest.respond() method
A callback to send a response to this message.
(The remote peer did something like await channel.request("...")
, and the remote promise will resolve to the response provided here.)
Signature:
respond(response: Uint8Array): void;
Parameters
Parameter | Type | Description |
---|---|---|
response | Uint8Array |
Returns:
void