beehive
Beehive is an event-driven socket server powered by libevent and implemented in PHP (requires libevent and PHP 5.4)., (*1)
how to run
telnet echo server
In one terminal, type:, (*2)
php examples/telnet.php, (*3)
Beehive will now be listening on 127.0.0.1:9000, (*4)
Open a new terminal, and type:, (*5)
telnet localhost 9000, (*6)
The server will echo any messages sent to it, (*7)
webchat web socket server
Copy examples/webchat/client.js and examples/webchat/index.html to the document root of a test server., (*8)
In one terminal, type:, (*9)
php examples/webchat/server.php, (*10)
Beehive will now be listening on 127.0.0.1:9000, (*11)
Open a browser window and navigate to your testing vhost, ie http://localhost/, (*12)
You should see a simple box with a text input beneath it. Open up multiple tabs to the "chat" and see as messages are shared realtime across clients., (*13)