class RedisBroadcaster extends Broadcaster (View source)
UsePusherChannelConventions |
protected array | $channels | The registered channel authenticators. | from Broadcaster |
protected array | $channelOptions | The registered channel options. | from Broadcaster |
protected BindingRegistrar | $bindingRegistrar | The binding registrar instance. | from Broadcaster |
protected Factory | $redis | The Redis instance. | |
protected string | $connection | The Redis connection to use for broadcasting. | |
protected string | $prefix | The Redis key prefix. |
$this | channel(string $channel, callable|string $callback, array $options = []) 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, callable|string $callback) Extract the parameters from the given pattern and channel. | from Broadcaster |
ReflectionParameter[] | extractParameters(callable|string $callback) Extracts the parameters out of what the user passed to handle the channel authentication. | from Broadcaster |
ReflectionParameter[] | extractParametersFromClass(string $callback) Extracts the parameters out of a class channel's "join" method. | from Broadcaster |
array | extractChannelKeys(string $pattern, string $channel) Extract the channel keys from the incoming channel name. | from Broadcaster |
mixed | resolveBinding(string $key, string $value, array $callbackParameters) Resolve the given parameter binding. | from Broadcaster |
mixed | resolveExplicitBindingIfPossible(string $key, mixed $value) Resolve an explicit parameter binding if applicable. | from Broadcaster |
mixed | resolveImplicitBindingIfPossible(string $key, mixed $value, array $callbackParameters) Resolve an implicit parameter binding if applicable. | from Broadcaster |
bool | isImplicitlyBindable(string $key, ReflectionParameter $parameter) Determine if a given key and parameter is implicitly bindable. | from Broadcaster |
array | formatChannels(array $channels) Format the channel array into an array of strings. | |
BindingRegistrar | binder() Get the model binding registrar instance. | from Broadcaster |
callable | normalizeChannelHandlerToCallable(mixed $callback) Normalize the given callback into a callable. | from Broadcaster |
mixed | retrieveUser(Request $request, string $channel) Retrieve the authenticated user using the configured guard (if any). | from Broadcaster |
array | retrieveChannelOptions(string $channel) Retrieve options for a certain channel. | from Broadcaster |
bool | channelNameMatchesPattern(string $channel, string $pattern) Check if channel name from request match a pattern from registered channels. | from Broadcaster |
bool | isGuardedChannel(string $channel) Return true if channel is protected by authentication. | from UsePusherChannelConventions |
string | normalizeChannelName(string $channel) Remove prefix from channel name. | from UsePusherChannelConventions |
void | __construct(Factory $redis, string|null $connection = null, string $prefix = '') 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 = []) Broadcast the given event. | |
string | broadcastMultipleChannelsScript() Get the Lua script for broadcasting to multiple channels. |
Register a channel authenticator.
Authenticate the incoming request for a given channel.
Extract the parameters from the given pattern and channel.
Extracts the parameters out of what the user passed to handle the channel authentication.
Extracts the parameters out of a class channel's "join" method.
Extract the channel keys from the incoming channel name.
Resolve the given parameter binding.
Resolve an explicit parameter binding if applicable.
Resolve an implicit parameter binding if applicable.
Determine if a given key and parameter is implicitly bindable.
Format the channel array into an array of strings.
Get the model binding registrar instance.
Normalize the given callback into a callable.
Retrieve the authenticated user using the configured guard (if any).
Retrieve options for a certain channel.
Check if channel name from request match a pattern from registered channels.
Return true if channel is protected by authentication.
Remove prefix from channel name.
Create a new broadcaster instance.
Authenticate the incoming request for a given channel.
Return the valid authentication response.
Broadcast the given event.
Get the Lua script for broadcasting to multiple channels.
ARGV[1] - The payload ARGV[2...] - The channels
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.html