A simple PHP WebSocket server and client. ATTENTION: Totally beta and just for testing/development!
- Supports draft hybi-10
- Application module, the server can be extended by custom behaviors
This creates a server on localhost:8000 with one Application that listens on ws://localhost:8000/echo
:
$server = new \WebSocket\Server('localhost', 8000);
$server->registerApplication('echo', \WebSocket\Application\EchoApplication::getInstance());
$server->run();
- SplClassLoader by the PHP Standards Working Group
- jQuery