Ejemplo n.º 1
0
 /**
  * Handle ZMQ Read Event.
  */
 public function handleReadEvent()
 {
     $messages = $this->socket->recvmulti(ZMQ::MODE_DONTWAIT);
     if (false !== $messages) {
         $this->emit('messages', [$messages]);
     }
 }