MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / destroy

Method destroy

apps/client/src/code/realtime/context.ts:157–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155 }
156
157 destroy() {
158 for (const channel of this.subscriptions) {
159 const [key, field] = splitStr(channel, '>', 2);
160 const [prefix, suffix] = splitStr(key, ':', 2);
161
162 this.unsubscribe(prefix as any, suffix, field);
163 }
164 }
165 },
166);
167export type RealtimeContext = InstanceType<ReturnType<typeof RealtimeContext>>;

Callers 1

useRealtimeContextFunction · 0.45

Calls 2

splitStrFunction · 0.90
unsubscribeMethod · 0.80

Tested by

no test coverage detected