Closed PerkinsZhu closed 7 years ago
Thanks!
This is https://github.com/delight-im/Android-DDP/issues/61, by the way. I had proposed a solution there, already, but yours may be better.
Before we can merge this, we need two things:
Merged in https://github.com/delight-im/Android-DDP/commit/fdf1ddc76302fb3c4d6998ab3c0c718fc6bd9a57.
Thanks again!
when the socket is disconnet, the program will add the messages from client into mQueuedMessages ,when the socket is reconnected ,it will be resend to servers. but it don not removed from the mQueuedMessages .when the socket is disconnect again and reconnected again, the messages can be send again.So, the message must be remove from mQueuedMessages when it has be resend successful.