Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.webworker.d.ts>postMessage

A modern runtime for JavaScript and TypeScript.
Go to Latest
function postMessage
import { postMessage } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.webworker.d.ts";

Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.

Parameters

message: any
transfer: Transferable[]

Parameters

message: any