Home > @rainway/native > MessageEventRequest
MessageEventRequest class
An event that occurs when a DataChannel gets a message that expects a response.
Signature:
export declare class MessageEventRequest extends BaseEvent<Uint8Array>
Extends: BaseEvent<Uint8Array>
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the MessageEventRequest class.
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| asString | string | UTF8 representation of the message data. | |
| type | MessageEventType.Request | The message type, which indicates whether a response is expected. |
Methods
| Method | Modifiers | Description |
|---|---|---|
| respond(response) | Respond to this request. |
