Open mattgstevens opened 8 years ago
We can register a websocket to listen for payments on addresses we are tracking.
https://medium.com/@orweinberger/coding-an-alerting-mechanism-for-the-blockchain-using-node-js-e644fff35dd#.zhf7p7vtu
Instead of needing to make HTTP request to an API, we could eagerly listen for when an address is paid. This could be cleaned up when the TTL for the redis entry expires.
:+1: a way better way to do it. Should not be too hard to replace the current way we do it - just have to replace http with websocket.
http
websocket
We can register a websocket to listen for payments on addresses we are tracking.
https://medium.com/@orweinberger/coding-an-alerting-mechanism-for-the-blockchain-using-node-js-e644fff35dd#.zhf7p7vtu
Instead of needing to make HTTP request to an API, we could eagerly listen for when an address is paid. This could be cleaned up when the TTL for the redis entry expires.