hyperium / tonic

A native gRPC client & server implementation with async/await support.
https://docs.rs/tonic
MIT License
9.76k stars 997 forks source link

How can I send request from server to client? #1157

Closed sollhui closed 1 year ago

sollhui commented 1 year ago

Now I need to let the server send messages to the client actively. Do you have any specific examples ?Thanks.

davidpdrsn commented 1 year ago

You can use a server to client stream. See the guides in the examples folder for more info.

sollhui commented 1 year ago

The reason why I raised the question was that I did not find a specific path in examples folder,can you tell me where I can refer? @davidpdrsn

davidpdrsn commented 1 year ago

https://github.com/hyperium/tonic/blob/master/examples/routeguide-tutorial.md

sollhui commented 1 year ago

thanks