Replace $http in an AngularJS application with WebSocket transport.