IRPCBroker
No summary provided.
Extends
IBaseBroker<TEvents>Extends
AsyncEventEmitter<ToEventMap<TEvents, TResponses>>Makes an RPC call
| Name | Constraints | Optional | Default | Description |
|---|---|---|---|---|
| T | keyof TEvents | No | None |
| Name | Type | Optional | Description |
|---|---|---|---|
| event | T | No | None |
| data | TEvents[T] | No | None |
| timeoutDuration | number | Yes | None |
Subscribes to the given events, grouping them by the given group name
| Name | Type | Optional | Description |
|---|---|---|---|
| group | string | No | None |
| events | (keyof TEvents)[] | No | None |
Unsubscribes from the given events - it's required to pass the same group name as when subscribing for proper cleanup
| Name | Type | Optional | Description |
|---|---|---|---|
| group | string | No | None |
| events | (keyof TEvents)[] | No | None |