Added disconnect
This commit is contained in:
12
core.lua
12
core.lua
@@ -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
|
||||||
Reference in New Issue
Block a user