angular2-websocket icon indicating copy to clipboard operation
angular2-websocket copied to clipboard

Socket is disconnecting if I don't send/receive data through it for a certain time

Open LokiKartik opened this issue 7 years ago • 2 comments

Hi, I am using angular2-websocket for my angular 5 app. If there is no interaction between server and client for around 2 minutes, I am getting error "The connection to ws://localhost:9001/socket was interrupted while the page was loading" and socket gets disconnected. I tested in Firefox 58.0.2. Is it the problem with socket configuration or with browser?

LokiKartik avatar Mar 14 '18 07:03 LokiKartik

I think there's an issue with Firefox. You can try to reconnect to server with the timeout.

sau-lanvy avatar Apr 06 '18 03:04 sau-lanvy