From d339ddf0a2c98202258e088d886a7d1de19a9cbe Mon Sep 17 00:00:00 2001 From: Zacharias Date: Tue, 6 May 2025 13:46:47 +0200 Subject: [PATCH] Fixed small issues --- core.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index 1a36dfd..5e97e45 100644 --- a/core.lua +++ b/core.lua @@ -8,7 +8,7 @@ function Core:new() end function Core:connect() - ws, err = assert(http.websocket("ws://localhost:8080")); + ws, err = assert(http.websocket("ws://192.168.5.162:8080")); if not ws then term.setTextColor(colors.red); @@ -28,7 +28,7 @@ function Core:send(package) return false, "Websocket not initiated"; end - self.ws:send(textutils.serialiseJSON(package)); + self.ws.send(textutils.serialiseJSON(package)); end function Core:read() @@ -36,7 +36,7 @@ function Core:read() return false, "Websocket not initiated"; end - return true, textutils.unserialiseJSON(self.ws:read()) + return true, textutils.unserialiseJSON(self.ws.read()) end function Core:download(file)