Skip to content

Interface: StructuredSerializeOptions ​

Defined in: types/desktop-engine.d.ts:5042

Properties ​

transfer? ​

ts
optional transfer?: Iterable<ArrayBuffer | MessagePort, any, any>;

Defined in: types/desktop-engine.d.ts:5050

ArrayBuffers and MessagePorts to move rather than copy. A transferred ArrayBuffer is detached on macOS 14.4 and later (as in browsers) and still usable before. One the engine has already read (given to WebGL, a canvas, crypto, the file system, audio or systemAudio.getBands(), a WebSocket or a BroadcastChannel, or an ImageData's pixels) stays usable on macOS 14.4 and later too, while the web preview detaches it: don't use a buffer once it's transferred. A transferred MessagePort is the same object on the other side

The SDK is released under the Apache License 2.0