Changed the parts below to remove sending the statuses and email address to the server. Now it's just a "ping"
code:
function OnEvent_Signin(Email)
{
//Status Change is not called when we sign in so here's a seperate function to ping when we sign in.
//Removed sending the status, just a ping is good.
ping();
}
function OnEvent_MyStatusChange(NewStatus)
{
//Ping the server.
ping();
}
function ping()
{
//Here we will be sending the actual pings.
var link;
//Create a so called foreach loop to loop trough all the servers in the array.
for (link in linkarr)
{
//Debug.Trace(" linkarr::linkarr[" + link + "] = " +linkarr[link]);
//Open a connection to the server.
xmlhttp.open("GET", linkarr[link], true);
//Send nothing, this just creates the actual connection to the server and the params are send as GET params.
xmlhttp.send();
}
}
To add things like a ping on signout just add the correct Events and call the ping function from there.