classicborne
    Preparing search index...

    Class BaseHeartbeat

    I send periodic heartbeats to a server list to announce the presence and status of the universe.

    Index

    Constructors

    Properties

    alive: boolean
    pinged: boolean
    salt: string
    universe: BaseUniverse
    urlBase: string
    heartbeatRate: number = 45000

    The rate at which to post a heartbeat, in milliseconds.

    retryRate: number = 1000

    The rate at which to retry posting a heartbeat in case of failure, in milliseconds.

    This is at a lower rate in order to keep my spot at the server list if the server for the server list is having issues. But actually, it tends to be the CDN of the server for the server list that has issues.

    Methods

    • Sends a heartbeat to the server list with the provided form.

      Parameters

      • form: Record<string, string>

      Returns Promise<void>