An angularJS service wrapping socket.io