src/Broadcasters/RedisBroadcaster.php
public function broadcast(array $channels, $event, array $payload = [])
    {
        $socket  = isset($payload['socket']) ? $payload['socket'] : null;
        $payload = json_encode(['event' => $event, 'data' => $payload, 'socket' => $socket]);

        foreach ($this->formatChannels($channels) as $channel) {
            $this->redis->publish($channel, $payload);
        }
    }
public function broadcast(array $channels, $event, array $payload = [])
    {
        $socket  = isset($payload['socket']) ? $payload['socket'] : null;
        $payload = json_encode(['event' => $event, 'data' => $payload, 'socket' => $socket]);

        foreach ($this->formatChannels($channels) as $channel) {
            $this->redis->publish($channel, $payload);
        }
    }
Broadcast the given event.

@param  array $channels
@param  string $event
@param  array $payload
@return void