Server Sent Events is a technology that allows servers to push events via a normal (but long lived) http request.
This package provides a broadcast connection adapter for SSE, plus the relevant route/controller to serve the incoming SSE requests from the client.
This package utilizes the existing !event broadcasting feature from laravel.
This package allows you to use a SSE connection to broadcast your laravel events via a SSE http endpoint.
https://en.wikipedia.org/wiki/Server-sent_events
Help resolve psr4 based namespaces to directories and thus related language constructs (classes, interfaces & traits).
The best way to install this package is via composer.
$ composer require benrowe/laravel-broadcast-sse
Inside your config/broadcasting.php
configuration file, add the following connection, in the connections
array
'sse' => [
'driver' => 'sse',
]
@todo complete installation instructions
Once installed correctly, a endpoint is exposted from laravel /sse
. This is now
available
A package is available on npm that wraps the sse api and exposes some laravel broadcast behaviours (such as subscribing to channels, auth, etc). Please refer to this page for installation and usage instructions
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.