private function connecting() : void
    {
        $this->connected = false;
        $this->closing
            ? $this->closed()->resolve()
            : $this->client = Socket::connect($this->endpoint, $this->events)
        ;
    }
private function connecting() : void
    {
        $this->connected = false;
        $this->closing
            ? $this->closed()->resolve()
            : $this->client = Socket::connect($this->endpoint, $this->events)
        ;
    }
private function connecting ( ) : void { $ this -> connected = false ; $ this -> closing ? $ this -> closed ( ) -> resolve ( ) : $ this -> client = Socket :: connect ( $ this -> endpoint , $ this -> events ) ; }
reconnect to server if conn closed or error
reconnect to server if conn closed or error