Skip to content

Bidirect client example #1284

Closed Answered by smaye81
blip-machine418 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there. For an example of bidirectional streaming with the promise client, you can check our Connect conformance tests here: https://github.com/connectrpc/connect-es/blob/main/packages/connect-conformance/src/promise-client.ts#L185

The conformance tests are a suite of tests that verify conformance with the Connect protocol. The linked code above shows an example of bidirectional streaming, but in that file you can find examples of all the various kinds of RPCs. Just keep in mind that bidirectional streaming is not currently possible from a browser. If you are implementing this for a browser environment, you will be limited to unary or server-streaming requests.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nicksnyder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants