mooball
    Preparing search index...

    Interface ClientTriggeredRoomConfigCallbacks

    interface ClientTriggeredRoomConfigCallbacks {
        onAfterPingChange?(
            instantPing: number,
            averagePing: number,
            maxPing: number,
            customData?: any,
        ): void;
        onBeforePingChange?(
            instantPing: number,
            averagePing: number,
            maxPing: number,
        ): 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 void

      void.

    • 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

      Returns any

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