Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Using web3 inside a web worker #1774

Closed
26000 opened this issue Jul 13, 2018 · 1 comment
Closed

Using web3 inside a web worker #1774

26000 opened this issue Jul 13, 2018 · 1 comment

Comments

@26000
Copy link

26000 commented Jul 13, 2018

Is it possible? When i importScripts("web3.min.js") inside one, says Uncaught ReferenceError: Web3 is not defined when i try to call it. I tried browserify with webworkify, but it said Uncaught ReferenceError: window is not defined. So does web3 necessarily need window, which is inaccessible from a web worker context, or there's a workaround?

@nivida
Copy link
Contributor

nivida commented Aug 10, 2018

Please ask this question on https://ethereum.stackexchange.com/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants