MCPcopy Create free account
hub / github.com/instantdb/instant / constructor

Method constructor

client/packages/core/src/framework.ts:65–78  ·  view source on GitHub ↗
(params: FrameworkConfig)

Source from the content-addressed store, hash-verified

63 }) => void)[] = [];
64
65 constructor(params: FrameworkConfig) {
66 this.params = params;
67 this.db = params.db;
68 this.resultMap = new Map<
69 string,
70 {
71 type: 'http' | 'session';
72 status: 'pending' | 'success' | 'error';
73 promise?: Promise<QueryPromise>;
74 data?: any;
75 error?: any;
76 }
77 >();
78 }
79
80 public subscribe = (
81 callback: (result: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected