2

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.

  • Hey did you ever find a fix or alternative to infura? I'm having the exact same issue with the websocket – Dan Mar 12 '18 at 3:32
  • Nope nothing yet.. – jamboj Mar 15 '18 at 15:32
  • My current work around is using the onError reconnect code provided by 7Ds7 here github.com/ethereum/web3.js/issues/1354 – Dan Mar 15 '18 at 20:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.