grpc / grpc/grpc-web

GRPC within service worker / web worker

Open
#587 11 comments 5 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.