getPublisher() public method

Get publisher
public getPublisher ( ) : Publisher
return Thruway\Role\Publisher
Example #1
0
 /**
  * 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);
 }