Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 650 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 650 Bytes

PHP WebSocket

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

Server example

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();

Libraries used