From 3bd305dc105109f13e6a32bf1a12830bc1d499eb Mon Sep 17 00:00:00 2001 From: Zacharias Date: Tue, 6 May 2025 14:03:58 +0200 Subject: [PATCH] Added disconnect --- core.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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