interface IOpts {
    dbName?: string;
    indexedDB: IDBFactory;
    localStorage?: Storage;
    workerFactory?: (() => Worker);
}

Hierarchy (view full)

Properties

dbName?: string

Optional database name. The same name must be used to open the same database.

indexedDB: IDBFactory

The Indexed DB interface e.g. window.indexedDB

localStorage?: Storage

The local storage instance to persist some forms of data such as tokens. Rooms will NOT be stored.

workerFactory?: (() => Worker)

Optional factory to spin up a Worker to execute the IDB transactions within.

Type declaration

Generated using TypeDoc