BroadcastManager (Broadcasting)
BroadcastManager
class BroadcastManager implements Factory (View source)
Methods
void | __construct(Application $app) Create a new manager instance. | |
void | routes(array $attributes = null) Register the routes for handling broadcast authentication and sockets. | |
string|null | socket(Request|null $request = null) Get the socket ID for the given request. | |
PendingBroadcast|void | event(mixed|null $event = null) Begin broadcasting an event. | |
void | queue(mixed $event) Queue the given event for broadcast. | |
void | connection(string $driver = null) Get a driver instance. | |
mixed | driver(string $name = null) Get a driver instance. | |
string | getDefaultDriver() Get the default driver name. | |
void | setDefaultDriver(string $name) Set the default driver name. | |
$this | extend(string $driver, Closure $callback) Register a custom driver creator Closure. | |
mixed | __call(string $method, array $parameters) Dynamically call the default driver instance. |
Details
void __construct(Application $app)
Create a new manager instance.
void routes(array $attributes = null)
Register the routes for handling broadcast authentication and sockets.
string|null socket(Request|null $request = null)
Get the socket ID for the given request.
PendingBroadcast|void event(mixed|null $event = null)
Begin broadcasting an event.
void queue(mixed $event)
Queue the given event for broadcast.
void connection(string $driver = null)
Get a driver instance.
mixed driver(string $name = null)
Get a driver instance.
string getDefaultDriver()
Get the default driver name.
void setDefaultDriver(string $name)
Set the default driver name.
$this extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
mixed __call(string $method, array $parameters)
Dynamically call the default driver instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Broadcasting/BroadcastManager.html