[Telepathy] On reliably detecting new members

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Jun 4 02:08:01 PDT 2009

Le mercredi 03 juin 2009 à 18:02 -0400, Benjamin M. Schwartz a écrit :
> Dear Telepathy devs,

Hi Benjamin,

> I would like to detect new members reliably, as they join a D-Bus tube, in
> order to pass them initialization information.  I have been doing this by
> sending out a broadcast message saying "Hi, I'm new here", to which the
> existing members can reply, as done in the HelloMesh example.  However, it
> now occurs to me that there is also the "watch_participants" method on the
> tube, which makes this sort of broadcast seem redundant and unnecessary.
> What is the best way to (reliably) detect new members as they join?

Indeed, the DBusNamesChanged signal is emitted each time a participant
joins or lefts the D-Bus tube.
The TubeConnection object provides watch_participants, a convenient
helper around this signal which will call a cb each time this signal is


More information about the telepathy mailing list