0.0.2 • Published 9 years ago

servicebus-notifications-reader v0.0.2

Weekly downloads
11
License
-
Repository
github
Last release
9 years ago

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"