Not bidirectional streaming note
eufat opened this issue · 3 comments
eufat commented
If it a bidirectional streaming system, the proto file should be like this:
service ChatServer {
// This bi-directional stream makes it possible to send and receive Notes between 2 persons
rpc ChatStream (stream Note) returns (stream Note);
}
melledijkstra commented
@eufat You are probably right, although I might have had issues doing it this way (don't remember though, been a while). Will look into it when I have time.
entrehuihui commented
run python -m grpc_tools.protoc -I=proto/ --python_out=proto/ --grpc_python_out=proto/ proto/chat.proto generate import chat_pb2 as chat__pb2. not from . import chat_pb2 as chat__pb2
jai-dewani commented
Yes, I am also having issues working with truly bidirectional streams with gRPC in python.
Especially having problem running two separate async loops for getting messages and sending messages in a single method