Skip to content

Commit 0d2903c

Browse files
authored
Update grpc.md
Add a hint that developer can automatically generate proto interface by a third package, which will help me a lot if I had read it at the first time.
1 parent f1ff842 commit 0d2903c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/microservices/grpc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ interface HelloResponse {
395395
}
396396
```
397397

398+
> info **Hint** The proto interface can be automatically generated by [ts-proto](https://github.com/stephenh/ts-proto), you can read more from [here](https://github.com/stephenh/ts-proto/blob/main/NESTJS.markdown).
399+
398400
#### Subject strategy
399401

400402
The `@GrpcStreamMethod()` decorator provides the function parameter as an RxJS `Observable`. Thus, we can receive and process multiple messages.

0 commit comments

Comments
 (0)