I'm writing an app which leverages Ember.js, with Ember Data, and Socket.IO through Node.js. I'm trying to figure out the best way to receive data from a socket response and load it into my Ember Data store, such as this:
window.socket = io.connect('http://localhost');
socket.on('action here', function(response) {
// how to load "response" JSON data into Ember Data store from here...?
});
Is the best (or only good) solution to write a custom DS.Adapter? Or is there another good, maintainable way to accomplish this?