MCPcopy
hub / github.com/deepstreamIO/deepstream.io / subscribeWithPath

Function subscribeWithPath

test-e2e/framework/record.ts:242–247  ·  view source on GitHub ↗
(clientExpression: string, recordName: string, path: string, immediate: boolean)

Source from the content-addressed store, hash-verified

240 },
241
242 subscribeWithPath (clientExpression: string, recordName: string, path: string, immediate: boolean) {
243 getRecordData(clientExpression, recordName).forEach((recordData) => {
244 recordData.subscribePathCallbacks[path] = sinon.spy()
245 recordData.record.subscribe(path, recordData.subscribePathCallbacks[path], !!immediate)
246 })
247 },
248
249 unsubscribeFromPath (clientExpression: string, recordName: string, path: string) {
250 getRecordData(clientExpression, recordName).forEach((recordData) => {

Callers

nothing calls this directly

Calls 3

forEachMethod · 0.80
getRecordDataFunction · 0.70
subscribeMethod · 0.65

Tested by

no test coverage detected