To avoid stall connection we already send pings every 20 seconds we can then be sure to receive at least 1 message every 20 seconds hence, we can calculate the dealy of the messages and if it's more than twice the ping interval, we can assume connection is stalling
To avoid stall connection we already send pings every 20 seconds we can then be sure to receive at least 1 message every 20 seconds hence, we can calculate the dealy of the messages and if it's more than twice the ping interval, we can assume connection is stalling