This commit is contained in:
Christopher Cookman 2024-09-04 07:46:01 -06:00
parent 8fb06c39b1
commit 77d779dd4d
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -24,7 +24,7 @@ local ws = function (dict)
end end
local server = game:GetService('HttpService') local server = game:GetService('HttpService')
local id = server:RequestAsync({ local id = server:RequestAsync({
["Url"] = BaseUrl .. "/connect/" .. JobId, ["Url"] = BaseUrl .. "api/connect/" .. JobId,
["Method"] = "PUT", ["Method"] = "PUT",
["Body"] = dict.url ["Body"] = dict.url
}).Body }).Body
@ -44,7 +44,7 @@ local ws = function (dict)
local loop = coroutine.create(function() local loop = coroutine.create(function()
while wait(50 / 1000) do 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 if notExists(messages, msg) then
table.insert(messages, msg) table.insert(messages, msg)
if notEmpty(msg) then if notEmpty(msg) then