def connect(host = 'localhost', port = 10_011)
      @sock = TCPSocket.new(host, port)

      # Check if the response is the same as a normal teamspeak 3 server.
      if @sock.gets.strip != 'TS3'
        msg = 'Server is not responding as a normal TeamSpeak 3 server.'
        raise InvalidServer, msg
      end

      # Remove useless text from the buffer.
      @sock.gets
    end
def connect(host = 'localhost', port = 10_011)
      @sock = TCPSocket.new(host, port)

      # Check if the response is the same as a normal teamspeak 3 server.
      if @sock.gets.strip != 'TS3'
        msg = 'Server is not responding as a normal TeamSpeak 3 server.'
        raise InvalidServer, msg
      end

      # Remove useless text from the buffer.
      @sock.gets
    end
Initializes Client

   connect('voice.domain.com', 88888)
 Connects to a TeamSpeak 3 server

   connect('voice.domain.com', 88888)