Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 568 Bytes

File metadata and controls

11 lines (8 loc) · 568 Bytes

Websocket Testing With Ratchet

Testing out HTML5's Websocket feature using Ratchet that runs via PHP CLI

Learn about how to use these files here: https://phpdave.wordpress.com/2015/07/01/testing-out-html5-websockets-using-php-cli-and-two-browsers/

Learn about Ratchet here: http://socketo.me/

Get this going in 1 minute?

  1. In a command line change to the root directory
  2. Run php bin/chat-server.php to start the PHP Ratchet websocket server
  3. Open test.html or testJSONJavascriptAlert.html in two browsers to play with sending data across a websocket