Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a basic STOMP client for NodeJS
JavaScript
Branch: master

Merge pull request #4 from cdwiegand/master

add ack call to example of ack usage
latest commit b9d3c7c1e9
@kates authored

README.md

node-stomp

Overview

A simple STOMP client.

Usage

Subscribing

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);
});

Publishing

var stomp = require("./stomp");

var client = new stomp.Client("localhost", 61613);
client.publish("/queue/news", "Stomp for NodeJS!");

TODO

  • make durable
  • add SSL support

License

MIT License

Something went wrong with that request. Please try again.