Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fiip-protocol-stdp

rise0chen1MIT2.1.0

fiip-protocol-stdp

fiip, protocol, stdp

readme

fiip-protocol-stdp

stdp --a fiip sub protocol.

Installation

npm install fiip-protocol-stdp --save

Usage

const fiip = require('./fiip/fiip');
const stdp = require('./fiip-protocol-stdp/stdp');
const txd = new stdp.Format();
stdp.start();
stdp.addListener(0xffff, (msg, link) => {
  console.log(msg);
});
const txd = new stdp.Format();
txd.setVar('body', Buffer.from('hello'), 6);
fiip.send(txd, my.id, null);

License

MIT

Reference

git