我正在编写一个应用程序,它通过Node.js利用Ember.js,Ember Data和Socket.IO。我试图找出从插座响应接收数据,并将其加载到我的灰烬数据存储,如最好的方法:如何从Socket.IO响应中将数据加载到Ember数据中?
window.socket = io.connect('http://localhost');
socket.on('action here', function(response) {
// how to load "response" JSON data into Ember Data store from here...?
});
是写一个自定义的最好的(或唯一的好)解决方案DS.Adapter?或者还有另一种很好的,可维护的方法来完成这个?