GRPC within service worker / web worker
Open
enhancement
feature/fetch
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 802
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 5
Description
Im trying to run GRPC from inside a service worker. It works fine from inside the main application thread and only throws an error from inside a service worker.
````typescript
const media = new MediaServiceClient(process.env.VUE_APP_GRPC)
media.index(pagination, headers)
````
Error:
````
Uncaught (in promise) TypeError: e.serializeBinary is not a function
````
Im assuming this is due to how GRPC communicates to the backend services and assuming this is not possible to do at the moment?
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.