class Illuminate / Broadcasting / Broadcasters / PusherBroadcaster
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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