max-mapper / websocket-stream

websockets with the node stream API
BSD 2-Clause "Simplified" License
667 stars 114 forks source link

Sometimes takes very long time to connect #122

Closed binarykitchen closed 7 years ago

binarykitchen commented 7 years ago

With your latest code and nginx 1.10 inbetween, it can happen that the onopen event handling is triggered after one min (!)

Any reasons what this could be? Hints welcome so that I can investigate deeper ...

mcollina commented 7 years ago

no idea. Maybe you should ask to some nginx folks as well.

binarykitchen commented 7 years ago

i think the problem is deeper. when i use wscat in command line to see how responsive a websocket is, then it always responds. must be something else.

not sure if this is related but didn't happen before i switched to objectMode: true

binarykitchen commented 7 years ago

not happening anymore, changing objectMode did the trick