Skip to content
Kristian Karl edited this page May 14, 2020 · 2 revisions

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"
}
Clone this wiki locally