Skip to content

myDevicesIoT/pubsub-transporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Cloud PubSub adapter for transporter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published