Skip to content
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 closed #80

Open
woniesong92 opened this issue Feb 21, 2018 · 3 comments
Open

Websocket connection closed #80

woniesong92 opened this issue Feb 21, 2018 · 3 comments

Comments

@woniesong92
Copy link

woniesong92 commented Feb 21, 2018

Following up on this issue: #29
What's the best way to prevent "Connection closed" happening for a websocket?

@woniesong92
Copy link
Author

the connection closes with the message: connection not open on send()

@woniesong92
Copy link
Author

@egalano from the server side, is pong() supported?

AFAIK the client side should just do something like this, right?

setInterval(() => {
  ws.send('__ping__');
}, 30000)

@egalano
Copy link

egalano commented Feb 27, 2018

@woniesong92 I feel like this is something the web3.js client should handle for you so you dont explicitly have to do this in your code. Would you be interested in collaborating on a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants