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

  1. Register service provider \AndrewSvirin\WebSocket\WebSocketServiceProvider
  2. Add custom service provider for events like this \AndrewSvirin\WebSocket\Tests\Data\Providers\EventServiceProvider
  3. Configure like tests/Data/config/websocket.php
  4. Add commands to console like here \AndrewSvirin\WebSocket\Tests\Data\Kernel

Testing

  1. 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
  2. Run tests vendor/bin/phpunit
  3. Stop test server from dir tests/Data by command /usr/bin/php artisan websocket:server-stop