Currently I make an ajax request (every interval) from a view to get a response from a controller and update view element accordingly. Is there a way to FLIP it other way around? That is to have the listener on the View and controller would fire an event to update the view?. any examples greatly appreciated.
thanks
Currently I make an ajax request (every interval) from a view to get a
Share
Sure, see SignalR
https://github.com/SignalR/SignalR
This is a pretty cool project that allows the server side pushes.
You could also investigate WebSockets, which SignalR didn’t use as it was prior to WS, however I think its being rewritten (if not already) to use WebSockets as they are now standard.