feat(companion): allow platform disconnect code and reason
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user