Skip to content

socket.io

Snipa22 edited this page Mar 6, 2017 · 2 revisions

ZMQ and Socket.IO were added to NodeJS-pool in early March, 2017 in order to help alleviate load issues, and to prepare for the ability of Monero to go ahead and provide data over ZMQ rather than simply via JSON-RPC to allow for better responses from the system.

This requires a development version of ZMQ libs to be available, we suggest libzmq3-dev from the ubuntu repos.

Using Socket.IO rooms, the following rooms are available:
payments - Should trigger a reload of the payments page to get new payments.
hash_chart_<address> - equiv to https://api.xmrpool.net/miner/<address>/chart/hashrate/allWorkers
worker_stats_<address> - equiv to https://api.xmrpool.net/miner/<address>/stats/allWorkers
worker_ids_<address> - equiv to https://api.xmrpool.net/miner/<address>/identifiers
address_stats_<address> - equiv to https://api.xmrpool.net/miner/<address>/stats
network_block_info - equiv to https://api.xmrpool.net/network/stats
pool_stats_<type> - equiv to https://api.xmrpool.net/pool/stats/<type>
pool_stats - equiv to https://api.xmrpool.net/pool/stats/
Clone this wiki locally