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

Add a better API for managing the client's connection state #15

Open
jneem opened this issue Jan 10, 2025 · 0 comments
Open

Add a better API for managing the client's connection state #15

jneem opened this issue Jan 10, 2025 · 0 comments

Comments

@jneem
Copy link
Member

jneem commented Jan 10, 2025

The protocol is stateful. From the client's end, you

  • send a request
  • get back the stderr message stream
  • if there wasn't an error, get the response

Our client supports all these steps, but it isn't easy to figure out how to put them together. Also, there's some unnecessary boilerplate involved in dealing with the stderr messages. We can keep the API that we have right now, but we should also add a friendlier and more discoverable layer on top. See also #9

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

1 participant