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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -