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