An interface to be implemented by classes that wish to observe the pings database.

interface Observer {
    update(identifier, ping): void;
}

Methods

Methods

  • Updates an observer about a new ping of a given id that has just been recorded to the pings database.

    Parameters

    • identifier: string

      The id of the ping that was just recorded.

    • ping: PingInternalRepresentation

      An object containing the newly recorded ping path, payload and optionally headers.

    Returns void

Generated using TypeDoc