GUH
This commit is contained in:
parent
8fb06c39b1
commit
77d779dd4d
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue