spring mvc - Server Sent Event to update collection in Emberjs application on Java EE/jetty -
the application has widget list of items keep changing based on events on server side. server has push these changes browser. the application uses emberjs javascript mvc framework , have managed implement basic update of collection following stock ticker example. ttp://www.xeqtit.com/blog/2012/04/creating-a-stock-ticker-table-using-ember-js. i trying replace following stub/mock calls actual rest calls server. setinterval(function() { quotes.quotescontroller.processchange({ "code": "aapl", "value": (119*math.random()).tofixed(2), "bid": (120*math.random()).tofixed(2), "offer": (118*math.random()).tofixed(2) }); }, 3*1000); replacing with, var source = new eventsource('data/quotes.json'); source.onmessage = function(event){ var data = event.data; quotes.quotescontroller....