Merge pull request #671 from MihailRis/debugging-client

Debugging client
This commit is contained in:
MihailRis
2025-11-20 22:55:16 +03:00
committed by GitHub
35 changed files with 430 additions and 73 deletions
+10
View File
@@ -39,6 +39,16 @@ end
local Socket = {__index={
send=function(self, ...) return network.__send(self.id, ...) end,
recv=function(self, ...) return network.__recv(self.id, ...) end,
recv_async=function(self, length, usetable)
while self:is_alive() do
local available = self:available()
if available >= length then
return self:recv(length, usetable)
end
coroutine.yield()
end
return self:recv(length, usetable)
end,
close=function(self) return network.__close(self.id) end,
available=function(self) return network.__available(self.id) or 0 end,
is_alive=function(self) return network.__is_alive(self.id) end,
+1
View File
@@ -47,6 +47,7 @@ local function complete_app_lib(app)
end
app.reset_content = core.reset_content
app.is_content_loaded = core.is_content_loaded
app.set_title = core.set_title
function app.config_packs(packs_list)
-- Check if packs are valid and add dependencies to the configuration