Skip to main content
BroadcastChannel.prototype.onmessage - worker_threads - Node documentation
property BroadcastChannel.prototype.onmessage

Usage in Deno

import { BroadcastChannel } from "node:worker_threads";

Invoked with a single `MessageEvent` argument when a message is received.

Type

(message: unknown) => void
Back to top