sonrac / wamp-server
WAMP protocol implementation for laravel & lumen
0.1.7
2018-01-04 15:14 UTC
Requires
- illuminate/console: 5.*
- illuminate/support: 5.*
- voryx/thruway: 0.5.*
Requires (Dev)
- codeception/codeception: ^2.3
- mockery/mockery: ^1.0
- phpunit/php-code-coverage: ^5.2
- phpunit/phpunit: ^6.4
- dev-master
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.0
- dev-dependabot/npm_and_yarn/Example/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/Example/engine.io-6.2.1
- dev-dependabot/npm_and_yarn/Example/socket.io-parser-4.2.1
- dev-dependabot/npm_and_yarn/Example/connect-3.6.6
- dev-dependabot/npm_and_yarn/Example/braces-3.0.2
- dev-dependabot/npm_and_yarn/Example/qs-6.2.3
- dev-dependabot/npm_and_yarn/Example/lodash-4.17.21
- dev-dependabot/npm_and_yarn/Example/json-schema-and-jsprim-0.4.0
- dev-raw-socket-transport-support
- dev-gitlab-ci
- dev-analysis-q5EVAj
- dev-dev
This package is auto-updated.
Last update: 2024-11-09 21:32:33 UTC
README
Wamp server for lumen/laravel
In demelopment state yet
Install
composer require sonrac/wamp-server
or add to your composer.json in section autoload
"sonrac/wamp-server": "0.1.*"
Register service provider:
\sonrac\WAMP\WAMPServiceProvider
Add console commands to you Kernel.php
:
'\sonrac\WAMP\Commands\RunServer',
'\sonrac\WAMP\Commands\RegisterRoutes',
Add subscriber:
app()->wampRouter->addSubscriber('com2.hello', function ($clientSession, $client) { return 123; });
Add procedure:
app()->wampRouter->addRoute('com1.hello', function ($clientSession, $client) { return 123; })
Start server:
Usage help for get options help
php artisan wamp:run-server
This command let start server with registering predefined routes with client
Register routes:
Usage help for get options help
php artisan register-routes
Register service provider:
\sonrac\WAMP\WAMPServiceProvider
Add console commands to you Kernel.php
:
'\sonrac\WAMP\Commands\RunServer',
'\sonrac\WAMP\Commands\RegisterRoutes',
Add subscriber:
app()->wampRouter->addSubscriber('com2.hello', function ($clientSession, $client) { return 123; });
Add procedure:
app()->wampRouter->addRoute('com1.hello', function ($clientSession, $client) { return 123; })
Start server:
Usage help for get options help
php artisan wamp:run-server
This command let start server with registering predefined routes with client
Register routes:
Usage help for get options help
php artisan register-routes
Run tests
Test running for laravel & lumen both from script run-tests.sh
Run command:
sh run-tests.sh