A simple STOMP client.
Basic
var sys = require("sys"),
stomp = require("./stomp");
var client = new stomp.Client("localhost", 61613);
client.subscribe("/queue/news", function(data){
sys.puts(data.body);
});
ACK
var sys = require("sys"),
stomp = require("./stomp");
var client = new stomp.Client("localhost", 61613);
client.subscribe("/queue/news", {ack: "client"}, function(data){
sys.puts(data.body);
client.ack(data);
});
var stomp = require("./stomp");
var client = new stomp.Client("localhost", 61613);
client.publish("/queue/news", "Stomp for NodeJS!");
- make durable
- add SSL support
MIT License