code: function normalizeHostname(hostname) {
      // make sure noone gave us a full URI
      if (!hostname.startsWith("coap://") && !hostname.startsWith("coaps://")) {
          hostname = `coaps://${Hostname_1.getURLSafeHostname(hostname)}`;
      }
      return new URL(hostname).hostname;
  }
docs: Since coaps:// urls are parsed by the url package, the contained hostname is normalized. This function applies the same transformation to any given hostname. Fixes the issue mentioned in #30 
  Normalizes a hostname so it matches between `setSecurityParameters` and `connect`
  @param hostname The hostname to normalize