public function reconnect() { $this->reconnects += 1; $this->close(); $this->connect($this->timeout); }