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 capture EOF error? #398

Closed
parthokr opened this issue Jul 2, 2023 · 4 comments
Closed

How to capture EOF error? #398

parthokr opened this issue Jul 2, 2023 · 4 comments

Comments

@parthokr
Copy link

parthokr commented Jul 2, 2023

wsjson doesn't return any error that matches with io.EOF.
Then how to detect if a client disconnects?

@bilinxing
Copy link

Same question. Also a question, is this program still being maintained? Or should I still turn to gorilla

@parthokr
Copy link
Author

parthokr commented Aug 9, 2023

@bilinxing switching back to gorilla seems to be promising now as they unarchived their repos 🎉

@nhooyr
Copy link
Contributor

nhooyr commented Sep 28, 2023

See #402 re maintenance.

As for your question, see https://pkg.go.dev/nhooyr.io/websocket#CloseError

@nhooyr nhooyr closed this as completed Sep 28, 2023
@nhooyr
Copy link
Contributor

nhooyr commented Sep 28, 2023

Also opened #406 to document this better. The documentation of my library just isn't good enough which is why these kinds of issues keep coming up. I need better examples that demonstrate how to use the library with perfect correctness.

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