feat: Упрощено взаимодействие по вебсокетам между клиентом и сервером

This commit is contained in:
AURUMVORXX
2025-10-29 22:57:04 +05:00
parent aa6b5700ce
commit a31b565967
3 changed files with 16 additions and 13 deletions

View File

@@ -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});
}