BroadcastManager::socket()

string|null socket(Request|null $request = null) Get the socket ID for the given request. Parameters Request|null $request Return Value string|null

BroadcastManager::setDefaultDriver()

void setDefaultDriver(string $name) Set the default driver name. Parameters string $name Return Value void

BroadcastManager::routes()

void routes(array $attributes = null) Register the routes for handling broadcast authentication and sockets. Parameters array $attributes Return Value void

BroadcastManager::queue()

void queue(mixed $event) Queue the given event for broadcast. Parameters mixed $event Return Value void

BroadcastManager::getDefaultDriver()

string getDefaultDriver() Get the default driver name. Return Value string

BroadcastManager::extend()

$this extend(string $driver, Closure $callback) Register a custom driver creator Closure. Parameters string $driver Closure $callback Return Value $this

BroadcastManager::event()

PendingBroadcast|void event(mixed|null $event = null) Begin broadcasting an event. Parameters mixed|null $event Return Value PendingBroadcast|void

BroadcastManager::driver()

mixed driver(string $name = null) Get a driver instance. Parameters string $name Return Value mixed

BroadcastManager::connection()

void connection(string $driver = null) Get a driver instance. Parameters string $driver Return Value void

BroadcastManager

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 eve