OptionalconnectThe timeout in milliseconds for establishing the connection itself
(worker startup, script load, and SyncChannel.listen() readiness).
If the worker does not signal readiness within this time, a
TimeoutError is returned. Distinct from opTimeout, which governs
individual sync operations after the channel is ready.
OptionalopThe timeout for each synchronous operation in milliseconds.
If an operation takes longer than this, a TimeoutError is thrown.
OptionalsharedThe size of the SharedArrayBuffer in bytes.
Larger buffers can handle larger file operations but consume more memory.
Must be a multiple of 4 and at least 256 bytes.
OptionalworkerHow the worker is loaded when worker is a URL or a string.
'classic' (default): new Worker(url)'module': new Worker(url, { type: 'module' }), required for worker scripts
that use import/export (i.e. most bundler output)Module workers need Chrome/Edge 80+, Firefox 114+, Safari 15+; build a classic
worker or pass your own Worker instance if you target older Firefox.
Ignored when a Worker instance is passed, since it is already configured.
Options for
SyncChannel.connect.Since
2.0.0