service SampleService {
rpc BiDirectional(stream BiRequestMessage) returns (stream BiResponseMessage);
rpc PingPong(PPRequestMessage) returns (PPResponseMessage);
}
Scenario 1. call PingPong and then call BiDirectional(). BiRequestMessage not sent.
It works well. Server logs say got pingpong request and then say got bi-directional request.
Scenario 2. call BiDirectional() and then call PingPong. BiRequestMessage not sent.
Something wrong. Server logs say got pingpong request and then say got bi-directional request.
Scenario 3. call only BiDirectional() and BiRequestMessage not sent.
Server logs say nothing forever. the client channel onConnectionStateChangedListener also says nothing.
Scenario 4. call only BiDirectional() and send BiRequestMessage.
Server logs say nothing forever. client can send a message but server can't take requests and can't response. the client channel onConnectionStateChangedListener also says nothing.