dart-lang / dart-lang/http

Get connection state

Open
#1,551 0 comments 7 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.