MCPcopy Create free account
hub / github.com/MaterializeInc/demos / constructor

Method constructor

connection-examples/nodejs/state.js:7–14  ·  view source on GitHub ↗
(collectHistory)

Source from the content-addressed store, hash-verified

5 #history;
6
7 constructor(collectHistory) {
8 this.#state = new Map();
9 this.#timestamp = 0;
10 this.#valid = true;
11 if (collectHistory) {
12 this.#history = [];
13 }
14 }
15
16 getState() {
17 const list = new Array();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected