Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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.


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.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: