connection reuse test

This commit is contained in:
David Dias
2015-07-10 12:28:40 -07:00
parent a80a5fc32b
commit a5b2524873
5 changed files with 54 additions and 49 deletions

View File

@ -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')
})