zRains opened a new pull request, #3783: URL: https://github.com/apache/ambari/pull/3783
## What changes were proposed in this pull request? Added debounce to `reconnect` and invoked `disconnect` to disconnect the previous connection instance when websocket performs reconnection. ## How was this patch tested? Tested manually by comparison. Before applying this fix, websocket reconnection would create multiple active connections (Time pending):  After a while (approximately 5 minutes), more connections would be created, causing page blockage or even crashes:  The fix will maintain one active websocket connection:  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org For additional commands, e-mail: dev-h...@ambari.apache.org