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

Provide a simple callback function for when you need to know a ping came in. #428

Closed
wants to merge 1 commit into from

Conversation

schmidtw
Copy link

This is a simple approach to providing users with a relatively easy and safe way to be notified of when a ping comes from the server to the client. It doesn't allow for any action to be take aside from letting 3rd party code know something happened.

This should address #246.

Copy link
Contributor

@nhooyr nhooyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing @schmidtw but there's already #307 and I believe it has a better API with the context and payload in the callback. It also implements a callback for pongs.

@nhooyr nhooyr closed this Dec 19, 2023
@schmidtw
Copy link
Author

I didn't see that PR before. Can #307 be merged?

@nhooyr
Copy link
Contributor

nhooyr commented Dec 19, 2023

Not at the moment. I'm busy the next few weeks but I'll be working on this library again in January/February full time.

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

Successfully merging this pull request may close these issues.

2 participants