Service wrapper for angular and socket.io