Skip to content

Instantly share code, notes, and snippets.

@adunkman adunkman/index.html
Created Jan 14, 2012

What would you like to do?
Relay messages from RabbitMQ to a browser using - client
<!DOCTYPE html>
<script src="/"></script>
(function () {
var onMessage = function (data) {
// Do something with the message data
var connectToServer = function () {
var socket = io.connect('http://localhost:8080');
socket.on('message-name', onMessage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.