Angular Applications with Web Worker and WebSocket

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:

  1. How to configure Web Worker with Angular CLI and Webpack
  2. How to unit test WebSocket with mock-socket library

Try this demo:

  1. Install required NodeJS modules
$ npm install
  1. Do unit tests
$ ng test --single-run --code-coverage
  1. Run demo
$ npm start

References:

Configure Web Worker with Angular CLI and Webpack

Javascript mocking library for websockets and socket.io