Skip to content

dgram: add synchronous Socket connectSync()#63932

Open
guybedford wants to merge 1 commit into
nodejs:mainfrom
guybedford:dgram-connect-sync
Open

dgram: add synchronous Socket connectSync()#63932
guybedford wants to merge 1 commit into
nodejs:mainfrom
guybedford:dgram-connect-sync

Conversation

@guybedford

Copy link
Copy Markdown
Contributor

Follow-on to #63838 supporting a similar connectSync API for connect(2) compat.

In Node.js, connect() uses positional arguments so that signature is matched for the sync case here too, unlike bind which accepts an options bag.

Would be nice to include this with the bindSync release to ensure blanket compatibility.

//cc @jasnell @mcollina

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added dgram Issues and PRs related to the dgram subsystem / UDP. needs-ci PRs that need a full CI run. labels Jun 15, 2026
@guybedford guybedford force-pushed the dgram-connect-sync branch from d446c7a to cc1f517 Compare June 15, 2026 17:56
Signed-off-by: Guy Bedford <guybedford@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dgram Issues and PRs related to the dgram subsystem / UDP. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants