sendClientCommand method

void sendClientCommand(
  1. String clientId,
  2. String command, [
  3. Object? args
])

Sends a client.command (vibrate, capture, …) to a registered client device.

Implementation

void sendClientCommand(String clientId, String command, [Object? args]) =>
    bus.publish(
      DomeTopics.clientCommands(clientId),
      EventKinds.clientCommand,
      resource: {'command': command, 'args': ?args},
    );