disco-star
> Leofcoin peer discovery server
Last updated 2 months ago by vandeurenglenn .
MIT · Original npm · Tarball · package.json
$ cnpm install disco-star 
SYNC missed versions from official npm registry.

DiscoStar

Leofcoin peer discovery server

usage

import DiscoStar from 'disco-star';

const star = await new DiscoStar({protocol, port}, credentials);

star.parseAddress('0.0.0.0/5000/disco-room/id') // {address, port, protocol, peerId}

star.getPeerAddress('peerId', { 
  address: '0.0.0.0', port: 5000, protocol: 'disco-room'
}) // '0.0.0.0/5000/disco-room/peerId'

star.isDomain('0.0.0.0') // false
star.isDomain('example.com') // true

star.addressBook // ['address/port/protocol/peerId', ...]
star.peerId // 
star.port //
star.address //
star.interval //

config

{
  discovery: {
    peers: ['star.leofcoin.org/5000/disco-room/3tr3E5MNvjNR6fFrdzYnThaG3fs6bPYwTaxPoQAxbji2bqXR1sGyxpcp73ivpaZifiCHTJag8hw5Ht99tkV3ixJDsBCDsNMiDVp']
    star: {
      port: 5000,
      protocol: 'disco-room',
      interval: 10000
    }
  },
  identity: {
    peerId: 'lfc-api peerId'
  }
}

Current Tags

  • 2.0.5                                ...           latest (2 months ago)

26 Versions

  • 2.0.5                                ...           2 months ago
  • 2.0.4                                ...           3 months ago
  • 2.0.2                                ...           4 months ago
  • 2.0.0                                ...           4 months ago
  • 2.0.0-alpha.1                                ...           4 months ago
  • 1.0.20                                ...           4 months ago
  • 1.0.19                                ...           4 months ago
  • 1.0.18                                ...           4 months ago
  • 1.0.17                                ...           4 months ago
  • 1.0.16                                ...           4 months ago
  • 1.0.15                                ...           4 months ago
  • 1.0.14                                ...           4 months ago
  • 1.0.13                                ...           4 months ago
  • 1.0.12                                ...           4 months ago
  • 1.0.11                                ...           4 months ago
  • 1.0.10                                ...           4 months ago
  • 1.0.9                                ...           4 months ago
  • 1.0.8                                ...           4 months ago
  • 1.0.7                                ...           5 months ago
  • 1.0.6                                ...           5 months ago
  • 1.0.5                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 104
Dependencies (7)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |