Skip to main content
Module

x/netzo/deno.d.ts>MessagePort#postMessage

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
method MessagePort.prototype.postMessage
import { MessagePort } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";

Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.

Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.

Parameters

message: any
transfer: Transferable[]

Parameters

message: any