mooball
    Preparing search index...

    Interface ClientTriggeredCallbacks

    These events can only be triggered by a room client.

    interface ClientTriggeredCallbacks {
        onPingChange?(
            instantPing: number,
            averagePing: number,
            maxPing: number,
            customData?: any,
        ): any;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Called just after the ping value of the current player has been calculated.

      Parameters

      • instantPing: number

        the instant ping value at that moment

      • averagePing: number

        the calculated average ping value in a period of time

      • maxPing: number

        the calculated maximum ping value in a period of time

      • OptionalcustomData: any

        the custom data that was returned from the previous callback.

      Returns any

      void or a custom data to pass to the next callback.