src/ServerEngine.js
// resets the idle timeout for a given player
resets the idle timeout for a given player
resets the idle timeout for a given player
resetIdleTimeout(socket) {
        if (socket.idleTimeout) clearTimeout(socket.idleTimeout);
        if (this.options.timeoutInterval > 0) {
            socket.idleTimeout = setTimeout(() => {
                this.onPlayerTimeout(socket);
            }, this.options.timeoutInterval * 1000);
        }
    }
resetIdleTimeout ( socket ) { if ( socket . idleTimeout ) clearTimeout ( socket . idleTimeout ) ; if ( this . options . timeoutInterval > 0 ) { socket . idleTimeout = setTimeout ( ( ) => { this . onPlayerTimeout ( socket ) ; } , this . options . timeoutInterval * 1000 ) ; } }
resets the idle timeout for a given player
resets the idle timeout for a given player