Get connection state
Open
package:web_socket_channel
- Dominant language
- Dart
- Stars
- 1.1k
- Forks
- 419
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 8
Description
Get connection state in order to know if the socket could connect to an url.
in HTMLWebSocketChannel you only need to expose _webSocket.readyState attribute as:
int get readyState => _webSocket.readyState;
Contributor guide
Research direction
Start at HTMLWebSocketChannel and inspect how the underlying _webSocket is exposed. Verify the public readyState value mirrors the socket's readyState, then run the existing test suite or relevant channel tests if available; done means callers can read the connection state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100