feat(companion): allow platform disconnect code and reason

This commit is contained in:
William Valentin
2026-02-16 23:28:54 -08:00
parent 44b686da9c
commit 95df7cd445
5 changed files with 34 additions and 10 deletions
+6 -6
View File
@@ -110,8 +110,8 @@ export class MacOSCompanionClient {
return this.runtime.connected;
}
disconnect(): void {
this.runtime.disconnect();
disconnect(code?: number, reason?: string): void {
this.runtime.disconnect(code, reason);
}
dispose(code?: number, reason?: string): void {
@@ -388,8 +388,8 @@ export class IOSCompanionClient {
return this.runtime.connected;
}
disconnect(): void {
this.runtime.disconnect();
disconnect(code?: number, reason?: string): void {
this.runtime.disconnect(code, reason);
}
dispose(code?: number, reason?: string): void {
@@ -666,8 +666,8 @@ export class AndroidCompanionClient {
return this.runtime.connected;
}
disconnect(): void {
this.runtime.disconnect();
disconnect(code?: number, reason?: string): void {
this.runtime.disconnect(code, reason);
}
dispose(code?: number, reason?: string): void {