The one waitress to rule them all. Hopefully. Careful, she'll burn you if you're late on delivery!

NOTE: messageTag is unreliable, so not used...

Constructors

Methods

  • Reject because of failed delivery notified by ezspMessageSentHandler. NOTE: This checks for APS sequence, which is only valid in ezspMessageSentHandler, not ezspIncomingMessageHandler (sequence from stack)

    Parameters

    Returns boolean

  • Matches event name with matcher's, and payload (if any in matcher) using fast-deep-equal/es6 (all keys & values must match)

    Parameters

    • eventName: string
    • Optionalpayload: {
          [k: string]: unknown;
      }
      • [k: string]: unknown

    Returns boolean

  • Resolve ZDO response payload.

    Parameters

    • sender: number | `0x${string}`

      Node ID or EUI64 in the response

    • apsFrame: EmberApsFrame

      APS Frame in the response

    • payload: unknown

      Payload to resolve

    Returns boolean

    True if resolved a waiter

  • Shortcut that starts the timer immediately and returns the promise. No access to id, so no easy cancel.

    Type Parameters

    • T

    Parameters

    • matcher: OneWaitressMatcher
    • timeout: number

    Returns Promise<T>

  • Shortcut that starts the timer immediately and returns the promise. No access to id, so no easy cancel.

    Type Parameters

    • T

    Parameters

    • matcher: OneWaitressEventMatcher
    • timeout: number
    • Optionalreason: string

      If supplied, will be used as timeout label, otherwise stringified matcher is.

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • matcher: OneWaitressMatcher
    • timeout: number

    Returns {
        id: number;
        start: (() => {
            id: number;
            promise: Promise<T>;
        });
    }

    • id: number
    • start: (() => {
          id: number;
          promise: Promise<T>;
      })
        • (): {
              id: number;
              promise: Promise<T>;
          }
        • Returns {
              id: number;
              promise: Promise<T>;
          }

          • id: number
          • promise: Promise<T>
  • Type Parameters

    • T

    Parameters

    • matcher: OneWaitressEventMatcher
    • timeout: number
    • Optionalreason: string

    Returns {
        id: number;
        start: (() => {
            id: number;
            promise: Promise<T>;
        });
    }

    • id: number
    • start: (() => {
          id: number;
          promise: Promise<T>;
      })
        • (): {
              id: number;
              promise: Promise<T>;
          }
        • Returns {
              id: number;
              promise: Promise<T>;
          }

          • id: number
          • promise: Promise<T>