-
Notifications
You must be signed in to change notification settings - Fork 62
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
High CPU usage in example when disconnected #43
Comments
Looking around at the forks, it seems like digitalocean@5de394a would solve the issue, if the connected channel was exposed in the |
Is this gonna get pulled in? digitalocean/recws@5de394a#commitcomment-55348888 |
Looks like there was a PR for it, but never got merged* |
Please see #61 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the basic example, the code below will flood the console and cause 100% CPU usage on a single core;
It's not the most elegant solution, but an easy fix is to do something like this:
Is there a better way to do this? It doesn't look like there's a
connected
channel to block on.The text was updated successfully, but these errors were encountered: