PHP Class Cmosguy\Broadcasting\Broadcasters\PushStreamBroadcaster

Inheritance: implements Illuminate\Contracts\Broadcasting\Broadcaster
Mostra file Open project: cmosguy/laravel-http-pushstream-broadcaster

Public Methods

Method Description
__construct ( Client $client ) PushStreamBroadcaster constructor.
broadcast ( array $channels, string $event, array $payload = [] ) : void Broadcast the given event.

Method Details

__construct() public method

PushStreamBroadcaster constructor.
public __construct ( Client $client )
$client GuzzleHttp\Client

broadcast() public method

Broadcast the given event.
public broadcast ( array $channels, string $event, array $payload = [] ) : void
$channels array
$event string
$payload array
return void