src/ServerEngine.js
/**
     * Report game status
     * This method is only relevant if the game uses MatchMaker functionality.
     * This method must return the game status.
     *
     * @return {String} Stringified game status object.
     */
Report game status
This method is only relevant if the game uses MatchMaker functionality.
This method must return the game status.

@return {String} Stringified game status object.
Report game status This method is only relevant if the game uses MatchMaker functionality . This method must return the game status . @return { String } Stringified game status object .
gameStatus() {
        let gameStatus = {
            numPlayers: Object.keys(this.connectedPlayers).length,
            upTime: 0,
            cpuLoad: 0,
            memoryLoad: 0,
            players: {}
        };
        for (let p of Object.keys(this.connectedPlayers)) {
            gameStatus.players[p] = {
                frameRate: 0,
            };
        }
        return JSON.stringify(gameStatus);
    }
gameStatus ( ) { let gameStatus = { numPlayers : Object . keys ( this . connectedPlayers ) . length , upTime : 0 , cpuLoad : 0 , memoryLoad : 0 , players : { } } ; for ( let p of Object . keys ( this . connectedPlayers ) ) { gameStatus . players [ p ] = { frameRate : 0 , } ; } return JSON . stringify ( gameStatus ) ; }
Report game status
 This method is only relevant if the game uses MatchMaker functionality.
Report game status This method is only relevant if the game uses MatchMaker functionality .