asdf
This commit is contained in:
parent
2f947401da
commit
dfaecbfec7
|
@ -61,16 +61,15 @@ local ws = function (dict)
|
||||||
|
|
||||||
if response.Success then
|
if response.Success then
|
||||||
local msg = response.Body
|
local msg = response.Body
|
||||||
-- Rest of the code
|
if notExists(messages, msg) then
|
||||||
|
table.insert(messages, msg)
|
||||||
|
if notEmpty(msg) then
|
||||||
|
onMessage(msg)
|
||||||
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
error("Error Polling Messages: " .. response.StatusCode .. " " .. response.StatusMessage)
|
error("Error Polling Messages: " .. response.StatusCode .. " " .. response.StatusMessage)
|
||||||
end
|
end
|
||||||
if notExists(messages, msg) then
|
|
||||||
table.insert(messages, msg)
|
|
||||||
if notEmpty(msg) then
|
|
||||||
onMessage(msg)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
coroutine.resume(loop)
|
coroutine.resume(loop)
|
||||||
|
|
Loading…
Reference in a new issue