diff --git a/WebSocket.lua b/WebSocket.lua index 51e6f4d..1834a33 100644 --- a/WebSocket.lua +++ b/WebSocket.lua @@ -24,7 +24,7 @@ local ws = function (dict) end local server = game:GetService('HttpService') local id = server:RequestAsync({ - ["Url"] = BaseUrl .. "/connect/" .. JobId, + ["Url"] = BaseUrl .. "api/connect/" .. JobId, ["Method"] = "PUT", ["Body"] = dict.url }).Body @@ -44,7 +44,7 @@ local ws = function (dict) local loop = coroutine.create(function() while wait(50 / 1000) do - local msg = server:GetAsync(BaseUrl .. "poll/"..JobId.."/"..id) + local msg = server:GetAsync(BaseUrl .. "api/poll/"..JobId.."/"..id) if notExists(messages, msg) then table.insert(messages, msg) if notEmpty(msg) then