pubsub-pull-push
Pull messages from a PubSub topic, proxy to an endpoint
Last updated 3 years ago by jameswestnz .
MIT · Original npm · Tarball · package.json
$ cnpm install pubsub-pull-push 
SYNC missed versions from official npm registry.

Google PubSub pull-push

A simple tool (CLI too!) to pull a batch of messages from a Google PubSub topic, then proxy to an external endpoint. This is useful when testing PubSub topics in development environments, or could even be used to proxy messages behind a firewall.

Installation

npm i -g pubsub-pull-proxy

Usage

CLI

pubsub-pull-proxy topic-name https://your-domain.example/some/endpoint --maxMessages 10

Node

const PullPush = require('pubsub-pull-push')()

PullPush.pull('topic-name', 'https://your-domain.example/some/endpoint', {
    maxMessages: 10
})

Current Tags

  • 0.8.0                                ...           latest (3 years ago)

1 Versions

  • 0.8.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |