@mydevices/pubsub-transporter

1.0.2 • Public • Published

PubSub Transporter

Google Cloud PubSub for transporter

Usage

const Transporter = require('@mydevices/transporter');
const CloudPubSub = require('@mydevices/pubsub-transporter').CloudPubSub;

Transporter.add(CloudPubSub, {
    topic: 'projects/myproject/topics',
    projectId: 'myproject-id',
    credentialsFile: '/path/to/credentials.json'
});

Transporter.publish( { hello: "world" } );

Readme

Keywords

none

Package Sidebar

Install

npm i @mydevices/pubsub-transporter

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

2.83 kB

Total Files

5

Last publish

Collaborators

  • asanchezdelc