ng-admin icon indicating copy to clipboard operation
ng-admin copied to clipboard

Replacing REST with Websockets

Open rszczypka opened this issue 11 years ago • 1 comments

This project looks really good and thank you for all the work you have put into it. I wonder how easy would it be to replace REST with a websocket? Any suggestions where to start?

I'm thinking about using https://github.com/wilk/ng-websocket and most of the list tables will work in real time.

I would really appreciate your comments.

rszczypka avatar Sep 17 '15 08:09 rszczypka

Hi, this is a great idea, but not for ng-admin.

We choose to use one-way databinding in many cases for performance reason (e.g. in the listView), and that wouldn't reflect changes in the backend side broadcast by the websockets. Besides, all the REST plumbing in ng-admin is done by Restangular, and we don't intend to redo it all. Lastly, REST is a HTTP format, and I don't know any related standard for websockets (apart from WAMP, which is still very young IMO).

So if you want to build an admin based on websockets, and use ng-admin as a base, be my guest! But I doubt any of your work can be reused in ng-admin.

fzaninotto avatar Sep 17 '15 09:09 fzaninotto