learning-nodejs icon indicating copy to clipboard operation
learning-nodejs copied to clipboard

How node implement MessageChannel Api

Open nextfool opened this issue 4 years ago • 2 comments

Hi @danbev,

Can you explain a little bit on how node implement the "MessageChannel" api?

I googled on this topic and seems few people talked about the api implementation, only its usage.

I checked the "node_messaging.h" as well as "node_messaging.cc", and knew what a message channel/port looks like, but I can't figure out how node uses those data structure to implement a real message channel, by that I mean being ware of /keeping tracking of the communications between contexts(a parent worker and a child worker, many siblings workers etc.)

Hope you don't mind I ask a question here.

Thank you.

nextfool avatar Dec 02 '21 10:12 nextfool

Hi @nextfool

I think it is great that you are digging into Node.js and I would have liked to help, but my time is limited and I'm currently focusing on other topics. So I'm afraid I won't be able to answer questions.

danbev avatar Dec 02 '21 11:12 danbev

Hi @danbev , Thank you for the reply. Maybe in the future you can focus on this topic. Look forward to your other articles.

nextfool avatar Dec 03 '21 15:12 nextfool