Examples
Examples available in this repository.
This repository includes these examples:
- web-worker-example
- shared-worker-example
- service-worker-example
- worker-transfer-example
- browser-extension-example
- iframe-example
Available examples in this docs site
This docs site currently includes pages for:
- Web Worker
- Browser Extension
- Iframe
These pages are based on the real example source code in this repository.
Examples in this repository
Web Worker
Communication between the main page and a Web Worker.
Shared Worker
Communication through a Shared Worker example in the repository.
Service Worker
Communication through a Service Worker example in the repository.
Worker Transfer
An example focused on transferable objects and transfer-enabled communication.
Browser Extension
Communication across browser extension contexts.
iframe
Communication between the main page and an iframe.
Repository source
See the repository examples directory for the full set of example projects:
- examples/web-worker
- examples/shared-worker
- examples/service-worker
- examples/worker-transfer
- examples/browser-extension
- examples/iframe
Next steps
Open one of the documented examples in this section:
- Web Worker
- Browser Extension
- Iframe