MCPcopy Create free account
hub / github.com/astercloud/aster / getData

Method getData

ui/src/protocol/message-processor.ts:879–885  ·  view source on GitHub ↗

* Get data from a surface's data model

(surfaceId: string, path: string)

Source from the content-addressed store, hash-verified

877 * Get data from a surface's data model
878 */
879 getData(surfaceId: string, path: string): DataValue | null {
880 const surface = this.surfaces.get(surfaceId);
881 if (!surface) {
882 return null;
883 }
884 return getData(surface.dataModel, path);
885 }
886
887 /**
888 * Set data in a surface's data model

Calls 2

getDataFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected