MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / _resubscribe

Method _resubscribe

apps/client/src/code/realtime/client.ts:257–270  ·  view source on GitHub ↗
(prefix: DataPrefix_, suffix: string, field: DataField)

Source from the content-addressed store, hash-verified

255 }
256
257 _resubscribe<
258 DataPrefix_ extends DataPrefix,
259 DataField extends Extract<
260 keyof (typeof dataHashes)[DataPrefix_]['fields'],
261 string
262 > = Extract<keyof (typeof dataHashes)[DataPrefix_]['fields'], string>,
263 >(prefix: DataPrefix_, suffix: string, field: DataField) {
264 if (`${prefix}:${suffix}>${field}` in this.subscriptions) {
265 this.pushCommand({
266 type: RealtimeCommandType.SUBSCRIBE,
267 args: [prefix, suffix, field],
268 });
269 }
270 }
271
272 flushCommandBuffer = () => {
273 if (this.commandBuffer.length === 0) {

Callers 1

Calls 1

pushCommandMethod · 0.80

Tested by

no test coverage detected