News for hackers. Stuff that matters.
Re:Show HN: Mogo Chat – open-source team chat app written in... by ef4 on Wednesday March 26, 2014 @09:58AM (#7473342)
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?

Re:Show HN: Mogo Chat – open-source team chat app written in... by hhaidar on Wednesday March 26, 2014 @12:33PM (#7474545)
Check out https://github.com/sdelements/lets-chat, it does exactly that.
Re:Show HN: Mogo Chat – open-source team chat app written in... by ef4 on Thursday March 27, 2014 @01:29AM (#7478785)
Nice, thanks.
Re:Show HN: Mogo Chat – open-source team chat app written in... by SingAlong on Wednesday March 26, 2014 @11:30AM (#7474044)
When 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.

Re:Show HN: Mogo Chat – open-source team chat app written in... by ef4 on Wednesday March 26, 2014 @11:47AM (#7474200)
That'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.

Re:Show HN: Mogo Chat – open-source team chat app written in... by ulisesrmzroche on Wednesday March 26, 2014 @12:33PM (#7474542)
No, 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.