threefoldtecharchive / tfchain_explorer

explorer UI for grid 3
https://explorer.dev.grid.tf
2 stars 0 forks source link

Explorer opens 2 websocket connections at once #166

Closed DylanVerstraete closed 2 years ago

DylanVerstraete commented 2 years ago

Screenshot for reference:

Screenshot from 2022-02-22 12-03-32

Question: why do we need a connection anyway? What data is fetched from the chain?

RafyAmgadBenjamin commented 2 years ago

we use WebSocket to get some data from chain-like pricing policy and chain version

RafyAmgadBenjamin commented 2 years ago

we have update the code to do one WebSocket connection and close it after getting the required data

RafyAmgadBenjamin commented 2 years ago

Done

Branch

master_WPsockets

PR

https://github.com/threefoldtech/tfchain_explorer/pull/169

RafyAmgadBenjamin commented 2 years ago

Verified

devnet image