fabot_subscribe
fabot realtime feed subscribe
Last updated 9 months ago by simboyz .
MIT · Original npm · Tarball · package.json
$ cnpm install fabot_subscribe 
SYNC missed versions from official npm registry.

usage

realtime data feed module for special use.

const fabot_subscribe = require('fabot_subscribe');

fabot_subscribe({
    target_url: 'endPointURL',
    codes: ['000020', '005930'], //stockcode array
    connectEvent: function (data) {
        console.log(data); //connection event function
    },
    messageEvent: function (data) {
        console.log(data); //message event function
    }
});

Current Tags

  • 1.0.1                                ...           latest (9 months ago)

2 Versions

  • 1.0.1                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |