servicebus-notifications-reader

0.0.2 • Public • Published

servicebus-notifications-reader

Notifications Reader for Azure Service Bus

Usage:

Promise = require("bluebird")
NotificationsReader = require("servicebus-notifications-reader")
 
reader = new NotificationsReader
  connectionString: "the azure connection string"
  topic: "the topic name"
  subscription: "the subscription name"
  # optional:
  options: log: true
  filters: [
    { name: "customFilter", expression: "created = True" }
  ]
 
reader.run (message) =>
  # do something with message
  
  Promise.resolve "message processed ok"
  # or...
  Promise.reject "error processing the message"

Readme

Keywords

none

Package Sidebar

Install

npm i servicebus-notifications-reader

Weekly Downloads

5

Version

0.0.2

License

none

Last publish

Collaborators

  • rodri042