BroadcastManager
class BroadcastManager implements Factory mixin Broadcaster
Properties
protected Application | $app | The application instance. |
|
protected array | $drivers | The array of resolved broadcast drivers. |
|
protected array | $customCreators | The registered custom driver creators. |
Methods
Register the routes for handling broadcast authentication and sockets.
Begin broadcasting an event.
Queue the given event for broadcast.
Get a driver instance.
Get a driver instance.
Attempt to get the connection from the local cache.
Resolve the given store.
Call a custom driver creator.
Create an instance of the driver.
Create an instance of the driver.
Create an instance of the driver.
Create an instance of the driver.
Get the connection configuration.
Get the default driver name.
Set the default driver name.
Dynamically call the default driver instance.
Details
at line 49
void
__construct(Application $app)
Create a new manager instance.
at line 60
void
routes(array $attributes = null)
Register the routes for handling broadcast authentication and sockets.
at line 79
string|null
socket(Request|null $request = null)
Get the socket ID for the given request.
at line 98
PendingBroadcast|void
event(mixed|null $event = null)
Begin broadcasting an event.
at line 109
void
queue(mixed $event)
Queue the given event for broadcast.
at line 138
void
connection(string $driver = null)
Get a driver instance.
at line 149
mixed
driver(string $name = null)
Get a driver instance.
at line 162
protected Broadcaster
get(string $name)
Attempt to get the connection from the local cache.
at line 175
protected Broadcaster
resolve(string $name)
Resolve the given store.
at line 202
protected mixed
callCustomCreator(array $config)
Call a custom driver creator.
at line 213
protected Broadcaster
createPusherDriver(array $config)
Create an instance of the driver.
at line 227
protected Broadcaster
createRedisDriver(array $config)
Create an instance of the driver.
at line 240
protected Broadcaster
createLogDriver(array $config)
Create an instance of the driver.
at line 253
protected Broadcaster
createNullDriver(array $config)
Create an instance of the driver.
at line 264
protected array
getConfig(string $name)
Get the connection configuration.
at line 274
string
getDefaultDriver()
Get the default driver name.
at line 285
void
setDefaultDriver(string $name)
Set the default driver name.
at line 297
$this
extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
at line 311
mixed
__call(string $method, array $parameters)
Dynamically call the default driver instance.