mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-21 04:51:33 +00:00
connection reuse test
This commit is contained in:
@ -14,11 +14,11 @@ i.on('thenews', function (news) {
|
||||
})
|
||||
|
||||
b.on('error', function (err) {
|
||||
if (err) return
|
||||
console.log(err)
|
||||
})
|
||||
|
||||
b.listen()
|
||||
|
||||
b.registerHandle('/ipfs/sparkles/1.2.3', function (stream) {
|
||||
b.registerHandle('/ipfs/sparkles/1.2.3', function (err, stream) {
|
||||
console.log('woop got a stream')
|
||||
})
|
Reference in New Issue
Block a user