Open DmitryMyadzelets opened 6 years ago
Have found that the stream intentionally throws away any data unless the socket is connected. What is a rationale behind such decision?
This module is very old, and there might not be a good rationale behind some of the code. If you want to help maintaining this you are welcome to propose a change.
With modern Node.js
making a stream over a WebSocket (ws
module) seems quite simple for a trivial use case.
May a complete refactoring be considered?
As long as the API stays similar and the tests passes, I see no problem.
In this use case we send a file. All data are lost if the file is small, or received partially if the file is big.
How to reproduce:
Node.js v8.6.0