Options
All
  • Public
  • Public/Protected
  • All
Menu

A rehydrated device

This device can receive to-device events to get room keys that were send to it.

Hierarchy

  • RehydratedDevice

Index

Constructors

Methods

Constructors

Methods

  • free(): void
  • Returns void

  • receiveEvents(to_device_events: string): Promise<any[]>
  • Receive the to-device events that sent to the dehydrated device

    The rehydrated device will decrypt the events and pass the room keys into the OlmMachine.

    to_device_events is a JSON-encoded result of the events array from /dehydrated_device/{device_id}/events.

    Returns an array of RoomKeyInfo, indicating the room keys that were received.

    Parameters

    • to_device_events: string

    Returns Promise<any[]>

Generated using TypeDoc