postMessage

fun postMessage(message: JsAny?, transfer: ReadonlyArray<Transferable>)(source)

The postMessage() method of the transfers ownership of objects to other browsing contexts.

MDN Reference


fun postMessage(message: JsAny?, options: StructuredSerializeOptions = definedExternally)(source)