[rabbitmq-discuss] Client connect/disconnect events on the server side
vdeepak at yahoo-inc.com
Tue Mar 15 04:31:21 GMT 2011
Even I have the same scenario, and I have my clients announcing(publishing) their connect and disconnect at the time of log-in and log-off resp. I have a deamon process running which is a pure consumer listening on 'register.*'.
Would be interested to know if some better way exists.
On Mar 15, 2011, at 4:31 AM, Miguel Morales wrote:
Is the fact that a client has connected with a particular user name really indicating presence? Or is their presence perhaps only established when they start consuming from a queue?
Well, presence is established when they subscribe to an exchange. The way I have it now is that they have to 'announce' themselves when they log in by publishing a message.
However, I currently have no way of knowing when they disconnect and be able to tell the other clients that the user is no longer active.
Unfortunately (for you) there is no log message containing the user name.
Damn that sucks, I'll have to look through the archives and see if other people give hints as to a proper solution.
Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com<mailto:rabbitmq-discuss at lists.rabbitmq.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss