google-pubsub-wrapper

2.3.2 • Public • Published

google-pubsub-wraper

Easy to use wrapper for Google pubsub

Example usage

var Pubsub = require('../../pubsub.js');

var pubsubServer = Pubsub.init(process.env.GCLOUD_PROJECT);
var pubsubClient = Pubsub.init(process.env.GCLOUD_PROJECT);

pubsubClient.subscribe(
{
    env: 'testing',
    topicName: 'test',
    groupName: 'test',
    callback: function (data)
    {
        console.log('got data');
    }
});

pubsubServer.emit(
{
    test: 'test'
},
{
    env: 'testing',
    topicName: 'test'
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.3.233latest

Version History

VersionDownloads (Last 7 Days)Published
2.3.233
2.3.10
2.3.00
2.2.00
2.1.00
2.0.60
2.0.51
2.0.30
2.0.20
2.0.10
2.0.00
1.2.10
1.2.00
1.1.00
1.0.80
1.0.70
1.0.61
1.0.40
1.0.30
1.0.20
1.0.00

Package Sidebar

Install

npm i google-pubsub-wrapper

Weekly Downloads

35

Version

2.3.2

License

none

Unpacked Size

30.1 kB

Total Files

12

Last publish

Collaborators

  • glesage
  • nickchapleau