original_string: private function connect()
      {
          if (!$this->socket->isOpened()) {
              $this->socket->open();
  
              if ($this->secret) {
                  $this->socket->send(join(Driver::SEP, ['A', 1, Driver::encode($this->secret)]).Driver::EOL);
              }
          }
      }
code: private function connect()
      {
          if (!$this->socket->isOpened()) {
              $this->socket->open();
  
              if ($this->secret) {
                  $this->socket->send(join(Driver::SEP, ['A', 1, Driver::encode($this->secret)]).Driver::EOL);
              }
          }
      }
code_tokens: private function connect ( ) { if ( ! $ this -> socket -> isOpened ( ) ) { $ this -> socket -> open ( ) ; if ( $ this -> secret ) { $ this -> socket -> send ( join ( Driver :: SEP , [ 'A' , 1 , Driver :: encode ( $ this -> secret ) ] ) . Driver :: EOL ) ; } } }
docstring: Connect to Handler Socket
  
  @throws HSException
docstring_tokens: Connect to Handler Socket