protected function sendCommand(string $command) : string
    {
        try {
            $client = new Client;
            $client->addServer($this->config['sockets']['client']);
            $response = $client->sendCommand($command);
            $client->close();
            return $response;
        } catch (ClientException $e) {
            return 'error';
        }
    }
protected function sendCommand(string $command) : string
    {
        try {
            $client = new Client;
            $client->addServer($this->config['sockets']['client']);
            $response = $client->sendCommand($command);
            $client->close();
            return $response;
        } catch (ClientException $e) {
            return 'error';
        }
    }
protected function sendCommand ( string $ command ) : string { try { $ client = new Client ; $ client -> addServer ( $ this -> config [ 'sockets' ] [ 'client' ] ) ; $ response = $ client -> sendCommand ( $ command ) ; $ client -> close ( ) ; return $ response ; } catch ( ClientException $ e ) { return 'error' ; } }
Sends a control command to Angela main process using socket connection.

@param string $command
@return string
Sends a control command to Angela main process using socket connection .