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

Getting HTTP requests passed back/forth with broker #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

BryanFauble
Copy link
Owner

Problem:

  1. The logic that was in place could send the initial subscription to the kit broker, however, after that the connection would die since no additional messages were queued up to be sent.
  2. I did not have logic in place to listen for messages from the broker

Solution:

  1. Implement the GRPC python client code for their AsyncIO implementation.
  2. Hard coding in some testing values in this code that will be extracted out to dynamic configuration.
  3. Adding in pre-commit and tidy up the code a tiny bit.
  4. Create a request handler in python that takes in a MatchedEvent coming from the broker, generated a response Event, and sends that back to the broker.

Testing:

  1. I tested a full round trip with this logic: cURL -> httpsrv -> broker -> python code -> broker -> httpsrv -> terminal/cURL

image

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

Successfully merging this pull request may close these issues.

1 participant