cloakfall
    Preparing search index...

    Function onGameUpdate

    • Be told whenever the game's state changes - the redacted view of the whole screen, for this connection alone. Replaces any previous listener rather than adding another - a rematch (see remotePlayAgainListener.ts, server/lobbyServer.ts's relaxed startGame guard) re-enters a second real game on the same connection, which would otherwise leave the first game's own render loop listening alongside the new one, forever.

      Parameters

      • callback: (redactedBody: object) => void

      Returns void