Skip to content

Commit ebfb490

Browse files
New deps
1 parent 3a4dce6 commit ebfb490

3 files changed

Lines changed: 65 additions & 96 deletions

File tree

frontend/package-lock.json

Lines changed: 55 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
"type": "module",
66
"private": true,
77
"dependencies": {
8-
"@babbage/go": "^0.1.15",
9-
"@bsv/identity-react": "^1.1.13",
8+
"@babbage/go": "^0.1.16",
9+
"@bsv/identity-react": "^1.1.14",
1010
"@bsv/message-box-client": "^2.0.2",
1111
"@bsv/sdk": "^2.0.4",
12+
"@bsv/uhrp-react": "^1.0.6",
1213
"@emotion/react": "^11.11.1",
1314
"@emotion/styled": "^11.11.0",
1415
"@mui/icons-material": "^5.11.16",
1516
"@mui/material": "^5.13.6",
1617
"@types/jest": "^29.5.11",
1718
"@types/node": "^20.11.0",
18-
"amountinator-react": "^0.1.39",
19+
"amountinator-react": "^0.1.40",
1920
"qr-scanner": "^1.4.2",
2021
"qrcode": "^1.5.4",
2122
"react": "^18.2.0",

frontend/src/App.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ const App: React.FC = () => {
7575
let isSubscribed = true
7676
const listenForPayments = async () => {
7777
try {
78-
await peerPayClient.initializeConnection()
78+
// Pre-initialize overlay advertisement + WebSocket connection in parallel
79+
// so the first sendLivePayment doesn't pay the init() latency.
80+
await Promise.all([
81+
peerPayClient.init(),
82+
peerPayClient.initializeConnection()
83+
])
7984

8085
await peerPayClient.listenForLivePayments({
8186
overrideHost: constants.messageboxURL,

0 commit comments

Comments
 (0)