Constructors

Methods

  • Find anything in sent state, and kick it around the loop again. This is intended for situations where something substantial has changed, and we don't really expect the other end to even care about the cancellation. For example, after initialization or self-verification.

    Returns Promise<void[]>

    An array of queueRoomKeyRequest outputs.

  • Queue up a room key request, if we haven't already queued or sent one.

    The requestBody is compared (with a deep-equality check) against previous queued or sent requests and if it matches, no change is made. Otherwise, a request is added to the pending list, and a job is started in the background to send it.

    Parameters

    Returns Promise<void>

    resolves when the request has been added to the pending list (or we have established that a similar request already exists)