Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 714 Bytes

README.md

File metadata and controls

8 lines (5 loc) · 714 Bytes

zeromq-socketio-backbone

This is a test project using ZeroMQ (via node-zmq), Socket.IO, and Backbone.

Start by launching the server.js process. This starts up an Express web server listening on 8080 as well as a ZeroMQ pull socket listening on 3000. Connect with your web browser to port 8080.

You can then run blast.js to send a string over the ZMQ socket with the current date every 1/2 second. Or run send.js to send strings from stdin directly to the browser.

In the HTML, I use Backbone to dynamically update the page whenever a Message comes down over socket.io.