Events-Manager unsubscribing and disconnects
We should check how the unbsubscribing/disconnect process works. It seems we are having some issues:
locked queues trying to subscribe to queues, in theory, previously released. unsubscribing twice to the same queue: because the client requested unsubscription inmediatly a crash (close socket connection) the socket.io server detects client closed connection and repeat the unsubscription. we need better management for unsubscribing how to test that? Create a client that is subscribed to more than one channel. Try typical control+c, lunch, control+c, lunch. You will anomalous situations.
This issue is very related to the problems that Antonis Migiakis is having:
http://gitlab.atosresearch.eu/ari/aeon-sdk/issues/1
Actually, he let us use his client a example:
https://github.com/ador75/safepost-sccu
It will subscribe to several channel, then try control +c , lunch, control +c...