PusherBroadcaster
class PusherBroadcaster extends Broadcaster (View source)
Properties
protected array | $channels | The registered channel authenticators. | from Broadcaster |
protected Pusher | $pusher | The Pusher SDK instance. |
Methods
$this | channel(string $channel, callable $callback) Register a channel authenticator. | from Broadcaster |
mixed | verifyUserCanAccessChannel(Request $request, string $channel) Authenticate the incoming request for a given channel. | from Broadcaster |
array | extractAuthParameters(string $pattern, string $channel) Extract the parameters from the given pattern and channel. | from Broadcaster |
array | formatChannels(array $channels) Format the channel array into an array of strings. | 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. | |
array | decodePusherResponse(mixed $response) Decode the given Pusher response. | |
void | broadcast(array $channels, string $event, array $payload = []) Broadcast the given event. | |
Pusher | getPusher() Get the Pusher SDK instance. |
Details
$this channel(string $channel, callable $callback)
Register a channel authenticator.
protected mixed verifyUserCanAccessChannel(Request $request, string $channel)
Authenticate the incoming request for a given channel.
protected array extractAuthParameters(string $pattern, string $channel)
Extract the parameters from the given pattern and channel.
protected array formatChannels(array $channels)
Format the channel array into an array of strings.
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.
protected array decodePusherResponse(mixed $response)
Decode the given Pusher response.
void broadcast(array $channels, string $event, array $payload = [])
Broadcast the given event.
Pusher getPusher()
Get the Pusher SDK instance.
© 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