Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterpeterparker/icwebworker
https://github.com/peterpeterparker/icwebworker
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/peterpeterparker/icwebworker
- Owner: peterpeterparker
- Created: 2022-10-08T13:45:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-09T11:39:12.000Z (about 2 years ago)
- Last Synced: 2024-10-16T20:59:10.720Z (27 days ago)
- Language: JavaScript
- Size: 161 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Poll canister on the IC with web workers
Sample repo for upcoming blog post.
## How to
```
git clone https://github.com/peterpeterparker/icwebworker
cd icwebworker
npm ci
dfx start --background
dfx deploy
```Once deployed, access your canister locally with `http://.localhost:8000/`.
### Note
Do not access this canister locally with query param `http://127.0.0.1:8000/?canisterId=`.
Using a param would lead to following issue in the browser:
> Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://127.0.0.1:8000/vendors-node_modules_dfinity_auth-client_lib_esm_index_js.index.js' failed to load.