Simple WebSocket demo in PHP.
A very simple chat application is included. To use the demo please follow the steps below:
- Download the sauce
- Point the WebSocket client to the correct address in the file
/public/js/main.js
on line 4 - Let the WebSocket server listen to the correct address and port in the file
/server/start.php
on line 77 - Setup your webserver to server
/public/index.php
- Start the WebSocket server at
/server/start.php
- Navigate to the demo in your browser, e.g.: http://localhost:1337/start.php
RFC 6455
5.4+
This is just the result of some quick duct-taping code together.