diff --git a/frontend/src/models/Coordinator.model.ts b/frontend/src/models/Coordinator.model.ts index 3ae5e6b8..f863523b 100644 --- a/frontend/src/models/Coordinator.model.ts +++ b/frontend/src/models/Coordinator.model.ts @@ -306,9 +306,9 @@ export class Coordinator { getRelayUrl = (network: 'mainnet' | 'testnet', hostUrl: string, selfHosted: boolean): string => { if (selfHosted && this.shortAlias !== 'local') { - return `ws://${hostUrl.replace(/^https?:\/\//, '')}/${network}/${this.shortAlias}/relay`; + return `ws://${hostUrl.replace(/^https?:\/\//, '')}/${network}/${this.shortAlias}/relay/`; } else { - return `ws://${this.url.replace(/^https?:\/\//, '')}/relay`; + return `ws://${this.url.replace(/^https?:\/\//, '')}/relay/`; } }; } diff --git a/frontend/src/services/RoboPool/index.ts b/frontend/src/services/RoboPool/index.ts index 65738fff..c255da59 100644 --- a/frontend/src/services/RoboPool/index.ts +++ b/frontend/src/services/RoboPool/index.ts @@ -19,7 +19,7 @@ class RoboPool { ); if (settings.host) { - const hostNostr = `ws://${settings.host.replace(/^https?:\/\//, '')}/relay`; + const hostNostr = `ws://${settings.host.replace(/^https?:\/\//, '')}/relay/`; if (federationRelays.includes(hostNostr)) { this.relays.push(hostNostr); }