From cdea8c8e820f9205c78a47e0acb40e5f0dc921e1 Mon Sep 17 00:00:00 2001 From: Zacharias Date: Tue, 6 May 2025 13:43:36 +0200 Subject: [PATCH] Added constructor --- core.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core.lua b/core.lua index 891e559..1a36dfd 100644 --- a/core.lua +++ b/core.lua @@ -2,6 +2,11 @@ Core = {}; Core.__index = Core; +function Core:new() + local self = setmetatable({}, Core); + return self; +end + function Core:connect() ws, err = assert(http.websocket("ws://localhost:8080"));