Send cleanup messages on disconnect

This commit is contained in:
James Babcock committed 2026-08-16 21:01:20 -07:00
1 parent f87c8e898b
commit b6785e5a5a
6 files changed
+202 -33

No files matched your search

+9
View File
@@ -543,6 +543,15 @@ export class FaceclawCommunicatorBridge {
return this.enqueueJavaCall(() => Boolean(this.communicator.sendShutdown(exitMode)));
}
/**
* Ask CFW mode 11 to release all custom-session state. On success this must
* remain the final Faceclaw message before close(); false requests the legacy
* shutdown/release fallback for older firmware.
*/
async sendCfwCleanup(): Promise<boolean> {
return this.enqueueJavaCall(() => Boolean(this.communicator.sendCfwCleanup()));
}
/**
* End only the EvenHub page/session, leaving both arm BLE connections and
* their async notification subscriptions alive.