dart-lang / dart-lang/http

[Web] headers in HtmlWebSocketChannel?

Open
#1,555 1 comment 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

Is there any way to provide `headers` to an `HtmlWebSocketChannel`? Right now it seems that only `url` and `protocols` are available right now.

I'm assuming this is because `dart:html` WebSocket doesn't allow you to do that, and I think https://github.com/flutter/flutter/issues/39998 is the right place to ask about this, but is there some other thing that I'm missing?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the HtmlWebSocketChannel API and the dart:html WebSocket limitation described in the issue. Then read the linked Flutter issue 39998 to determine whether header support belongs upstream; done would require a confirmed, supported way to provide headers or a clear explanation that the platform cannot do so.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
networking, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.