mu-haskell/grpc
Akshay Mankar 0f4942b1c4 [grpc-client] Handle bidirectional streams correctly (#314)
This is a breaking change: The handler for bidirectional streams is returns two
conduits now, instead of one. This enables the client to correctly tackle the
concurrent nature of the client to server stream and the server to client
stream.

Each response in the server-to-client stream is no longer wrapped in GRpcReply,
any error during parsing the stream is thrown in IO.

Other connection related errors are returned in the result value of the conduit
corresponding to the server-to-client Conduit.

Note: The client didn't and still doesn't handle any errors that the server
might indicate using headers or trailers, e.g. grpc-status or the HTTP status
code. This commit also adds TODO comments to handle these.
2021-06-01 13:32:17 +02:00
..
client [grpc-client] Handle bidirectional streams correctly (#314) 2021-06-01 13:32:17 +02:00
common Unions in GraphQL (#270) 2021-01-07 14:55:32 +01:00
server [grpc-server] Close bidirectional streaming requests correctly (#312) 2021-06-01 13:31:23 +02:00