loopback4-extension-grpc
loopback4-extension-grpc copied to clipboard
Add streamings and TLS
Description
While working on a work project, I had to implement gRPC in Loopback 4. After implementing streams and TLS, I thought it might be useful to others. I am sorry for not following all the rules to contribute to Loopback 4, but I am trying ! I am of course open to suggestions.
This PR adds :
- Client streaming calls
- Server streaming calls
- Bidirectional streaming calls
- Server TLS
- Server and client mTLS
Also, I have updated the protoc binaries, and switched to proto-ts plugin to generate Typescript interfaces.
I have also added tests to cover all changes, but editing your hosts file is needed to run both TLS and mTLS tests.
Finally, I tried to add docs for all these implementations.
Note: most packages have been updated too.
Related issues
- connect to #15
- connect to #19
- connect to #21 (in tests)
Checklist
- [x] New tests added or existing tests modified to cover all changes
- [x] Code conforms with the style guide