/amqp-express-socketio

A simple example of relaying messages from RabbitMQ to a web client using socket.io and expressjs.

Primary LanguageJavaScript

Relaying messages from RabbitMQ to web clients

This simple example is an expressjs (3.x) application that uses socket.io to broadcast messages to clients when those messages are received on a queue in RabbitMQ.

Setup

  1. Install RabbitMQ and boot the server
  2. npm install
  3. node index.js
  4. visit http://localhost:3000
  5. Broadcast a message from RabbitMQ (if you don't know what you're doing, broadcast a message to the amq.topic exchange).

Feel free to reach out to me through an issue if you experience problems.