Mock for AngularJS WebSocket service.