PHPDaemon\Network\Connection::onFinish PHP Method

onFinish() public method

Called when connection finishes
public onFinish ( ) : void
return void
    public function onFinish()
    {
        if (!$this->connected) {
            if ($this->onConnected) {
                $this->onConnected->executeAll($this);
                $this->onConnected = null;
            }
        }
        parent::onFinish();
    }

Usage Example

Beispiel #1
0
 /**
  * @TODO DESCR
  */
 public function onFinish()
 {
     if ($this->attachedServer) {
         $this->attachedServer->attachedClients->detach($this);
     }
     Timer::remove($this->keepaliveTimer);
     parent::onFinish();
 }
All Usage Examples Of PHPDaemon\Network\Connection::onFinish