Class ServerBase<G>

Type Parameters

  • G extends Record<string, any>

Constructors

Properties

axios: AxiosStatic

The axios library.

connectedUsers: ConnectedUser[] = []

The connected users.

gameState: G

The game state.

logger: Logger<never, boolean>

The logger for the server.

semver: __module

The semver library.

uuid: v4

The UUID generator.

version: string

The current version of the server.

Methods

  • Get the logger.

    Parameters

    • Optionalplugin: string

    Returns Logger<never, boolean>

  • Set the game state.

    Parameters

    • gameState: G

      The new game state.

    Returns Promise<void>