From da8cb76c17b834af28bc8f7dcb0a2529d0ad2904 Mon Sep 17 00:00:00 2001 From: Victor Creed Date: Fri, 6 Nov 2020 12:51:35 +0200 Subject: [PATCH] fast btc connection fixes --- src/app/containers/FastBtcForm/saga.ts | 4 ++-- src/utils/classifiers.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/containers/FastBtcForm/saga.ts b/src/app/containers/FastBtcForm/saga.ts index 0ceb9f11c..88e6d9a23 100644 --- a/src/app/containers/FastBtcForm/saga.ts +++ b/src/app/containers/FastBtcForm/saga.ts @@ -40,9 +40,9 @@ function createWebSocketChannel(state) { return eventChannel(emit => { const { origin, pathname } = new URL(fastBtcApis[currentChainId]); - const socket = io(origin, { + const socket = io(`${origin}/`, { reconnectionDelayMax: 10000, - path: pathname, + path: pathname && pathname !== '/' ? pathname : '', }); if (state.receiverAddress) { diff --git a/src/utils/classifiers.ts b/src/utils/classifiers.ts index af9153033..4ff975739 100644 --- a/src/utils/classifiers.ts +++ b/src/utils/classifiers.ts @@ -35,7 +35,7 @@ export const readNodes = { }; export const fastBtcApis = { - 30: 'https://fastbtc.sovryn.app', + 30: 'https://fastbtc.sovryn.app/', 31: 'https://testnet.sovryn.app/fastbtc', };