1.3.0 • Published 5 years ago

stomp-broker-js v1.3.0

Weekly downloads
1,067
License
MIT
Repository
github
Last release
5 years ago

StompBrokerJS

NodeJS StompBroker

This is simple NodeJs STOMP 1.1 broker for embedded usage.

build state Support

Features

  • Destination wildcards
    • . is used to separate names in a path
    • * is used to mach any name in a path
    • ** is used to recursively match path names

TODO

  • Authorization
  • Acknowledgment
  • Async send messages
  • Transactions
  • Composite Destinations
  • Message selectors

Changelog

  • 0.1.0 First working version.
  • 0.1.1 Added wildcards to destination, change subscribe method no backward compatibility
  • 0.1.2 Bug fixes, changed websocket library, updated documentation.
  • 0.1.3 Unsubscribe on server, updated documentation, added events.

Example

var http = require("http");
var StompServer = require('stompServer');

var server = http.createServer();
var stompServer = new StompServer({server: server});

server.listen(61614);

stompServer.subscribe("/**", function(msg, headers) {
  var topic = headers.destination;
  console.log(topic, "->", msg);
});

stompServer.send('/test', {}, 'testMsg');

Documentation

https://4ib3r.github.io/StompBrokerJS/

1.3.0

5 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago