summaryrefslogtreecommitdiff
path: root/doc/api/worker_threads.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/worker_threads.md')
-rw-r--r--doc/api/worker_threads.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md
index 8c4c5b3854..7de28b99e4 100644
--- a/doc/api/worker_threads.md
+++ b/doc/api/worker_threads.md
@@ -276,7 +276,7 @@ if (isMainThread) {
## Class: `BroadcastChannel extends EventTarget`
<!-- YAML
-added: REPLACEME
+added: v15.4.0
-->
> Stability: 1 - Experimental
@@ -311,7 +311,7 @@ if (isMainThread) {
### `new BroadcastChannel(name)`
<!-- YAML
-added: REPLACEME
+added: v15.4.0
-->
* `name` {any} The name of the channel to connect to. Any JavaScript value
@@ -319,14 +319,14 @@ added: REPLACEME
### `broadcastChannel.close()`
<!-- YAML
-added: REPLACEME
+added: v15.4.0
-->
Closes the `BroadcastChannel` connection.
### `broadcastChannel.onmessage`
<!-- YAML
-added: REPLACEME
+added: v15.4.0
-->
* Type: {Function} Invoked with a single `MessageEvent` argument
@@ -334,7 +334,7 @@ added: REPLACEME
### `broadcastChannel.onmessageerror`
<!-- YAML
-added: REPLACEME
+added: v15.4.0
-->
* Type: {Function} Invoked with a received message cannot be
@@ -342,14 +342,14 @@ added: REPLACEME
### `broadcastChannel.postMessage(message)`
<!-- YAML
-added: REPLACEME
+added: v15.4.0
-->
* `message` {any} Any cloneable JavaScript value.
### `broadcastChannel.ref()`
<!-- YAML
-added: REPLACEME
+added: v15.4.0
-->
Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed
@@ -359,7 +359,7 @@ will have no effect.
### `broadcastChannel.unref()`
<!-- YAML
-added: REPLACEME
+added: v15.4.0
-->
Calling `unref()` on a BroadcastChannel will allow the thread to exit if this