MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / postJSON

Method postJSON

tools/mcsim/DevicePane.js:42–46  ·  view source on GitHub ↗
(container, json)

Source from the content-addressed store, hash-verified

40 this.onJSON(container, JSON.parse(message));
41 }
42 postJSON(container, json) {
43 const message = JSON.stringify(json);
44 trace.left(message, "sim");
45 this.postMessage(container, message);
46 }
47 postMessage(container, message) {
48 model.SCREEN.postMessage(message);
49 }

Callers 3

onDefaultButtonDownMethod · 0.80
onDefaultButtonUpMethod · 0.80
onSensorChangedMethod · 0.80

Calls 2

postMessageMethod · 0.95
leftMethod · 0.65

Tested by

no test coverage detected