forked from Blendman974/faceclaw
Send cleanup messages on disconnect
This commit is contained in:
1 parent
f87c8e898b
commit
b6785e5a5a
6 files changed
+202
-33
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user