diff --git a/gamejolt.lua b/gamejolt.lua index 2e7c301..97d312a 100644 --- a/gamejolt.lua +++ b/gamejolt.lua @@ -41,4 +41,11 @@ function GJ.openSession() return string.find(req("sessions/open/?", "dump", true, true), "SUCCESS") ~= nil 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 \ No newline at end of file