eventsource icon indicating copy to clipboard operation
eventsource copied to clipboard

EventSource Hangs when client changes IP address

Open speedyuy opened this issue 7 years ago • 0 comments

Hi, I have a local node server (v8) connected to an external server using EventSource. I can receive the events correctly but when my WAN address changes (dynamic IP from the ISP provider) I can no longer receive events. I also don't get any error event about this. When I ask for readyState I always get OPEN. The only option was to poll the server periodically and if I don't get an event in a certain amount of time I close the connection and create a new one. This obviously defeats the purpose of an event.

Is there another option to fix this behavior? Thank you, Emilio

speedyuy avatar Jun 12 '18 16:06 speedyuy