dux-dispatcher-connection
Dux Dispatcher Connection
Last updated 6 years ago by asbjornenge .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dux-dispatcher-connection 
SYNC missed versions from official npm registry.

dux-dispatcher-connection

This module takes a Dux dispatcher hostname & port and creates a dispatcher connection that will automatically reconnect on failures.

Install

npm install dux-dispatcher-connection

Use

var conn = require('dux-dispatcher-connection')({
    host     : 'dux-dispatcher.dux.test',
    port     : 8000,
    interval : 5000, // Retry interval     (default 5000)
    timeout  : 500,  // Connection timeout (default 500)
})
conn.on('up', fn)
conn.on('down', fn)
conn.listen()

Changelog

2.0.2

  • .subscribe now returns subscription object

2.0.1

  • Updated README with listen call !important

2.0.0

  • De-argumentified the options :stuck_out_tongue:

1.0.0

  • Initial release :tada:

enjoy

Current Tags

  • 2.0.2                                ...           latest (6 years ago)

4 Versions

  • 2.0.2                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |