dart-lang / web_socket_channel

StreamChannel wrappers for WebSockets.
https://pub.dev/packages/web_socket_channel
BSD 3-Clause "New" or "Revised" License
425 stars 112 forks source link

How to get readyState from WebSocketChannel? #322

Open shanelau opened 10 months ago

shanelau commented 10 months ago

When the server closes the connection, the client does not receive any error.

How should I get the current connection status?