Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Automatic Reconnect and Publishing While Disconnected

Hello all,

I opened an github issue for the _javascript_ client to implement automatic reconnect and disconnected publishing :  https://github.com/eclipse/paho.mqtt._javascript_/issues/48

Please review.  Your input and comments are much appreciated.

--
Regards,
Mike Tran




From:        Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx>
To:        General development discussions for paho project <paho-dev@xxxxxxxxxxx>
Date:        02/04/2016 09:44 AM
Subject:        [paho-dev] Automatic Reconnect and Publishing While Disconnected
Sent by:        paho-dev-bounces@xxxxxxxxxxx




Hello all,

we're starting to implement automatic reconnect and publish while disconnected (offline buffering) for the
Java, _javascript_ and C clients.  I've drawn up a state diagram of how this might work, which I've attached below.

This means that the application has to call connect before being able to publish - it doesn't matter whether the
connect call succeeds or not. 

Operations are: connect, reconnect, disconnect.
Events are: connectionLost, onConnect

The reconnect operation can occur automatically, or "manually" when called by the application.   Persistent
messages can be managed by API calls before connect is called.

Let me know if you have any thoughts or suggestions.


--
Ian Craggs                          
icraggs@xxxxxxxxxx                IBM United Kingdom
Paho Project Lead; Committer on Mosquitto

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev


Back to the top