socket.IO-objc
socket.IO-objc copied to clipboard
Acknowledgment timeout
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!
this all sounds good to me - anyone with other feedback for this?
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 ?