you would do it like lightning:
ws://pubkey@45.123.123.8:4444
maybe you would first fetch this pubkey from the relay metadata and use it as an optional faster and more secure mode of connection for future sessions (no tls overhead). wouldn’t work on the web but native apps would see a latency reduction on reconnections which happens a lot on mobile. nostr:note1f84rezwtnax5ctpvnrm30rc37gep5gassssv4yzelzvpfv2w9m6shju8ra