Skip to content

A simple PHP WebSocket implementation for PHP 5.3

Notifications You must be signed in to change notification settings

senica/php-websocket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A simple PHP WebSocket implementation for PHP 5.3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published