7b57aba92e
- Reduce polling interval to 5 seconds for faster updates - Add network update events (peer count changes) - Include block type (PoS/PoW) in newBlock events - Track connected WebSocket clients - Emit networkUpdate when peer count changes This enables real-time live feed on the explorer frontend.
12 lines
197 B
JSON
12 lines
197 B
JSON
{
|
|
"name": "triangles-api",
|
|
"version": "1.0.0",
|
|
"main": "server.js",
|
|
"dependencies": {
|
|
"axios": "^1.6.0",
|
|
"cors": "^2.8.5",
|
|
"express": "^4.18.2",
|
|
"socket.io": "^4.8.3"
|
|
}
|
|
}
|