Callable
- __call(data: { EventHub: { emit: any; on: any }; app: any; emit: (callback: any, data?: any) => Promise<void> }): any
-
Parameters
-
data: { EventHub: { emit: any; on: any }; app: any; emit: (callback: any, data?: any) => Promise<void> }
-
EventHub: { emit: any; on: any }
-
emit: function
- emit(eventName: string, data: any, groupId?: string): any
-
Parameters
-
eventName: string
-
data: any
-
Optional groupId: string
Returns any
-
on: function
- on(eventName: string, event: (payload: any) => any, groupId?: string): any
-
Parameters
-
eventName: string
-
event: (payload: any) => any
-
Optional groupId: string
Returns any
-
app: any
-
emit: (callback: any, data?: any) => Promise<void>
-
- (callback: any, data?: any): Promise<void>
-
Parameters
-
callback: any
-
Optional data: any
Returns Promise<void>
Returns any