diff --git a/packages/lib/src/subscriptions.ts b/packages/lib/src/subscriptions.ts index 1f6c149e..eb82e02e 100644 --- a/packages/lib/src/subscriptions.ts +++ b/packages/lib/src/subscriptions.ts @@ -110,15 +110,17 @@ export class SubscriptionRequest { } } +type EventData = { + subscriptionUpdate?: SubscriptionRequestHandler, + subscriptions: Map, onceClose: () => void }>, +}; + /** * A class component to handle incoming subscription requests and offers a method to broadcast events to subscribers * After creation, no other handler can be registered for SubscriptionRequest on the controller */ export class SubscriptionController { - _events = new Map, - subscriptions: Map, onceClose: () => void }>, - }>(); + _events = new Map(); constructor( private controller: any, // Controller | Link