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

How to close or disconnect a socket? #43

Closed
zamazan4ik opened this issue May 21, 2021 · 3 comments
Closed

How to close or disconnect a socket? #43

zamazan4ik opened this issue May 21, 2021 · 3 comments

Comments

@zamazan4ik
Copy link

zamazan4ik commented May 21, 2021

Hi!

Is there any way to close or disconnect an existing socket?

Thanks in advance!

@1c3t3a
Copy link
Owner

1c3t3a commented May 22, 2021

Hei there! I don't really know how this happens, but I actually missed a disconnect method on the Socket struct. For now, an ugly drop(socket); will do the disconnect. I will add the method and come up with a new version tomorrow!

@zamazan4ik
Copy link
Author

Yeah, I've already ended up with drop(socket) hack. Will be great to see a new version - thanks in advance for the fix!

@1c3t3a
Copy link
Owner

1c3t3a commented May 24, 2021

Hei, I've just released a new version (v0.2.3) that fixes this issue!

@1c3t3a 1c3t3a closed this as completed May 24, 2021
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

2 participants