feat: Упрощено взаимодействие по вебсокетам между клиентом и сервером
This commit is contained in:
@@ -3,5 +3,5 @@ function _message_call(data)
|
||||
{
|
||||
local compile_string = "try { " + data["data"] + " } catch(id) { print(\"[PyG2O] Error white executing the code: \" + id + \"\\nCode: " + data["data"] + "\"); return null; }";
|
||||
local result = compilestring(compile_string)();
|
||||
_send({"uuid": data["uuid"], "data": result});
|
||||
_send({"event": "sq_response", "uuid": data["uuid"], "data": result});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user