Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple PHP WebSocket implementation for PHP 5.3
PHP JavaScript
branch: master

This branch is 1 commit ahead, 46 commits behind nekudo:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

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

Libraries used

Something went wrong with that request. Please try again.