HI Alex, thanks for getting back to me so quickly!
- I have multiple clients, each subscribed to multiple topics.
- I am dynamically generating subscription names, at creation time; each client has a UUID, and I'm using that to generate the subscription name, but only once per client/subscription pair.
- I am deleting subscriptions on each client, but (in theory!) only after I've stopped using them.
- I'm only creating a subscription once on each client and keeping a reference to it which I use solely to delete it with later. I'm using "autoAck: true" option on the
topic.subscribe() call and setting a
subscription listener, which is why it seemed strange that I'd get the ack ID error, as I'm not dealing with ack IDs at all, but leaving it entirely to the library.
So your message has given me an idea - I wonder if I'm somehow leaking a reference to the subscription, thus keeping it hanging around and trying to ack a message immediately after the subscription has been deleted. I'll go through all the code and see what I can find. Will come back with any findings!
Thanks again,
Igor