HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - MessageEventStandalone

Home > @rainway/native > MessageEventStandalone

MessageEventStandalone class

An event that occurs when a DataChannel gets a message that does not expect a response.

Signature:

export declare class MessageEventStandalone 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 MessageEventStandalone class.

Properties

PropertyModifiersTypeDescription
asStringstringUTF8 representation of the message data.
typeMessageEventType.StandaloneThe message type, which indicates whether a response is expected.