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

Not bidirectional streaming note #1

Open
eufat opened this issue Mar 28, 2019 · 3 comments
Open

Not bidirectional streaming note #1

eufat opened this issue Mar 28, 2019 · 3 comments

Comments

@eufat
Copy link

eufat commented Mar 28, 2019

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
Copy link
Owner

@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
Copy link

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
Copy link

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

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

4 participants