socket.IO-objc icon indicating copy to clipboard operation
socket.IO-objc copied to clipboard

Acknowledgment timeout

Open buholzer opened this issue 12 years ago • 2 comments

I understand that _acks is keeping track of acknowledgement's and that they are removed from _acks as soon as an acknowledgement successfully comes back from the server in the onData method.

  • What happens when acknowledgement's aren't sent back from the server, due to communication errors or busy server?
  • Will they stay forever in the _acks dictionary?
  • Should a timed method clean up old acknowledgements based on a timeout and inform the user about it?
  • Should we be able to set the timeout per connection or per message?

Suggestions welcome!

buholzer avatar Sep 07 '13 07:09 buholzer

this all sounds good to me - anyone with other feedback for this?

pkyeck avatar Nov 18 '13 14:11 pkyeck

https://github.com/monder/socket.IO-objc has forked similar function but i want to know NSTimer is good option for this ? i want your suggestion Multiple Timer Function may effect performance, even if we invalidate is on ack timeout and ack received events ?

patelparthc avatar Jan 24 '15 05:01 patelparthc