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

fix When unsubscribe From SSE the _retryConnection method must stop #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

soufianebenyaala
Copy link

No description provided.

@@ -23,6 +23,7 @@ class SSEClient {
required Map<String, String> header,
Map<String, dynamic>? body}) {
print('---RETRY CONNECTION---');
if (!_streamController.isClosed)
Copy link
Owner

Choose a reason for hiding this comment

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

@soufianebenyaala I have removed the static _steamController causing the limitation with the access to multiple stream listeners. But this is a good suggestion. I would suggest changing the reference from _streamController to streamController.

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.

2 participants