Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7218993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:33:45+00:00 2026-05-28T21:33:45+00:00

I´ve read that it´s possible to share sockets between processes. Is this also possible

  • 0

I´ve read that it´s possible to share sockets between processes. Is this also possible in Node.js?

I saw the cluster api in node.js, but that´s not what I´m looking for. I want to be able to accept a connection in one process, maybe send & read a bit, and after a while pass this socket to another fully independent node.js process.

I could already do this with piping, but I don´t want to do this, since it´s not as fast as directly reading/writing to the socket itself.

Any ideas?

Update
I found the following entry in the node.js documentation:

new net.Socket([options]) #
Construct a new socket object.

options is an object with the following defaults:

{ fd: null
  type: null
  allowHalfOpen: false
}
fd allows you to specify the existing file descriptor of socket. type specified underlying protocol. It can be 'tcp4', 'tcp6', or 'unix'. About allowHalfOpen, refer to createServer() and 'end' event.

I think it would be possible to set the “fd” property to the filedescriptor of the socket and then open the socket with that. But… How can I get the filedescriptor of the socket and pass it to the process that needs it?

Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T21:33:47+00:00Added an answer on May 28, 2026 at 9:33 pm

    This is not possible at the moment, but I’ve added it as a feature request to the node issues page.

    Update
    In the mean time, I’ve written a module for this. You can find it here: https://github.com/VanCoding/node-ancillary

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this repository that I'd like to share but not necessarily by putting
I have read in several places that it's possible to share the objects directory
I know that it is possible to read commands output with a pipe? But
I read that VS 2010 supports modelling projects in UML. Is it possible to
When I started iPhone development, I read somewhere that it's possible to attach a
I read somewhere (I can't remember where) that it is possible, in certain circumstances,
Is it possible to read the content of a file that has been selected
Is it possible to read binary MATLAB .mat files in Python? I've seen that
I was wondering if it was possible to read a text file that was
I read that a page which runs under an https connection cannot share an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.