Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

fix: dropped packed #55

Merged
merged 1 commit into from
Jan 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
},
"homepage": "https://github.com/libp2p/js-libp2p-multiplex#readme",
"devDependencies": {
"aegir": "^9.3.2",
"aegir": "^9.3.3",
"chai": "^3.5.0",
"interface-stream-muxer": "^0.5.4",
"interface-stream-muxer": "^0.5.5",
"libp2p-websockets": "^0.9.1",
"pre-commit": "^1.2.2",
"pull-pair": "^1.1.0"
Expand Down
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const pump = require('pump')

function create (rawConn, isListener) {
const stream = toStream(rawConn)
// Let it flow, let it flooow
stream.resume()

stream.on('end', () => {
// Cleanup and destroy the connection when it ends
Expand All @@ -21,8 +19,7 @@ function create (rawConn, isListener) {
})

const mpx = multiplex()
pump(mpx, stream)
pump(stream, mpx)
pump(stream, mpx, stream)

return new Muxer(rawConn, mpx, isListener)
}
Expand Down