Web SDK - MessageEventRequest.respond()

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

ParameterTypeDescription
responseUint8Array

Returns:

void