hip5
v0.1.2
Published
hip5 plugin for hsd nodes
Downloads
1
Readme
HIP-5 Class
Base class for writing HIP-5 extensions like handover.
Example
const Hip5 = require('hip5')
const PROTOCOL = '_example'
class Plugin extends Hip5 {
static id = 'example-hip5-extension'
constructor (node) {
super(PROTOCOL, node)
}
direct (name, type) {
// direct resolution
}
middleware (data, name, type) {
// hip5 referral resolution
}
}
exports.id = Plugin.id
exports.init = node => new Plugin(node)