diff --git a/fhem/www/pgm2/console.js b/fhem/www/pgm2/console.js index baf206754..77d569f27 100644 --- a/fhem/www/pgm2/console.js +++ b/fhem/www/pgm2/console.js @@ -95,7 +95,6 @@ consFill() consConn.onclose = consConn.onerror = consConn.onmessage = consUpdate; - consConn.onopen = function(){FW_wsPing(consConn);}; } else { if(consConn) { diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index db4e7fd67..df4680178 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -1208,7 +1208,6 @@ FW_longpoll() FW_pollConn.onclose = FW_pollConn.onerror = FW_pollConn.onmessage = FW_doUpdate; - FW_pollConn.onopen = function(){FW_wsPing(FW_pollConn);}; } else { FW_pollConn = new XMLHttpRequest(); @@ -1223,17 +1222,6 @@ FW_longpoll() log("Inform-channel opened ("+(FW_longpollType==1 ? "HTTP":FW_longpollType)+ ") with filter "+filter); } - - -function -FW_wsPing(conn) // idle websockets are closed by the browser after 55sec -{ - if(!conn || conn.readyState != conn.OPEN) - return; - conn.send("\n"); -// setTimeout(function(){FW_wsPing(conn);}, 30000); -} - /*************** LONGPOLL END **************/