stream-chat-flutter
stream-chat-flutter copied to clipboard
In Flutter Web in debug mode after hot restart the web-socket connection isn't disposed
Which packages are you using?
stream_chat_flutter
On what platforms did you experience the issue?
Web
What version are you using?
stream_chat_flutter: 7.2.2
What happened?
Flutter Web doesn't dispose the resources during the hot restart which leads to several open web socket connections in the background. Source: https://github.com/flutter/flutter/issues/69949
Steps to reproduce
1. Run any real stream chat project in Flutter Web
2. Open the Chrome developer tools in network tab and filter by web socket connections
3. Start any connection with the stream chat
4. Press the Flutter's "Hot restart" button
5. Open the chat again if it didn't automatically which creates the web socket
6. See two "pending" web socket connections in the developer tools
7. If you hot restart the app again — there are three web socket connections now
Supporting info to reproduce
No response
Relevant log output
No response
Flutter analyze output
No response
Flutter doctor output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct