Class: Receiver

Receiver

new Receiver(config)

The Chromecast receiver that runs on the device.
Parameters:
Name Type Description
config Object Configuration object
Properties
Name Type Description
namespace String Chromecast namespace for this application.
debug Boolean If true, debug information will be logged to the console.
Source:

Methods

<static> onMessage(messageType, callback)

Register a new message handler callback.
Parameters:
Name Type Description
messageType String Name of message type to listen for.
callback Receiver~onMessageCallback The callback to invoke when the given message type is received.
Source:

<static> sendMessage(messageType, message)

Send a message to the Sender.
Parameters:
Name Type Description
messageType String Name of the message type to send.
message String Message data to send.
Source: