function parseConnectionArgs({ shim, connArgs }) {
  const params = {}
  if (shim.isString(connArgs)) {
    connArgs = new URL(connArgs)
    params.host = connArgs.hostname
    if (connArgs.port) {
      params.port = parseInt(connArgs.port, 10)
    }
  } else {
    params.port = connArgs.port || (connArgs.protocol === 'amqp' ? 5672 : 5671)
    params.host = connArgs.hostname
  }

  return params
}
Parses the connection args to return host/port

@param {string|object} connArgs connection arguments
@returns {object} {host, port }