It seems that it is not possible to handle PING requests yourself. It returns early and the user is not given a chance to receive the event.
Being annoyed by bots getting stuck in disconnected state, I wanted to add a watchdog that will have its timestamp updated every time a ping request is received. I'm not sure if that's the best way to handle it, but at least it will work (if only I can find a way to process pings somehow).
It seems that it is not possible to handle PING requests yourself. It
return
s early and the user is not given a chance to receive the event.Being annoyed by bots getting stuck in disconnected state, I wanted to add a watchdog that will have its timestamp updated every time a ping request is received. I'm not sure if that's the best way to handle it, but at least it will work (if only I can find a way to process pings somehow).