mqtt-users team mailing list archive
-
mqtt-users team
-
Mailing list archive
-
Message #00089
Re: Presence control
I whipped up a script to do just this a little while ago. Shameless self plug for mqttjs!
https://gist.github.com/1832048
Am 08/06/2012 um 6:29 AM schrieb "Nicholas O'Leary" <nick.oleary@xxxxxxxxx>:
> Hi,
>
> I've done a very quick write-up of the presence technique:
> http://mqtt.org/wiki/doku.php/presence
>
> Cheers,
> Nick
>
> On 7 June 2012 09:02, andypiperuk@xxxxxxxxx <andypiperuk@xxxxxxxxx> wrote:
>> ... incidentally, this kind of protocol-specific question would be worth
>> asking in the MQTT Google
>> Group https://groups.google.com/forum/?fromgroups#!forum/mqtt
>>
>>
>> On Thu, Jun 7, 2012 at 9:01 AM, andypiperuk@xxxxxxxxx
>> <andypiperuk@xxxxxxxxx> wrote:
>>>
>>> One way you could deal with presence would be to have an app publish a
>>> persistent message to some kind of presence topic when it starts, and have a
>>> LWT to publish a message and tell others that it had gone away. This is an
>>> area that we need to flesh out on the wiki at some point
>>> (http://mqtt.org/wiki/doku.php/techniques?s[]=presence)
>>>
>>> I think the only way you'd be able to do the second thing would be to have
>>> a broker expose its internal counters, so that is bound to be
>>> implementation-specific. I don't know of a broker that provides that kind of
>>> information today.
>>>
>>> On Wed, Jun 6, 2012 at 7:49 PM, Jesús Iglesias <osus@xxxxxxxxxxx> wrote:
>>>>
>>>> Hi guys!
>>>>
>>>> Is there any way to know if one client is conneted to the broker ata some
>>>> time?
>>>>
>>>> One more, is there any way to know how many pending messages are for any
>>>> innactive client with persistent connection?
>>>>
>>>> Thanks in advance,
>>>> Jesus
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~mqtt-users
>>>> Post to : mqtt-users@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~mqtt-users
>>>> More help : https://help.launchpad.net/ListHelp
>>>>
>>>
>>>
>>>
>>> --
>>> Andy Piper | Farnborough, Hampshire (UK)
>>> blog: http://andypiper.co.uk | skype: andypiperuk
>>> twitter: @andypiper | images: http://www.flickr.com/photos/andypiper
>>
>>
>>
>>
>> --
>> Andy Piper | Farnborough, Hampshire (UK)
>> blog: http://andypiper.co.uk | skype: andypiperuk
>> twitter: @andypiper | images: http://www.flickr.com/photos/andypiper
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~mqtt-users
>> Post to : mqtt-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~mqtt-users
>> More help : https://help.launchpad.net/ListHelp
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~mqtt-users
> Post to : mqtt-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mqtt-users
> More help : https://help.launchpad.net/ListHelp
>
References