Closed gmaclennan closed 1 year ago
This is working as designed actually. You are telling the stream to end, it will wait for the handshake and then send an end. You are not piping the rawStream, so nothing happens. If you wanna forcefully teardown the stream do .destroy() instead
Calling
s.end()
before the noise stream has been piped to another stream swallows thefinish
andclose
events (see failing test).I would expect calling
stream.end()
to cause thefinish
andclose
events to be emitted like they do on other streams.