A light message-oriented middleware in Javascript
MIT License
A light message-oriented middleware in Javascript based on Apache's ActiveMQ. LiteMQ is great for single-page apps since it promotes loosely coupling between modules.
Warning: this script is still in beta!
Put this somewhere in your code:
client1 = new LiteMQ.Client();
client1.sub('some-event', function (msg) {
console.log('Name: '+msg.body.name);
console.log('Age: '+msg.body.age);
});
And put this somewhere else in the same code:
client2 = new LiteMQ.Client();
client2.pub('some-event', {name: 'John', age: 23});
It will output this on your console:
Name: John
Age: 23
LiteMQ has only one dependency: the O framework. This is intentional since LiteMQ is designed to be extensible. If you disagree with the implementation you can extend the Client class and implement your own logic.
Copyright (c) 2013 Leonardo Quixada (@lquixada). This software is licensed under the MIT License.