src/HSCore/Socket.php
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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
Connect to Handler Socket

@throws HSException
Connect to Handler Socket