!7 static long timeout = 60000; static Var connected = new(0); static Map connectedComputers = synchroMap(new ExpiringMap2(5000)); html { int count = parseIntOpt('count); S computerID = subBot_getHeaders().get('X-Computer-ID); bool longPoll = params.get('count) != null; if (!longPoll) ret connected!; temp tempIncIntVar(connected); print("Inc var"); temp tempAfterwards("Dec var"); print(connected! + ", eq: " + eq(connected!, count)); waitForVarToChange_withTimeout(connected, count, timeout); ret connected!; }