Does anyone have a working JS example for wss://socket.etherscan.io/wshandler?
Or any alternative websocket providers, besides Infura?
The reason I'm looking for Infura alternatives is it fails for me in two ways that are pretty much blockers:
1) it doesn't implement ping/pong and therefore I get random disconnects. I haven't found a bulletproof workaround, though I tried a) subscribing for new blocks b) calling contract immutable methods periodically
2) there seems to be a problem with larger chunks of data when e.g. calling
getPastEvents to fetch blocks with a big number of transactions consistently result in disconnect with
Error: CONNECTION ERROR: Couldn't connect to node on IPC. I don't know if this is Infura's fault or e.g. websocket or else - but I thought maybe I start by testing a different provider. Any other debugging suggestions would be appreciated.