diff options
author | jgeboski <jgeboski@gmail.com> | 2016-01-04 19:28:45 -0500 |
---|---|---|
committer | jgeboski <jgeboski@gmail.com> | 2016-01-04 19:28:45 -0500 |
commit | ef58bebe539d87014ddceff6b6ca6217d422b4f2 (patch) | |
tree | 8bc2d7b6fb6cf37e8b67a6c0fb706527c782f661 /facebook/facebook-api.h | |
parent | 074cfd563cf75f37b9fafbd9dfc1ed8f130dd343 (diff) | |
download | bitlbee-facebook-ef58bebe539d87014ddceff6b6ca6217d422b4f2.tar.gz bitlbee-facebook-ef58bebe539d87014ddceff6b6ca6217d422b4f2.tar.bz2 bitlbee-facebook-ef58bebe539d87014ddceff6b6ca6217d422b4f2.tar.xz |
facebook-api: attempt to silently reconnect the MQTT stream
Often times, the MQTT stream is disconnected by Facebook for whatever
reason. The only thing I can think of is some sort of load balancing on
Facebook's end. It has also been reported that when a user logs out on
the Facebook website, their MQTT connections are killed. Whenever the
connection is killed by Facebook, the user is able to reconnect right
after.
In order to make for a quieter experience, the plugin should attempt
to silently reconnect before notifying the user of an error. This is
done by relying on the sequence identifier and the message queue to
ensure everything remains synchronized for when the connection returns.
Diffstat (limited to 'facebook/facebook-api.h')
0 files changed, 0 insertions, 0 deletions