protected function getLine()
    {
        $line = fgets($this->socket);

        if ($line === false) {
            $this->disconnect();
        }

        $this->debug('Receiving: '.$line);

        return $line;
    }