public function send(MessageInterface $message) { $command = $this->client->getCommand('Send', $message->jsonSerialize()); $this->client->execute($command); return new EmptyReply(); }