-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
no doc related to hearbeat use case when connection is for push only events #492
Comments
This is covered in the section about control message. The section includes the snippet of code to use. |
The read operation is blocking so
I'm not saying that there is no documentation. I'm just saying that this common use case is not covered as whole neither by examples nor by documentation. All breadcrumbs are separated ;) It takes me at least 2h to figure out how to do it right. So I can create example to save time of others working on similar case. Does it sound reasonable? |
The filewatch example covers the scenario. Do we need to make the examples more visible? Does the filewatch example need improvement? |
Closing this one out for now. |
A dummy reader should not be necessary to be able to respond to ping messages IMO. Even if it is documented, it doesn't feel natural. |
@ozgurakcali That would be nice, but the package does not know if the application will read the connection or not. |
right now according to doc you have to read from connection to fire
SetPongHandler
event. But if thewebsocket
is used for push only it won't be fired. Solution is to use:But the doc is not very straight forward about that. In my opinion there should be description of how to setup heartbeat in case of push only usage. Let me know if you need help with that.
The text was updated successfully, but these errors were encountered: