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

Does anyone know of a JS framework which plays nicely with Server Sent Events or WebSockets? I've tried pretty much everything so far, and it's always a colossal hack to implement, as none of them seem to have been built with anything other than CRUD in mind.


SocketStream which is built around RPC (at least it was like that on 0.3 which I tried) and Derby.js which is build around model-view binding.

I used both a long time ago, not sure if they're still maintained.


Ah I quite like those two, but I was hoping for some client-side ones as most of my projects are in Ruby :)

I should try a project on Node again at some point, it has been quite a while.


It seems to me that this isn't feasible in pure client side because the server would have to agree on some kind of protocol.

Server-side is mandatory here. Unfortunately I cannot recommend any since I don't do Ruby :(

Maybe you don't need a framework but just a JSON-RPC[1] library.

[1] http://en.wikipedia.org/wiki/JSON-RPC


I'm really just looking for a model system that allows simple updates of objects in its identity map with data from an arbitrary source. Backbone is the closest I've found to supporting this with the least effort. I'd rather like to use Server Sent Events, as there's decent support in a variety of languages and it's pretty simple; it's just that no current frameworks seem to have been built with those sorts of technologies in mind.

I've largely resigned myself to having to hack support into anything I try.




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

Search: