mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-27 14:24: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:
parent
ce378b687e
commit
a8199b5bb8
fhem/www/pgm2
@ -95,7 +95,6 @@ consFill()
|
||||
consConn.onclose =
|
||||
consConn.onerror =
|
||||
consConn.onmessage = consUpdate;
|
||||
consConn.onopen = function(){FW_wsPing(consConn);};
|
||||
|
||||
} else {
|
||||
if(consConn) {
|
||||
|
@ -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 **************/
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user