We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73370b4 commit fdad4d2Copy full SHA for fdad4d2
doc/api/worker_threads.md
@@ -319,6 +319,9 @@ listeners are attached.
319
320
This method exists for parity with the Web `MessagePort` API. In Node.js,
321
it is only useful for ignoring messages when no event listener is present.
322
+Node.js also diverges in its handling of `.onmessage`. Setting it will
323
+automatically call `.start()`, but unsetting it will let messages queue up
324
+until a new handler is set or the port is discarded.
325
326
### port.unref()
327
<!-- YAML
0 commit comments