Skip to content

feat: Add FDv2 data system support to the Electron SDK - #2228

Draft
joker23 wants to merge 1 commit into
skz/electron-sdk-next-ipc-namespacefrom
skz/electron-sdk-next-fdv2
Draft

joker23 wants to merge 1 commit into
skz/electron-sdk-next-ipc-namespacefrom
skz/electron-sdk-next-fdv2

Conversation

@joker23

@joker23 joker23 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the dataSystem option (FDv2, early access) to the Electron SDK with the desktop defaults: streaming, with automatic mode switching off.

  • setConnectionMode(mode) sets an override that wins over network changes. setConnectionMode() without a mode clears it, and the SDK returns to the configured mode, and to network switching when it is enabled. Calls run in order, so the flush before offline cannot interleave with a later call.
  • setNetworkAvailability feeds the data system's network state when automatic network switching is enabled (automaticModeSwitching: true or { type: 'automatic', network: true }). Otherwise the SDK ignores it.
  • FDv2 requests carry the secure mode hash, the same as the default data source.
  • initialConnectionMode is ignored with a warning when dataSystem is set.

Additional context

Two cases need the shared fix in #2219: an override that matches the foreground mode after a network-driven offline, and a clear that should go back to following the network. Their regression tests join this layer after #2219 merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant