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

Acknowledgment timeout

Open buholzer opened this issue 10 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