isHeartbeatNeeded() public method

public isHeartbeatNeeded ( string $id ) : boolean
$id string
return boolean
Example #1
0
 /**
  * @param string $id
  * @return bool
  */
 private function heartbeat($id)
 {
     if ($this->connectionPool->isHeartbeatNeeded($id) === true) {
         return $this->sendMessage($id, self::COMMAND_HEARTBEAT);
     }
     return false;
 }