Better Socket.IO integration with AngularJS