onReady() public method

Called when the connection is handshaked (at low-level), and peer is ready to recv. data
public onReady ( ) : void
return void
 /**
  * Called when the connection is handshaked (at low-level), and peer is ready to recv. data
  * @return void
  */
 public function onReady()
 {
     parent::onReady();
     $this->setWatermark(null, $this->pool->maxAllowedPacket);
     if ($this->url === null) {
         return;
     }
     if ($this->connected && !$this->busy) {
         $this->pool->markConnFree($this, $this->url);
     }
 }
 /**
  * @TODO DESCR
  */
 public function onReady()
 {
     $this->sendPacket(['op' => 'start', 'pid' => Daemon::$process->getPid(), 'workerId' => Daemon::$process->getId()]);
     parent::onReady();
 }