PubSub broker powered by Redis
Example
Extends
BaseRedisBroker<TEvents>Implements
IPubSubBroker<TEvents>Whether this broker is currently polling events
Inherited from BaseRedisBrokerOptions this broker is using
Inherited from BaseRedisBrokerInherited from BaseRedisBroker
Used for Redis queues, see the 3rd argument taken by xadd
Inherited from BaseRedisBrokerInternal copy of the Redis client being used to read incoming payloads
Inherited from BaseRedisBrokerEvents this broker has subscribed to
Inherited from BaseRedisBrokerDestroys the broker, closing all connections
Inherited from BaseRedisBrokerBegins polling for events, firing them to listen
Inherited from BaseRedisBrokerPublishes an event
Name | Type | Optional | Description |
---|---|---|---|
event | Event | No | None |
data | TEvents[Event] | No | None |
Subscribes to the given events
Name | Type | Optional | Description |
---|---|---|---|
events | (keyof TEvents)[] | No | None |
Unsubscribes from the given events
Name | Type | Optional | Description |
---|---|---|---|
events | (keyof TEvents)[] | No | None |