This project was generated with Angular CLI version 1.3.2. and aims to provide developers a demo of implementation of Angular applications with Webworker and WebSocket. Two crucial parts are:
- How to configure Web Worker with Angular CLI and Webpack
- How to unit test WebSocket with mock-socket library
Try this demo:
- Install required NodeJS modules
$ npm install
- Do unit tests
$ ng test --single-run --code-coverage
- Run demo
$ npm start
References: