Neighborly Package Megalodon

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

    Keywords

    none

    Install

    npm i @mydevices/pubsub-transporter

    DownloadsWeekly Downloads

    2

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    2.83 kB

    Total Files

    5

    Last publish

    Collaborators

    • asanchezdelc
    • hugocortes