This project shows how Angular services and RxJS Observables can be used with a WebSockets server to stream data from the server to the client.
-
Install Node.js
-
Install the Angular CLI:
npm install -g @angular/cli -
Run
npm installto install app dependencies -
Run
ng buildto build the Angular application code -
Run
npm startto start the server -
Navigate to
http://localhost:8080to view the app