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

Function receivedUpdateForPath

test-e2e/framework-v3/record.ts:48–55  ·  view source on GitHub ↗
(clientExpression: string, recordName: string, path: string, data: string)

Source from the content-addressed store, hash-verified

46 },
47
48 receivedUpdateForPath (clientExpression: string, recordName: string, path: string, data: string) {
49 data = utils.parseData(data)
50 getRecordData(clientExpression, recordName).forEach((recordData) => {
51 sinon.assert.calledOnce(recordData.subscribePathCallbacks[path])
52 sinon.assert.calledWith(recordData.subscribePathCallbacks[path], data)
53 recordData.subscribePathCallbacks[path].resetHistory()
54 })
55 },
56
57 receivedNoUpdate (clientExpression: string, recordName: string) {
58 getRecordData(clientExpression, recordName).forEach((recordData) => {

Callers

nothing calls this directly

Calls 3

forEachMethod · 0.80
getRecordDataFunction · 0.70
parseDataMethod · 0.45

Tested by

no test coverage detected