Example project of using websockets with PHP + Ratchet + ZeroMQ
- Basic example: http://socketo.me/docs/hello-world
- Pusher example: http://socketo.me/docs/push
Open diferent terminals and run one command in each one:
php chat-server.php
telnet localhost 8080
telnet localhost 8080
Send data from each terminal and see the magic!
Open two browser tabs and:
- Open
index.html
. - Open console debugger.
- On the second tab click
submit
. - See the first tab's console.