Constructor

Event

new Event(type, senderId, data)

Parameter

type

(non-null cast.receiver.CastMessageBus.EventType or string)

The event type. It can be either cast.receiver.CastMessageBus.EventType.MESSAGE or the ID of the sender so applications can add event listeners that filter by senderId or that receive every message in the message bus. NOTE: In general application developers should not listen to messages by senderId, they should request CastChannel objects.

senderId

string

The identifier of the sender.

data

any type

Application message.

Value must not be null.

Properties

data

constant

non-null any type

Application message.

senderId

constant

string

The sender Id.