2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-27 20:34:52 +00:00

fhemweb.ps: remove FW_wsPing (Forum #102483)

git-svn-id: https://svn.fhem.de/fhem/trunk@19890 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-07-23 14:57:21 +00:00
parent ce378b687e
commit a8199b5bb8
2 changed files with 0 additions and 13 deletions

View File

@ -95,7 +95,6 @@ consFill()
consConn.onclose = consConn.onclose =
consConn.onerror = consConn.onerror =
consConn.onmessage = consUpdate; consConn.onmessage = consUpdate;
consConn.onopen = function(){FW_wsPing(consConn);};
} else { } else {
if(consConn) { if(consConn) {

View File

@ -1208,7 +1208,6 @@ FW_longpoll()
FW_pollConn.onclose = FW_pollConn.onclose =
FW_pollConn.onerror = FW_pollConn.onerror =
FW_pollConn.onmessage = FW_doUpdate; FW_pollConn.onmessage = FW_doUpdate;
FW_pollConn.onopen = function(){FW_wsPing(FW_pollConn);};
} else { } else {
FW_pollConn = new XMLHttpRequest(); FW_pollConn = new XMLHttpRequest();
@ -1223,17 +1222,6 @@ FW_longpoll()
log("Inform-channel opened ("+(FW_longpollType==1 ? "HTTP":FW_longpollType)+ log("Inform-channel opened ("+(FW_longpollType==1 ? "HTTP":FW_longpollType)+
") with filter "+filter); ") 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 **************/ /*************** LONGPOLL END **************/