assistant-sdk-cpp icon indicating copy to clipboard operation
assistant-sdk-cpp copied to clipboard

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

Open maimang9 opened this issue 5 years ago • 2 comments

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!

maimang9 avatar Dec 31 '19 08:12 maimang9

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

Fleker avatar Jan 02 '20 18:01 Fleker

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!

maimang9 avatar Jan 09 '20 09:01 maimang9