Added disconnect

This commit is contained in:
2025-05-06 14:03:58 +02:00
parent 9f3771cea9
commit 3bd305dc10

View File

@@ -103,4 +103,16 @@ function Core:download(file)
fileStream:close(); fileStream:close();
return true, "Success" return true, "Success"
end
function Core:disconnect()
if not self then
return "Not instance"
end
if not self.ws then
return "Not initilized"
end
self.ws.close();
end end