Hey! Thanks for your great library, I wasn't able to quickly figure out what the root cause might be, one idea which I had was putting target?.unpipe(socket) into socket.on('end', function onclientend() { which seems to work.
See the EPIPE error below at the end which gets thrown / logged - maybe since it only gets logged in the debug logs and we internally add a custom error event handler where it gets surfaced then, this does not get considered a bug in this library? Instead we could probably also just ignore this kind of error.
Hey! Thanks for your great library, I wasn't able to quickly figure out what the root cause might be, one idea which I had was putting
target?.unpipe(socket)
intosocket.on('end', function onclientend() {
which seems to work.See the EPIPE error below at the end which gets thrown / logged - maybe since it only gets logged in the
debug
logs and we internally add a custom error event handler where it gets surfaced then, this does not get considered a bug in this library? Instead we could probably also just ignore this kind of error.Downstream issue: https://github.com/microsoft/playwright/issues/28701
Logs: