Socket.io component for AngularJS