How to close a client connection? #1024
Answered
by
Tatametheus
Tatametheus
asked this question in
Q&A
-
I create a "shared client"(not channel) in the app(tauri) that connects to go backend server. An action(like create_ client method) create the shared client and later another action(start_receive_stream) call a server side stream. The question is How can I close the server stream in tonic? In go, I think I can call close to close the connection after dialing, but I can't find the equivalent method in tonic client.
By the way, is it ok to just create one client? or should i create a client every time? |
Beta Was this translation helpful? Give feedback.
Answered by
Tatametheus
Jun 23, 2022
Replies: 1 comment 2 replies
-
I alreay fixed it |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Tatametheus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I alreay fixed it