pull() public method

public pull ( string | null $id = null ) : string[]
$id string | null
return string[]
Beispiel #1
0
 /**
  * @param Connection $conn
  */
 private function recvHeartbeat(Connection $conn)
 {
     if ($this->flags['enableHeartbeat'] !== true) {
         return;
     }
     if ($this->connectionPool->setConnection($conn)) {
         $this->emit('connect', [$conn->id]);
     }
     if ($this->type === Channel::BINDER) {
         $this->heartbeat($conn->id);
     }
     foreach ($messages = $this->onlineBuffer->pull($conn->id) as $message) {
         $this->unicast($message[0], $message[1]);
     }
 }