Replace the AngularJS $http service with a WebSocket transport layer.