Initializes the message provider with the given options. In most cases, users should not have to supply their own options for these values.
Register the callback for when events from the device are received.
Function to be called whenever a message is received from the device. Function should take Message as a parameter to receive the contents of the message.
Sends the command and payload to the device or service responsible for handling events.
Command name used to route events to the correct device or service handler.
Data to be used with the command by the device or service.
A promise that contains the send message result once resolved.
Implements the MessageProvider for WebView based devices that allow url interception and direct message evaluation (script injection). Messages are passed to device via HTTP GET and JSON encoded URLs. Messages are passed from device to browser from script evaluation via a known function which defaults to window.__dispatchMessage.
MessageProvider