MCPcopy Create free account
hub / github.com/bugy/script-server / sendReloadModelRequest

Function sendReloadModelRequest

web-src/src/main-app/store/scriptConfig.js:42–52  ·  view source on GitHub ↗
(parameterValues, clientModelId, websocket, newStateVersion)

Source from the content-addressed store, hash-verified

40}
41
42function sendReloadModelRequest(parameterValues, clientModelId, websocket, newStateVersion) {
43 const data = {
44 parameterValues,
45 clientModelId,
46 clientStateVersion: newStateVersion
47 };
48 websocket.send(JSON.stringify({
49 'event': 'reloadModelValues',
50 data
51 }));
52}
53
54export const NOT_FOUND_ERROR_PREFIX = `Failed to find the script`;
55export const CANNOT_PARSE_ERROR_PREFIX = `Cannot parse script config file`;

Callers 1

reloadModelFunction · 0.85

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected