Skip to content

Conversation

@JamieSinn
Copy link
Member

No description provided.

@JamieSinn JamieSinn enabled auto-merge (squash) October 8, 2024 15:28
self.handleerror = handleerror
self.handlemessage = handlemessage

self.read_thread = threading.Thread(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does the threading here work?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SSE Manager itself creates a thread managed by it - when a new url is found - it creates/updates the current thread used for processing the events incoming.

This is mostly required due to the eventsource client must run in its own thread - and you must read from the same thread that you started the client in.

@JamieSinn JamieSinn merged commit d98b58a into main Oct 8, 2024
10 checks passed
@JamieSinn JamieSinn deleted the jamie/sse branch October 8, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants