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