Closed alexddhuang closed 5 years ago
Could you please actively resolve questions from users? Thanks. @EllanJiang
The counter will increment when a heart beat is sent successfully rather than the opposite. When the response from server is received, the counter will reset. So when the sending counter exceeds some number, it means the we keeps failing to receive server responses.
https://github.com/EllanJiang/GameFramework/blob/0416f39fde69b0f14ec12df2c6b6ad3207612f11/GameFramework/Network/NetworkManager.NetworkChannel.cs#L259
Do I misunderstand this code? I think that this condition should be replaced by
After I have successfully sent a heartbeat, it shouldn't report missing a heartbeat.