Skip to content

Commit

Permalink
fast btc connection fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
creed-victor committed Nov 6, 2020
1 parent 01cd5fc commit da8cb76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/containers/FastBtcForm/saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/classifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down

0 comments on commit da8cb76

Please sign in to comment.