Skip to content

colinkelly/ZF2-PHP-WebSocket-Server

 
 

Repository files navigation

ZF2 PHP WebSocket Server v1.1 Alt text

Requirements


Changes


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 exceptions Notice 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

Installation and Running Server :


  1. That needs to be done is adding it to your application's list of active modules. Add module "WebSockets" in your application.config.php

  2. Change host address in module.config.php

  3. 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.

About

ZF2 PHP WebSocket Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published