diff --git a/core.lua b/core.lua index 818ea30..9e10f70 100644 --- a/core.lua +++ b/core.lua @@ -103,4 +103,16 @@ function Core:download(file) fileStream:close(); 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 \ No newline at end of file