-
Notifications
You must be signed in to change notification settings - Fork 325
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
Make server respond to websocket ping messages #560
Comments
Hi @maximbaz Websockets have a built-in mechanism for this using control frames which is already supported on the backend (check this) @bennyn Perhaps you want to have a look at this? |
Hey hey @tiago-loureiro 👋 Yes I know about those, unfortunately they are not supported by client-side javascript, that's the reason webapp is faking ping requests by sending strings to the server. https://www.w3.org/TR/websockets/#ping-and-pong-frames
|
Working on it. Thanks @maximbaz for reporting this, and for not letting go! :-) |
I just talked with @bennyn:
|
Solid plan 👍 Thank you both! |
To my understanding, this is an optional addition to the protocol. Only if a client sends a |
Yay for getting this merged! 🙂 @bennyn ping me if you want an early testing, or even for implementation if you guys are busy with other stuff, this is my most annoying issue with Wire on Desktop so I would be more than happy to collaborate again and get this implemented quickly 😉 |
@maximbaz PRs are more than welcome because we won't have time this month to implement it ourselves. |
@maximbaz also note that the PR went to staging yesterday; the next release that will bring it to app.wire.com is still a few days off (not scheduled, in fact, but very likely due this month). btw i really appreciate your patience and helpful attitude. it's great working with you! :-) |
Thanks for the kind words, happy to collaborate with you too 🙂 I have some preliminary implementation, please ping me when the code reaches app.wire.com so I can do some final testing before submitting a PR. |
Introduces an integration test / regression test to check that control-level pings with a payload result in a control-level pong with the same payload as specified in the [RFC](https://www.rfc-editor.org/rfc/rfc6455#section-5.5.2) This was used in debugging https://wearezeta.atlassian.net/browse/FS-1489 (related ping-pong prior work: #561 and prior discussion: #560)
Webapp sends
'Wire is so much nicer with internet!'
every now and then to make sure it is still able to talk to the server. However because server doesn't respond to this message, in some cases it is impossible to detect if webapp is actually offline.See this message for details: wireapp/wire-desktop#1129 (comment)
Please make Wire respond with some string like
'Indeed it is'
on each such ping request, so that it's possible to improve webapp.The text was updated successfully, but these errors were encountered: