dart-lang / dart-lang/http

Missing import

Open
#1,553 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

package:web_socket_channel
Dominant language
Dart
Stars
1.1k
Forks
419
Avg merge
4d 14h
Merged PRs (30d)
8

Description

I am a flutter user and I am trying to use this package for Websocket communications.
When trying out the codes in the README.md, Android Studio reports that `IOWebSocketChannel` is not defined anywhere. After digging, I found out that `IOWebSocketChannel` is declared in `libs/io.dart` and `io.dart` is not exported in `libs/web_socket_channel.dart`.

I need to use `IOWebSocketChannel` instead of `WebSocketChannel` for the authentication headers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with README.md to reproduce the missing IOWebSocketChannel reference, then inspect libs/io.dart and libs/web_socket_channel.dart to compare their declarations and exports. Confirm that the README example can resolve IOWebSocketChannel and that it can be used for WebSocket authentication headers.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.