Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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 Gasis authored
Failed to load latest commit information.
README.md add ack call to example of ack usage
stomp.js Added ability to callback when a message has been sent

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.