0.0.2 • Published 9 months ago

@mqueue/stompjs v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

STOMP.js for MQueue

An STOMP.js adapter for MQueue, adding support for STOMP queues with a multi-backend setup with MQueue.

npm install --save @mqueue/queue @mqueue/stompjs
# or use pnpm/yarn
const outgoingQueue = new MQueue.Outgoing(
  await StompQueue.Outgoing.connect("amqp://rabbitmq:5271", "queue-name"),
);

outgoingQueue.sendMessage({
  headers: {
    "Account-ID": "123",
  },
  body: "...",
});

// ...

const incomingQueue = new MQueue.Incoming(
  await StompQueue.Incoming.connect("amqp://rabbitmq:5271", "queue-name"),
);

Compatibility

0.0.2

9 months ago

0.0.1

9 months ago