class Illuminate / Broadcasting / Broadcasters / PusherBroadcaster

PusherBroadcaster

Extends

Uses

Properties

protected

$pusher Pusher\Pusher

The Pusher SDK instance.

Default: null

Methods

public

__construct ( Pusher\Pusher $pusher ) : void

Create a new broadcaster instance.

Parameters

  • $pusher Pusher\Pusher
public

resolveAuthenticatedUser ( $request ) : array|null

Resolve the authenticated user payload for an incoming connection request.

Parameters

public

auth ( $request ) : mixed

Authenticate the incoming request for a given channel.

Parameters

public

validAuthenticationResponse ( $request , $result ) : mixed

Return the valid authentication response.

Parameters

protected

decodePusherResponse ( $request , $response ) : array

Decode the given Pusher response.

Parameters

public

broadcast ( array $channels , $event , array $payload ) : void

Broadcast the given event.

Parameters

  • $channels array
  • $event string
  • $payload array
public

getPusher ( ) : Pusher\Pusher

Get the Pusher SDK instance.

public

setPusher ( $pusher ) : void

Set the Pusher SDK instance.

Parameters

  • $pusher Pusher\Pusher