grpc-web-client
grpc-web-client copied to clipboard
feat: Implement tower-service::Service instead of GrpcService
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.
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.