angular2-websocket
angular2-websocket copied to clipboard
Socket is disconnecting if I don't send/receive data through it for a certain time
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?
I think there's an issue with Firefox. You can try to reconnect to server with the timeout.
Take a look at: https://bugzilla.mozilla.org/show_bug.cgi?id=712329