send method
Sends the command and payload to the device or service responsible for handling events.
The command
is used to route events to the correct device or service handler.
The payload
is the data that will be used with the command by the device or service.
Returns a future with the result MessageSendResponse once completed successfully.
Implementation
external dynamic /* Promise<MessageSendResponse> */ send(
String command,
dynamic payload,
);