Skip to content
garevna edited this page Apr 27, 2021 · 7 revisions

dgtek-admin-dash

This app uses two web-workers:

  • admin.worker
  • map.worker

Each web-worker is responsible for the local database and AJAX-requests to the remote server.

To work correctly with web-worker the app has the controller.

Due to the app controller each component of the app can use the web-worker by calling the appropriate inherited methods. App controller will transform this method call to appropriate message for web-worker.

When web-worker responses on requests, the app controller converts this web-worker's message to the suitable app's event.

Clone this wiki locally