minigame-std
    Preparing search index...

    Interface ConnectSyncChannelOptions

    Options for SyncChannel.connect.

    2.0.0

    interface ConnectSyncChannelOptions {
        connectTimeout?: number;
        opTimeout?: number;
        sharedBufferLength?: number;
    }
    Index
    connectTimeout?: number

    The 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.

    10000 (10 seconds)

    2.1.0

    opTimeout?: number

    The timeout for each synchronous operation in milliseconds. If an operation takes longer than this, a TimeoutError is thrown.

    1000 (1 second)

    sharedBufferLength?: number

    The 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.

    1048576 (1MB)