python-grpc-chat icon indicating copy to clipboard operation
python-grpc-chat copied to clipboard

Not bidirectional streaming note

Open eufat opened this issue 6 years ago • 3 comments
trafficstars

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);
}

eufat avatar Mar 28 '19 05:03 eufat

@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.

melledijkstra avatar Apr 16 '19 07:04 melledijkstra

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

entrehuihui avatar Aug 25 '21 08:08 entrehuihui

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

jai-dewani avatar Sep 21 '21 20:09 jai-dewani