I'm making a basic multiplayer game, and I can't use node.js and socket.io because it's going to be running on a remote server I don't have much control over.
Currently, client-side, I have an ajax request that pings a server-side PHP file every 3 seconds with a unique ID, and if a unique ID isn't pinged within 6 seconds, the player is considered disconnected.
Are there any other techniques that may be more efficient to keep track of connected clients using only JavaScript and PHP?