@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" } );

Dependents (0)

Package Sidebar

Install

npm i @mydevices/pubsub-transporter

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

2.83 kB

Total Files

5

Last publish

Collaborators

  • asanchezdelc