getId() public method

public getId ( ) : string
return string
Example #1
0
 /**
  * @param Connection $conn
  */
 private function recvHeartbeat(Connection $conn)
 {
     if ($this->flags['enableHeartbeat'] !== true) {
         return;
     }
     if ($this->connectionPool->setConnection($conn->id)) {
         $this->emit('connect', [$conn->getId()]);
     }
     if ($this->type === self::BINDER) {
         $this->heartbeat($conn->id);
     }
 }