Add pingSession
This commit is contained in:
parent
0990bcb4d6
commit
0b7235b450
@ -41,4 +41,11 @@ function GJ.openSession()
|
|||||||
return string.find(req("sessions/open/?", "dump", true, true), "SUCCESS") ~= nil
|
return string.find(req("sessions/open/?", "dump", true, true), "SUCCESS") ~= nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function GJ.pingSession(active)
|
||||||
|
local status = "idle"
|
||||||
|
if active then status = "active" end
|
||||||
|
|
||||||
|
return string.find(req("sessions/open/?status=" .. status, "dump", true, true), "SUCCESS") ~= nil
|
||||||
|
end
|
||||||
|
|
||||||
return GJ
|
return GJ
|
Reference in New Issue
Block a user