socketio / socketio/socket.io

localAddress with family option

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

Nobody has claimed this yet.

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

Description

Note: for support questions, please use one of these channels: stackoverflow or slack

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

Using localAddress has no effect on ipv6

Steps to reproduce (if the current behaviour is a bug)

use localAddress with ipv6

Expected behaviour
Setup
  • OS: Ubuntu 18.4
  • browser: node.js
  • engine.io version: 3.4.0
Other information (e.g. stacktraces, related issues, suggestions how to fix)

i haven't tested with ws protocol but looking at the code base it accepts all http & https options
xmlhttprequest-ssl does not include localAddress and family so a pull request would be needed to add the two otions in order to make it work and possibly make it node.js only?

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

The issue points to the HTTP and HTTPS option paths and the xmlhttprequest-ssl dependency, which lacks localAddress and family support. Inspect those paths and compare them with the ws protocol handling, then reproduce the IPv6 case on Ubuntu. Done means localAddress works for IPv6 where supported and the Node.js-only scope is clear.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.