feat(companion): add platform event subscription count passthrough

This commit is contained in:
William Valentin
2026-02-16 19:33:55 -08:00
parent d3e571b728
commit 6a9796066b
4 changed files with 39 additions and 1 deletions
+12
View File
@@ -260,6 +260,10 @@ export class MacOSCompanionClient {
return this.runtime.listKnownEventNames();
}
get eventSubscriptionCount(): number {
return this.runtime.eventSubscriptionCount;
}
waitForAnyEvent<TData = unknown>(
eventNames: readonly string[],
options?: {
@@ -476,6 +480,10 @@ export class IOSCompanionClient {
return this.runtime.listKnownEventNames();
}
get eventSubscriptionCount(): number {
return this.runtime.eventSubscriptionCount;
}
waitForAnyEvent<TData = unknown>(
eventNames: readonly string[],
options?: {
@@ -690,6 +698,10 @@ export class AndroidCompanionClient {
return this.runtime.listKnownEventNames();
}
get eventSubscriptionCount(): number {
return this.runtime.eventSubscriptionCount;
}
waitForAnyEvent<TData = unknown>(
eventNames: readonly string[],
options?: {