Hello,
Has anyone tried implementing websocket ping-pong messages on top of mongoose websockets?
I'd like to avoid adding a new thread per connection to send ping packets and because my list of active connections isn't in a threadsafe datastructure, it doesn't seem feasible to send the pings for all connections from one thread.
My current idea is to rejigger another thread that handles the connection list data structure to occasionally stop its normal operation and sing the ping packets, but this doesn't feel like a very good solution.
Any suggestions?
Thanks in advance!
John