Replies: 1 comment
-
Using a MessageChannel like in this example worked. 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I'm trying to send messages from my worker to the parent using parentPort.postMessage, but each time I send a message I got the error:
I'm sending the message this way:
I have a listener on my pool ready to handle those messages but it seems it's never called:
pool.on('message', handleMessage)
I'm using node v16.15.1.
I'm not sure what exactly means "Unexpected message on Worker".
Beta Was this translation helpful? Give feedback.
All reactions