class Illuminate / Broadcasting / Broadcasters / PusherBroadcaster
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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

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
protected

pusherServerIsVersionFiveOrGreater ( ) : bool

Determine if the Pusher PHP server is version 5.0 or greater.

public

getPusher ( ) : Pusher\Pusher

Get the Pusher SDK instance.

public

setPusher ( $pusher ) : void

Set the Pusher SDK instance.

Parameters

  • $pusher Pusher\Pusher