-
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
how to close websocket after it has been moved into select? #128
Comments
I'm not sure what the exact question here is. You'd close it by calling What's the problem you're running into? |
I don't know on which object I have to call the close method into which i put |
I can't use the websocket because it is moved into the |
You can write a close frame. |
|
|
|
I guess this is the correct way ?
|
It just causes a panic. |
What panic? |
Thanks a lot, I think I got the close frame right, but because I'm not parsing the incoming data correctly the panic is caused inside the for_each. |
Great :) So I think this can be closed? Please re-open if there's still some kind of problem |
The text was updated successfully, but these errors were encountered: