A server URL in its normalised form, when it is one. Only ws: and wss: count: applesauce's normaliser would turn https:// or a bare word into a server address, and NIP-66 lets a report name a server by pubkey.
ws:
wss:
https://
A server URL as written anywhere.
The normalised URL, or undefined.
toRelayUrl('wss://Relay.Example'); // 'wss://relay.example/'toRelayUrl('https://relay.example'); // undefined Copy
toRelayUrl('wss://Relay.Example'); // 'wss://relay.example/'toRelayUrl('https://relay.example'); // undefined
A server URL in its normalised form, when it is one. Only
ws:andwss:count: applesauce's normaliser would turnhttps://or a bare word into a server address, and NIP-66 lets a report name a server by pubkey.