def connect
      @socket = TCPSocket.new(@host, @port)
      2.times { read(0.1) rescue nil } #Channel cleanup: some vlc versions echo two lines of text on connect.
      true
    rescue Errno::ECONNREFUSED => e
      raise VLC::ConnectionRefused, "Could not connect to #{@host}:#{@port}: #{e}"
    end
def connect
      @socket = TCPSocket.new(@host, @port)
      2.times { read(0.1) rescue nil } #Channel cleanup: some vlc versions echo two lines of text on connect.
      true
    rescue Errno::ECONNREFUSED => e
      raise VLC::ConnectionRefused, "Could not connect to #{@host}:#{@port}: #{e}"
    end
Connects to VLC RC interface on Client#host and Client#port