def connect
      credentials.clear
      @sock = if !!options[:ssl]
        Socket::SSL.connect(host, port, timeout)
      else
        Socket::TCP.connect(host, port, timeout)
      end
    end
def connect
      credentials.clear
      @sock = if !!options[:ssl]
        Socket::SSL.connect(host, port, timeout)
      else
        Socket::TCP.connect(host, port, timeout)
      end
    end
Connect to the server defined by @host, @port without timeout @timeout.

 @example Open the connection
   connection.connect

 @return [ TCPSocket ] The socket.

 @since 1.0.0