node.js - share sockets between processes

后端 未结 2 477
醉酒成梦
醉酒成梦 2021-01-03 00:05

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

相关标签:
2条回答
  • 2021-01-03 00:07

    You probably want to take a look at hook.io

    hook.io is a distributed EventEmitter built on node.js. In addition to providing a minimalistic event framework, hook.io also provides a rich network of hook libraries for managing all sorts of input and output.

    0 讨论(0)
  • 2021-01-03 00:15

    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 讨论(0)
提交回复
热议问题