WebSocket service for Angular.js