Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 407 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 407 Bytes

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