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

Using IOWebSocketChannel stream inside StreamBuilder causes its closing #78

Closed
Claus1 opened this issue Sep 14, 2019 · 0 comments
Closed

Comments

@Claus1
Copy link

Claus1 commented Sep 14, 2019

Such code causes immediate stream closing (the server reports) without any exceptions and messages:

serverChannel = IOWebSocketChannel.connect('ws://localhost:1234');
...

StreamBuilder(
                  stream: serverChannel.stream,
                  builder: (context, snapshot) => snapshot.data == null ? 
                    CircularProgressIndicator(): 
...

Without such using, serverChannel continues to work.

@Claus1 Claus1 closed this as completed Sep 15, 2019
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