Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we continue to communicate with the assistant in a socket #68

Open
maimang9 opened this issue Dec 31, 2019 · 2 comments
Open

How do we continue to communicate with the assistant in a socket #68

maimang9 opened this issue Dec 31, 2019 · 2 comments

Comments

@maimang9
Copy link

Can we install a socket connection and make only one SSL handshake and communicate with the assistant multiple times?
How do we achieve this?

Best regards! Thanks!

@Fleker
Copy link
Collaborator

Fleker commented Jan 2, 2020

Communication happens over gRPC. Multiple connections should be possible with the same gRPC channel.

@maimang9
Copy link
Author

maimang9 commented Jan 9, 2020

In run_assistant_text.cc
how can we use ret = stream->Write(request); continue write request without reconstruct the stream with : std::shared_ptr<ClientReaderWriter<AssistRequest, AssistResponse>> stream(std::move(assistant->Assist(&context))); ? as construct the stream cost too much time.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants