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