Socket
Socket
Sign inDemoInstall

micro-panda-transporter-nats

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    micro-panda-transporter-nats

## API


Version published
Weekly downloads
1
Maintainers
1
Install size
148 kB
Created
Weekly downloads
 

Readme

Source

NATS Transporter

API

constructor

params:

  • errorHandler - func(err)
  • timeout - default to 1 minute. if a method call does not receive any response for such a time, it fails.
define

define a method.

params:

  • name
  • handler - async func(input) => output
async call

call a method. should be called after started.

params:

  • name
  • input

returns

  • output
on

listen to events.

params:

  • name
  • [group]
  • handler - async func(input)
emit

emit event. should be called after started.

params:

  • name
  • input
async start

start the transporter.

params:

  • options - the same as that of node-nats.connect
async stop

stop the transporter.

FAQs

Last updated on 25 Jul 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc