Class: LocalWebCache

LocalWebCache(options)

LocalWebCache - Fetches a WhatsApp Web version from a local file store

Constructor

new LocalWebCache(options)

Parameters:
Name Type Description
options object

options

Properties
Name Type Description
path string

Path to the directory where cached versions are saved, default is: "./.wwebjs_cache/"

strict boolean

If true, will throw an error if the requested version can't be fetched. Defaults to true.

readOnly boolean

When true, cache misses are not persisted.

integrity Record.<string, {sha256: string, sizeBytes: number}>

Optional immutable artifact manifest.

Source: