New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socket:network doesn't work in web worker #962
Comments
I tried adding the object manually, seems to pass that line, but then fails at Line 253 in ddaf509
With So I'm guessing worker support is not gonna be a thing for now. |
Unfortunately
PS. Master builds fine |
dev should work again :) |
Dev does work now, thanks! |
@heapwolf it looks like app crashed after a short time as well |
Inside the web worker,
globalThis.process
isundefined
, and trying to accesswindow
is an error.https://github.com/socketsupply/socket/blob/ddaf5094c1cac6b2a91e4381554c6ff029be6e55/api/stream-relay/index.js#L36C46-L36C52
Is this something that should be supported, or should the app manually copy over the values from
window.__args
to the worker'sglobalThis.process
before importingsocket:network
?The text was updated successfully, but these errors were encountered: