mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-28 20:12:14 +00:00
8 lines
162 B
JavaScript
8 lines
162 B
JavaScript
var swarm = require('./../src').singleton
|
|
|
|
swarm.listen()
|
|
|
|
swarm.registerHandle('/ipfs/sparkles/1.2.3', function (stream) {
|
|
console.log('woop got a stream')
|
|
})
|