mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2026-04-29 15:37:48 +00:00
18 lines
367 B
Markdown
18 lines
367 B
Markdown
# Monitor Payments Websocket (JavaScript)
|
|
|
|
Demonstrates how to monitor incoming payments using WebSocket connections.
|
|
|
|
## Browser
|
|
|
|
Open `index.html` in a web browser and check the browser console to see the logs.
|
|
|
|
## Command-line
|
|
|
|
Alternatively, you can run the code from the command line:
|
|
|
|
```sh
|
|
npm install
|
|
node monitor-payments.js
|
|
node read-amount-received.js
|
|
```
|