onNextFrame

This commit is contained in:
Face
2025-09-11 17:30:28 +03:00
parent a51223250f
commit eddf0f370c
6 changed files with 69 additions and 17 deletions

View File

@@ -124,6 +124,8 @@ class WebSocketWrapper:
# Call the function
var result = vm.lua_pcall(1, 0, 0)
if result != vm.LUA_OK:
var error_msg = vm.lua_tostring(-1)
print("WebSocket event error: ", error_msg)
vm.lua_pop(1)
else:
vm.lua_pop(1) # Pop the non-function value