WebSocket Service for Angular.JS