Global

Methods

deleteDatabase()

Delete persistent cache.
Source:

initDatabase() → {Promise}

Initialize persistent cache: open or create/upgrade if needed.
Source:
Returns:
Type:
Promise
promise to be resolved/rejected when the DB is initialized.

isEmpty() → {boolean}

Check if buffer is empty.
Source:
Returns:
Type:
boolean
true if the buffer is empty, false otherwise.

jsonHelper()

Converts numeric values to strings.
Source:

toString()

Custom formatter
Source:

Type Definitions

contactFilter(contact) → {boolean}

Source:
Parameters:
Name Type Description
contact Object to check for inclusion.
Returns:
Type:
boolean
true if contact should be processed, false to exclude it.

onData(data)

Source:
Parameters:
Name Type Description
data Data Data packet