socketio / socketio/socket.io

http2 agent

Open
#5,086 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

package:engine.io-client
Dominant language
TypeScript
Stars
63.2k
Forks
10.3k
Avg merge
11d 20h
Merged PRs (30d)
2

Description

You want to:
  • [] report a bug
  • request a feature
Current behaviour

In the docs:
agent (http.Agent): http.Agent to use, defaults to false (NodeJS only)

Expected behaviour

It would be really great to have to possibility to use the proxies of this lib for http2
https://github.com/szmarczak/http2-wrapper

Actually we have this error if we try:

TypeError [ERR_INVALID_ARG_TYPE]: The "options.agent" property must be one of Agent-like Object, undefined, or false. Received an instance of m

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 the documented agent (http.Agent) option and reproduce the reported error using the linked http2-wrapper library. Trace how proxy agents are accepted for HTTP requests, then define support for HTTP/2 proxies and update the documentation once the example works without the invalid-agent error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.