Explain how to catch errors on 'Work with WebSockets' page #8765
Labels
a.cookbook
Relates to a cookbook recipe or guide
d.enhancement
Improves docs with specific ask
e2-days
Effort: < 5 days
p2-medium
Necessary but not urgent concern. Resolve when possible.
t.networking
Relates to networking within an app
Page URL
https://docs.flutter.dev/cookbook/networking/web-sockets/
Page source
https://github.com/flutter/website/tree/main/src/cookbook/networking/web-sockets.md
Describe the problem
Connection errors while establishing a connection with WebSocketChannel.connect() can't be handeled with try/catch blocks.
Expected fix
No response
Additional context
Establishing connections to a none available server causes my app to crash even though I am trying to catch the error in a try/catch block
The text was updated successfully, but these errors were encountered: