candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.32k stars 370 forks source link

Connection keeps dissconnecting, How to edit index.html #423

Closed sriducati closed 8 years ago

sriducati commented 8 years ago

Hello All,

I admit Candy Chat is good but it keeps disconnecting, There is nothing we can about it I almost tried all solutions listed here and also in google groups,Well but I think i found a better solution though stack,which can fix this problem,,, well it is by sending presence event every 10 seconds using setTimeInterval how can we implement this?? which file can i edit? could anyone please show with a code example?

benlangfeld commented 8 years ago

You can do this in your own code, perhaps setting up the timer in a callback on connection: https://candy-chat.github.io/candy/docs/files/view/observer-js.html#candy:view.connection.status-STROPHE-STATUS. I don't think there's a case for this to be in core.