Message interface that any device or mock device must fulfill to integrate with Client.
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.