Added disconnect

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

View File

@@ -104,3 +104,15 @@ function Core:download(file)
return true, "Success" return true, "Success"
end 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