grpc-web-client icon indicating copy to clipboard operation
grpc-web-client copied to clipboard

feat: Implement tower-service::Service instead of GrpcService

Open andoriyu opened this issue 3 years ago • 1 comments

InterceptedService requires that client implement Service trait from tower-service rather than GrpcService from tonic for some reason.

GrpcService has blanked implementation for anything that implements Service with “correct” bounds.

Current implementation in grpc-web-client prevents using it with interceptor due to that. This PR address that.

Verified that change has no regression on my private project.

andoriyu avatar Mar 12 '22 23:03 andoriyu

I've created a crate based on this with updated dependencies: https://crates.io/crates/tonic-web-wasm-client Also, in tonic-web-wasm-client, Client implements Service instead of GrpcService.

devashishdxt avatar May 25 '22 15:05 devashishdxt