Beispiel #1
0
 public function writeDebugData($s, $connId = NULL)
 {
     static $i = 1;
     $i++;
     $mt = explode(' ', microtime());
     $s = date('H:i:s', $mt[1]) . '.' . sprintf('%06d', $mt[0] * 1000000) . $s;
     debugWSHandle::sendDebugData($s);
 }
Beispiel #2
0
 public function init()
 {
     $this->addPathHandle('debug', array($this, 'handleDebug'));
     TimerEvent::add('test', function () {
         debugWSHandle::sendDebugData('test broadcast after 10 sec.');
     });
     TimerEvent::setTimeout('test', 10);
 }