kandanapp / kandan

Kandan is an Open Source Alternative to HipChat
GNU Affero General Public License v3.0
2.72k stars 405 forks source link

Have to refresh to see new messages on Windows+Chrome/FireFox and iOS #327

Open alexhulbert opened 10 years ago

alexhulbert commented 10 years ago

I've noticed that, when on a Windows computer, I have to refresh to see new messages if I'm using anything but Internet Explorer. What's going on? The same thing also happens on iOS devices (with both Safari and Chrome).

alexhulbert commented 10 years ago

I edited my issue. [bump]

scouttyg commented 10 years ago

My guess is that Faye isn't getting a connection or is dropping the connection. Can you open up the Chrome console (Firefox console, etc) and let me know if you are getting any javascript errors?

alexhulbert commented 10 years ago

Yup. /faye is throwing a 404.

reckoncraft commented 10 years ago

I'm trying to get around this by adding this code in config.ru after line 9

run faye_server

This manages to make it work on Firefox but Chrome will take a long time to load although eventually, after around 5 minutes, chrome can begin to send and receive messages as well. It's a very long wait though, and messages are being labelled as "X seconds from now". Also, if Chrome sends any messages while loading, it won't be visible on any other browsers unless it's refreshed.