Esempio n. 1
0
 /**
  * @param $callback
  */
 public function onMessage($callback)
 {
     while (true) {
         call_user_func_array($callback, [$this->transport->getNewMessages($this->profile->username), $this]);
         sleep(1);
     }
 }