Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

ble-swarm

1.0.3 • Public • Published

ble-swarm

Experimental swarm over bluetooth low energy

npm install ble-swarm

Usage

var swarm = require('ble-swarm')
var sw = swarm({
  uuid: '13333333333333333333333333333337' // must be a 16 bytes hex string
})
 
sw.on('peer', function (peer) {
  console.log('discovered new peer over bluetooth')
  process.stdin.pipe(peer).pipe(process.stdout)
})

License

MIT

Keywords

none

install

npm i ble-swarm

Downloadsweekly downloads

2

version

1.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability