| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 73370b4 commit fdad4d2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -319,6 +319,9 @@ listeners are attached. | |||
| 319 | 319 | ||
| 320 | 320 | This method exists for parity with the Web `MessagePort` API. In Node.js, | |
| 321 | 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. | ||
| 322 | 325 | ||
| 323 | 326 | ### port.unref() | |
| 324 | 327 | <!-- YAML | |
| Back | FazBrowse Home | New Git URL |
0 commit comments