Add in-memory relay

This commit is contained in:
Jon Staab
2024-04-21 16:01:32 -07:00
parent f738682fb3
commit eb5ffe873e
14 changed files with 246 additions and 27 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ export const normalizeRelayUrl = (url: string, {allowInsecure = false}: Normaliz
// Use our library to normalize
url = normalizeUrl(url, {stripHash: true, stripAuthentication: false})
// Strip the protocol since only wss works
url = stripProtocol(url)
// Strip the protocol since only wss works, lowercase
url = stripProtocol(url).toLowerCase()
// Urls without pathnames are supposed to have a trailing slash
if (!url.includes("/")) {