javascript - Need a script to keep web page from dropping connection -
im looking script ping in background while connected web app. keep alive? i've looked greasemonkey uses javascript , have considered python script. im babe, know little python , hardly nothing javascript. can educate me? need script keep security checkin app timing out , dropping connection host. script temporary fix because real issue network related.
it kinda depends on app you're trying stay connected to, if go javascript, can set timeinterval , have make ajax call 1 of web app's exposed api urls. url , parameters of ajax call depend on web app you're trying stay connected to.
setinterval(function () { $.ajax({ type: 'post', url: "[web_app_uri]/check_in_method", data: json.stringify(parameters_for_method) }); }, 1000 * 60);
Comments
Post a Comment