3 ms·
I would like to see a credible open source alternative to Campfire, etc, so this is nice work. But if it's an Ember app, why don't the different rooms present
by ef4 13y ago
I would like to see a credible open source alternative to Campfire, etc, so this is nice work.
But if it's an Ember app, why don't the different rooms present as different URLs?
- SingAlong 13y agoWhen URLs change the message pollers also will be destroyed and reinitialized. That would be a problem. IMHO, chat apps usually push the limits of any frontend framework.
- ef4 13y agoThat's not true. It's a "single page app" with built in support for both pushState and hash-based URLs, so there's no reason anything needs to reinitialize just to update the URL. I have written an Ember app that maintains a persistent websocket connection as it transitions around through many URLs.
- ulisesrmzroche 13y agoNo, you're doing it wrong. Apart from your controllers being long-lived and persist between routes, you're usually interacting with the data store, which caches and keeps references to records. Just make sure you're pushing data into the store instead of making requests or whatever. Also, remember the Run Loop.
- hhaidar 13y agoCheck out https://github.com/sdelements/lets-chat https://github.com/sdelements/lets-chat, it does exactly that.
- ef4 13y agoNice, thanks.