Vinelab\Minion\Client::publish PHP Method

publish() public method

Publish to a topic with the given data.
public publish ( string $topic, array | mixed $arguments = null, array | mixed $argumentsKw = null, array $options = null ) : Promise
$topic string
$arguments array | mixed
$argumentsKw array | mixed
$options array
return React\Promise\Promise
    public function publish($topic, $arguments = null, $argumentsKw = null, $options = null)
    {
        return $this->getSession()->publish($this->prepareTopic($topic), $arguments, $argumentsKw, $options);
    }