WebSocket service for AngularJS.