Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 581 Bytes

File metadata and controls

24 lines (16 loc) · 581 Bytes

PHP + Ratchet + ZeroMQ = Websockets

Example project of using websockets with PHP + Ratchet + ZeroMQ

Basic terminal usage:

Open diferent terminals and run one command in each one:

  1. php chat-server.php
  2. telnet localhost 8080
  3. telnet localhost 8080

Send data from each terminal and see the magic!

Basic web usage

Open two browser tabs and:

  1. Open index.html.
  2. Open console debugger.
  3. On the second tab click submit.
  4. See the first tab's console.