Skip to content

Commit

Permalink
Add private onspawn() callback
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Jun 17, 2024
1 parent eeb1bea commit 76cd211
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,13 @@ const Pipe = module.exports = exports = class Pipe extends Duplex {
this._continueDestroy()
}

_onspawn (readable, writable) {
this._state |= constants.state.CONNECTED

if (readable) this._state |= constants.state.READABLE
if (writable) this._state |= constants.state.WRITABLE
}

static _pipes = new Set()
}

Expand Down

0 comments on commit 76cd211

Please sign in to comment.