Example of SignalR interaction within AngularJS service.