feat(companion): add platform dispose lifecycle helper

This commit is contained in:
William Valentin
2026-02-16 19:07:08 -08:00
parent fee32e8abe
commit fc0dd8b73a
4 changed files with 38 additions and 0 deletions
+12
View File
@@ -95,6 +95,10 @@ export class MacOSCompanionClient {
this.runtime.disconnect();
}
dispose(): void {
this.runtime.dispose();
}
register(): Promise<NodeRegisterResult> {
return this.runtime.registerNode({
nodeId: this.nodeId,
@@ -231,6 +235,10 @@ export class IOSCompanionClient {
this.runtime.disconnect();
}
dispose(): void {
this.runtime.dispose();
}
register(): Promise<NodeRegisterResult> {
return this.runtime.registerNode({
nodeId: this.nodeId,
@@ -367,6 +375,10 @@ export class AndroidCompanionClient {
this.runtime.disconnect();
}
dispose(): void {
this.runtime.dispose();
}
register(): Promise<NodeRegisterResult> {
return this.runtime.registerNode({
nodeId: this.nodeId,