0

I am trying to reproduce a bug which happens after my websocket connection restarts.

To pinpoint the problem I am trying to manually close (and then restart) the ws connection to my ganache-cli node.

On one tab, I have my ganache-cli up and running on localhost:8545.

In another tab, I do geth attach ws://127.0.0.1:8545 and try to call admin.stopWS() but I get a

ReferenceError: 'admin' is not defined
    at <anonymous>:1:1
  • From a NodeJS script: web3.currentProvider.connection.close();. Not sure how you could port this to geth console though. – goodvibration Sep 20 at 19:19

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.