call() публичный Метод

Send the prepared request.
public call ( ) : Kraken\Promise\PromiseInterface
Результат Kraken\Promise\PromiseInterface
Пример #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function sendCommand($alias, $command, $params = [])
 {
     $req = new Request($this->channel, $alias, new RuntimeCommand($command, $params));
     return $req->call();
 }
Пример #2
0
 /**
  * @override
  * @inheritDoc
  */
 protected function informServer($commandParent, $commandName, $commandParams = [])
 {
     $protocol = $this->channel->createProtocol(new RuntimeCommand($commandName, $commandParams));
     if ($commandParent !== null) {
         $protocol->setDestination($commandParent);
     }
     $req = new Request($this->channel, $this->receiver, $protocol, ['timeout' => 2, 'retriesLimit' => 10, 'retriesInterval' => 1]);
     return $req->call();
 }