I have connection to socket.io server in my router.
afterModel: function () {
var self = this;
socket.on('message', function (message) {
// adding message to Ember.DS
}
}
Ember appends messages to div, but when scroll is become to show I need to makes Ember scrolls it down. I can do it with jQuery like that
Ember.$('.messages-area').scrollTop(1000000);
But where do I need to bind event listener for this action?