Laravel - Broadcasting - Broadcast Queue
By default, each broadcast event is placed on the default queue for the default queue connection specified in your queue.php
configuration file. You may customize the queue connection and name used by the broadcaster by defining connection
and queue
properties on your event class:
/**
* The name of the queue connection to use when broadcasting the event.
*
* @var string
*/
public $connection = 'redis';
/**
* The name of the queue on which to place the broadcasting job.
*
* @var string
*/
public $queue = 'default';
If you want to broadcast your event using the sync
queue instead of the default queue driver, you can implement the ShouldBroadcastNow
interface instead of ShouldBroadcast
: