Websocket: setData - GraphWalker/graphwalker-project GitHub Wiki
SetData
The Websocket message command setData
is used to run javascript for the current model.
Request
{
"command":"setData",
"action": "some_data = 1425; some_other_data = 3.14;"
}
Response
If the request was successful "success" will be "true".
An example of a setData response.
{
"success":true,
"command":"setData"
}