New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket connection prevents node.js process from exiting #1850
Comments
Agreed. I suggest a method like:
|
Hi, I would like to start working on this issue. I'll assign it myself and submit a PR. Please suggest if that's not the process. |
You can't assign it to your self but feel free to submit a PR and reference this issues there. @sawyna |
@nivida I see the https://github.com/ethereum/web3.js/tree/v1.0.0-beta.34/packages/web3-providers-ws Also it was supported through |
@sawyna the develop branch is v20.x.x of Web3 and v1.0.0-beta.xx is in the 1.0 branch :) |
So this issue relates to |
PR: #1881 |
There is no |
Okay never mind. I have just done it - not a TODO anymore. |
Oh yes! I missed it! |
After calling
new Web3('ws://localhost:8545')
the node.js process never ends but instead hangs foreverCalling
web3.currentProvider.connection.close()
does not help and throws error when using with theHttpProvider
.(Of course you can call
process.exit(0)
but it's ugly)The text was updated successfully, but these errors were encountered: