Manual Instant Sync

You may want to disable automatic synchronization with Document Engine when using Instant. This requires setting the following changes to the PSPDFKit.Configuration object passed to PSPDFKit.load():

PSPDFKit.load({
  // ...other options
  instant: {
    clientsPresenceEnabled: false,
    listenToServerChangesEnabled: false
  },
  autoSaveMode: PSPDFKit.AutoSaveMode.DISABLED
})

[==

```es
return PSPDFKit.load({
    instant: {
        // Don't pull changes from Document Engine automatically.
        listenToServerChangesEnabled: false,
        // Disable clients presence tracking. `instance.connectedClients`
        // method and `instant.connectedClients.change` event won't be available.
        clientsPresenceEnabled: false
    },
    // Disable automatic saving of local changes.
    autoSaveMode: PSPDFKit.AutoSaveMode.DISABLED,
    ...
})
return PSPDFKit.load({
    instant: {
        // Don't pull changes from Document Engine automatically.
        listenToServerChangesEnabled: false,
        // Disable clients presence tracking. `instance.connectedClients`
        // method and `instant.connectedClients.change` event won't be available.
        clientsPresenceEnabled: false
    },
    // Disable automatic saving of local changes.
    autoSaveMode: PSPDFKit.AutoSaveMode.DISABLED,
    ...
})

You can then use PSPDFKit.Instance#save to sync changes manually whenever you want.

Read more about these options in our guides on automatic and manual syncing and listening for clients updates.