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

Make multiple connections possible #43

Open
mjohlke opened this issue Jan 23, 2025 · 1 comment
Open

Make multiple connections possible #43

mjohlke opened this issue Jan 23, 2025 · 1 comment

Comments

@mjohlke
Copy link

mjohlke commented Jan 23, 2025

As of now and if I am not mistaken this package can only handle one connection at a time. If I understood the code correctly this is due to the http.Client being a static variable => you can have one instance only when it is static.

May a solution be to transform the static type and functions to class-types ans class-functions so that we can have multiple instances of SSEClient each of which handling one connection?

@mjohlke
Copy link
Author

mjohlke commented Jan 24, 2025

looks like #27 is adressing this already?

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