Class: Data

Data()

The data object.

Constructor

new Data()

Source:

Members

queues

The queues in the app catalogue.

Source:

Methods

addRoom()

Adds room to the rooms, in place of one with its id (rooms found loading apps wait for the rooms).

Source:

createQueue() → {Queue|null}

Creates an empty queue at apps/.jtq, and adds it to the app catalogue.

Source:
Returns:

The queue, or null if the file already exists.

Type
Queue | null

loadOtreeProject()

Adds the session configs of the oTree project of settingsPath to the catalogue, as queues.

Source:

reloadQueue()

Reads the queue at queuePath again, and replaces it in the app catalogue.

Source:

stop() → {Promise}

Stops what keeps running in the background: saving the time info, and each session's
timers and data file. Resolves once the files are written. CALLED FROM jt.stop (see jtree.js).

Source:
Returns:
Type
Promise