NIP-47 connection strings can specify multiple relay params, but
parseConnectionString only returned the first one.
Adds a 'relays' field (string[]) to NWCConnection while keeping the
existing 'relay' field (deprecated) for backward compatibility.
Fixes#494
Addresses #494. The NIP-47 spec allows multiple relay parameters in
connection strings, but parseConnectionString only returned the first one.
Changes:
- Add 'relays' field to NWCConnection interface (string array)
- Use searchParams.getAll('relay') to capture all relays
- Keep 'relay' field for backwards compatibility (returns first relay)
This is backwards compatible - existing code using connection.relay
will continue to work, while new code can use connection.relays to
access all specified relays.