New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@smartcloud/pubsub-publisher

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smartcloud/pubsub-publisher

Pubsub Publisher Module of SmartCloud Utility Library for Node.js

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
5
Created
Source

@smartcloud/pubsub-publisher

Pubsub publisher Module of SmartCloud Utility Library for Node.js

npm installation

$ npm install --save @smartcloud/pubsub-publisher

Initialization

The module has core class named "PubsubPublisher". To initialize an PubsubPublisher object, pass the follow parameters.

* maxRetries - (optional) specify maximum number of times that process can retry in case of failure.  If not specified, default will be 10.

Sample usage

const SmartCloudPubsubPublisher = require('@smartcloud/pubsub-publisher');

var publisher = new SmartCloudPubsubPublisher.PubsubPublisher();

Methods

  • pubsub() method - Return pubsub instance associated with current PubsubPublisher instance.

  • publish(topic, message) method - Publish message to specified topic.

FAQs

Package last updated on 16 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts