feat(companion): add platform dispose lifecycle helper
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user