Thruway\Peer\Client::getPublisher PHP Méthode

getPublisher() public méthode

Get publisher
public getPublisher ( ) : Publisher
Résultat Thruway\Role\Publisher
    public function getPublisher()
    {
        return $this->publisher;
    }

Usage Example

 /**
  * Publish
  *
  * @param string $topicName
  * @param array|mixed $arguments
  * @param array|mixed $argumentsKw
  * @param array|mixed $options
  * @return \React\Promise\Promise
  */
 public function publish($topicName, $arguments = null, $argumentsKw = null, $options = null)
 {
     return $this->peer->getPublisher()->publish($this, $topicName, $arguments, $argumentsKw, $options);
 }