MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / startRemoteWatch

Function startRemoteWatch

apps/desktop/src/main/index.ts:1240–1246  ·  view source on GitHub ↗
(client: RemoteServerClient, capabilities: ServerCapabilities)

Source from the content-addressed store, hash-verified

1238}
1239
1240function startRemoteWatch(client: RemoteServerClient, capabilities: ServerCapabilities): void {
1241 stopRemoteWatch()
1242 if (!capabilities.supportsWatch) return
1243 stopRemoteVaultWatch = client.watchVaultChanges((ev) => {
1244 windowVaults.sendRemoteVaultChange(ev)
1245 })
1246}
1247
1248async function setVaultForWindow(
1249 win: BrowserWindow,

Callers 2

setRemoteWorkspaceFunction · 0.85
registerIpcFunction · 0.85

Calls 3

stopRemoteWatchFunction · 0.85
watchVaultChangesMethod · 0.80
sendRemoteVaultChangeMethod · 0.80

Tested by

no test coverage detected