- PHP 5.4+
- Zend Framework 2
v1.1
- Fixes some problem with startup
- Add console command interface for costom system commands (for example)
php -q index.php websocket system -v "whoami"
(Note for ZF2.2): if you have an exceptionsNotice Undefined offset: 0
while starting console server please follow this:
vendor\ZF2\library\Zend\Mvc\View\Console\RouteNotFoundStrategy.php
381 and replace line by
<?php
$result .= isset($row[0]) ? $row[0] . "\n" : '';
?>
It might be fixed until not fix in the next update. You're always can ask me for this module if you have write me issue
-
That needs to be done is adding it to your application's list of active modules. Add module "WebSockets" in your application.config.php
-
Change host address in module.config.php
-
Go to your shell command-line interface and type:
php -q index.php websocket open
In order to start using the module clone the repo in your vendor directory or add it as a submodule if you're already using git for your project:
`
git clone https://github.com/stanislav-web/ZF2-PHP-WebSocket-Server.git vendor/WebSockets
or
git submodule add git clone https://github.com/stanislav-web/ZF2-PHP-WebSocket-Server.git vendor/WebSockets
`
The module will also be available as a Composer package soon.