mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-28 00:11:34 +00:00
Initial Commit
This commit is contained in:
7
examples/network-s.js
Normal file
7
examples/network-s.js
Normal file
@ -0,0 +1,7 @@
|
||||
var swarm = require('./network/swarm')
|
||||
|
||||
swarm.listen()
|
||||
|
||||
swarm.registerHandle('/ipfs/sparkles/1.2.3', function (stream) {
|
||||
console.log('woop got a stream')
|
||||
})
|
Reference in New Issue
Block a user