Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/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.1/cli/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