dart-lang / web_socket_channel

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

How to get readyState from WebSocketChannel? #322

Open shanelau opened 8 months ago

shanelau commented 8 months ago

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

How should I get the current connection status?