RPC and WS endpoints share the same port (#187)

Combine our HTTP RPC and Websocket services into a single HTTP server, eliminating the --ws-port flag to swapd and using --swapd-port flag for swapcli.
This commit is contained in:
Dmitry Holodov
2022-09-10 14:54:43 -05:00
committed by GitHub
parent 476bc69b82
commit 5698e25239
22 changed files with 484 additions and 388 deletions

View File

@@ -1,6 +1,6 @@
# Atomic swap UI
This is a draft UI to interract with the atomic swap nodes
This is a draft UI to interact with the atomic swap nodes
## Get started

View File

@@ -14,7 +14,7 @@
import HelperText from '@smui/textfield/helper-text'
import { currentAccount, sign } from '../stores/metamask'
const WS_ADDRESS = 'ws://127.0.0.1:8081'
const WS_ADDRESS = 'ws://127.0.0.1:5001/ws'
let amountProvided: number | null = null
let xmrAddress = ''