1.0.2 • Published 6 years ago

@mydevices/pubsub-transporter v1.0.2

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

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