private function stream() { set_time_limit(0); $t = time(); $times = array($t, $t, $t, $t); // $msgtable = new GWF_ChatMsg(false); $channel = ''; while (true) { GWF_ChatOnline::setSessOnline($this->module); // GWF_Session::updateLastActivity(); $page = $this->module->getAjaxUpdates($times); # --- Anything happened? if ($page !== '') { GWF_Javascript::newSection(); echo $page; GWF_Javascript::endSection(); } usleep(999950); } }