resolved broken pipe issue

This commit is contained in:
lasantha 2017-08-07 00:16:47 +05:30
parent f166be7d54
commit 10e4e9a288

View File

@ -25,9 +25,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) {