andrew-svirin / lumen-websocket
This package is abandoned and no longer maintained.
No replacement package was suggested.
Websocket multi-channels in Lumen Laravel.
This package has no released version yet, and little information is available.
README
Allows interaction server with multiple clients via websocket.
Installation
- Register service provider
\AndrewSvirin\WebSocket\WebSocketServiceProvider
- Add custom service provider for events like this
\AndrewSvirin\WebSocket\Tests\Data\Providers\EventServiceProvider
- Configure like
tests/Data/config/websocket.php
- Add commands to console like here
\AndrewSvirin\WebSocket\Tests\Data\Kernel
Testing
- Start test server from dir
tests/Data
by command/usr/bin/php artisan websocket:server-start --timeout=5 --uri=tcp://0.0.0.0:8001
- Run tests
vendor/bin/phpunit
- Stop test server from dir
tests/Data
by command/usr/bin/php artisan websocket:server-stop