Methods
subscribe
- subscribe(onMessageReceived: (message: IMessage<any, any>, service: T) => Promise<void>): Promise<void>
-
Parameters
-
onMessageReceived: (message: IMessage<any, any>, service: T) => Promise<void>
-
- (message: IMessage<any, any>, service: T): Promise<void>
-
Parameters
Returns Promise<void>
Returns Promise<void>
unsubscribe
- unsubscribe(): Promise<void>