JS API Reference MessageEvent_2 class

MessageEvent_2 class

Extends: RNBOBaseEvent

Implements: IRNBOMessageEvent

MessageEvent class to send Message Events into a RNBO Device or receive events from a Device.

Remarks

Refer to our article on Sending and Receiving Messages to learn more.

Signature

export declare class RNBOMessageEvent extends RNBOBaseEvent implements IRNBOMessageEvent 

Constructor

Constructs a new instance of the RNBOMessageEvent class

Parameters

ParameterTypeDescription
timeMillisecondTime
tagMessageTag
payloadMessagePayload
objectIdMessageTag
eventTargetRNBOEventTarget

Properties

objectId

read-only

Type: MessageTag

The optional id of the target object of the Message

payload

read-only

Type: MessagePayload

The payload data of the Message. See MessagePayload

tag

read-only

Type: MessageTag

The tag of the Message. See MessageTag

type

read-only

Type: RNBOEventType.MessageEvent

The type of the event. See EventType

Methods

serialize

Parameters

None.

Returns:

IRNBOMessageEvent