binarybucks / homA

An extensible framework for the smart home
Eclipse Public License 1.0
137 stars 24 forks source link

Web interface goes 'blank' for a few seconds #112

Closed jpmens closed 11 years ago

jpmens commented 11 years ago

Every once in a bit, maybe a couple of minutes, the Web interface (at least on Chrome) goes almost blank: it shows just the title bar w/ the logo and "All" centered. It then magically refreshes itself after a second or two, showing "Connecting".

Is that a bug or is it designed to do that?

There is no MQTT activity when that happens.

binarybucks commented 11 years ago

This is due to a bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=407627) in the Paho JS library which causes MQTT timeouts. I've added the mentioned workaround in a recent commit, however this does not completely fix it.

The magic refresh is my automatic reconnect function kicking in though.

Until Paho fixes this completely and sends correct MQTT pings there is not much I can do unfortunately.

binarybucks commented 11 years ago

The issue is now completely fixed with the recent Paho JS version that is included with b08a32527e89522a3cab1c6109b6cf5bda2ab001