BroadcastManager
Implements
Properties
$drivers array
The array of resolved broadcast drivers.
$customCreators array
The registered custom driver creators.
Methods
routes ( array $attributes ) : void
Register the routes for handling broadcast authentication and sockets.
Parameters
- $attributes array|null
socket ( $request ) : string|null
Get the socket ID for the given request.
Parameters
- $request Request |null
event ( $event ) : PendingBroadcast
Begin broadcasting an event.
Parameters
- $event mixed|null
queue ( $event ) : void
Queue the given event for broadcast.
Parameters
- $event mixed
connection ( $driver ) : mixed
Get a driver instance.
Parameters
- $driver string|null
driver ( $name ) : mixed
Get a driver instance.
Parameters
- $name string|null
get ( $name ) : Broadcaster
Attempt to get the connection from the local cache.
Parameters
- $name string
callCustomCreator ( array $config ) : mixed
Call a custom driver creator.
Parameters
- $config array
createPusherDriver ( array $config ) : Broadcaster
Create an instance of the driver.
Parameters
- $config array
createAblyDriver ( array $config ) : Broadcaster
Create an instance of the driver.
Parameters
- $config array
createRedisDriver ( array $config ) : Broadcaster
Create an instance of the driver.
Parameters
- $config array
createLogDriver ( array $config ) : Broadcaster
Create an instance of the driver.
Parameters
- $config array
createNullDriver ( array $config ) : Broadcaster
Create an instance of the driver.
Parameters
- $config array
getConfig ( $name ) : array
Get the connection configuration.
Parameters
- $name string
getDefaultDriver ( ) : string
Get the default driver name.
setDefaultDriver ( $name ) : void
Set the default driver name.
Parameters
- $name string
purge ( $name ) : void
Disconnect the given disk and remove from local cache.
Parameters
- $name string|null
extend ( $driver , Closure $callback ) : $this
Register a custom driver creator Closure.
Parameters
- $driver string
- $callback Closure
setApplication ( $app ) : $this
Set the application instance used by the manager.
Parameters
- $app Application
forgetDrivers ( ) : $this
Forget all of the resolved driver instances.
__call ( $method , $parameters ) : mixed
Dynamically call the default driver instance.
Parameters
- $method string
- $parameters array