Skip to main content

foundation-comms.connect.snapshot

Home > @genesislcap/foundation-comms > Connect > snapshot

Connect.snapshot() method

Retrieves a snapshot of data for the specified resource.

Signature:

snapshot(resourceName: string, params?: DataserverParams): Promise<Message>;

Parameters

Parameter

Type

Description

resourceName

string

The name of the resource to retrieve the snapshot for.

params

DataserverParams

(Optional) Additional parameters to pass to the server.

Returns:

Promise<Message>

A promise that resolves with the snapshot data.