/** * shutdown server * */ public function shutDown() { if (!$this->isParent) { $this->closeConnection(); exit; } parent::shutDown(); }
public function __destruct() { $this->driver->shutDown(); }
/** * shutdown server * */ public function shutDown() { foreach ($this->clients as $socket) { $this->socket = $socket; $this->closeConnection(); } parent::shutDown(); }