W3cubDocs

/Laravel 5.3

PusherBroadcaster

class PusherBroadcaster extends Broadcaster (View source)

Methods

$this channel(string $channel, callable $callback)

Register a channel authenticator.

from Broadcaster
void __construct(Pusher $pusher)

Create a new broadcaster instance.

mixed auth(Request $request)

Authenticate the incoming request for a given channel.

mixed validAuthenticationResponse(Request $request, mixed $result)

Return the valid authentication response.

void broadcast(array $channels, string $event, array $payload = array())

Broadcast the given event.

Pusher getPusher()

Get the Pusher SDK instance.

Details

$this channel(string $channel, callable $callback)

Register a channel authenticator.

Parameters

string $channel
callable $callback

Return Value

$this

void __construct(Pusher $pusher)

Create a new broadcaster instance.

Parameters

Pusher $pusher

Return Value

void

mixed auth(Request $request)

Authenticate the incoming request for a given channel.

Parameters

Request $request

Return Value

mixed

mixed validAuthenticationResponse(Request $request, mixed $result)

Return the valid authentication response.

Parameters

Request $request
mixed $result

Return Value

mixed

void broadcast(array $channels, string $event, array $payload = array())

Broadcast the given event.

Parameters

array $channels
string $event
array $payload

Return Value

void

Pusher getPusher()

Get the Pusher SDK instance.

Return Value

Pusher

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.html