Hi,
I'd like to add, that I'd also be interested in solving this. I'm currently developing a server-backend that should support ping/pong frames to conform to a specification that specifically references those control frames. I am not controlling the development of the clients so having an upper level protocol for keep-alives instead is not something that I can do. Ignoring the whole thing might be fine in the beginning but eventually, I'll have to implement support for ping/pong control frames.
I'd like to reference the following ticket:
Also, in the source, the necessary opcodes are already mentioned/exist. See:
Is there any more support regarding this already in the source that I have missed?
Any pointers on where I might start adding things myself? Where is the place that handles control frames?
I guess sending a pong message automatically when a ping arrives could be handled easily if somebody points me in the right direction.
Injecting ping messages and handling the eventually handling missing pong messages might need a bit more thought on behalf of someone better than me. But I would like to give it a shot, too.
Best regards,
Jan