A websocket server.
A demo of how Laravel Reverb can provide a websocket server for your application.
There is not much to this demo on this page as Reverb is just a headless websocket server, to see how you can use websockets, please see the Laravel Echo demo.
A quick walkthrough of how this works.
My assumptions, at the very least, are that you have Laravel setup and working.
There are a few steps to get Reverb installed and running, the first is to install the package via composer.
php artisan install:broadcasting
At a minimum you should add these variables to your environment file, these can be any value, for me, I use any string for the ID, and a random UUID string for the key and secret.
REVERB_APP_ID=my-app-idREVERB_APP_KEY=my-app-keyREVERB_APP_SECRET=my-app-secret
Running Reverb is as simple as running one artisan command, you should run this under some kind of supervisor to ensure it is always running, see the Laravel Reverb documentation for deeper configuration.
php artisan reverb:start
You should now have a Reverb websocket server running on 0.0.0.0:8080
unless
you customized your local settings otherwise.
A few links to supporting resources.