Merge pull request #756 from Nirothipan/master

fixing broken pipe issue for rasperry pi real time graph .
This commit is contained in:
Madhawa Perera 2017-07-14 12:41:54 +05:30 committed by GitHub
commit b96fb5f748

View File

@ -73,9 +73,9 @@ $(window).load(function () {
connect(websocketUrl) connect(websocketUrl)
}); });
$(window).unload(function () { window.onbeforeunload = function() {
disconnect(); disconnect();
}); };
//websocket connection //websocket connection
function connect(target) { function connect(target) {