Class: Subscriber
Subscriber represents something that can subscribe to and recieve messages from the message bus
Hierarchy
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
+ new Subscriber(subscriberID?
: number): Subscriber
Parameters:
Name | Type |
---|---|
subscriberID |
number |
Returns: Subscriber
Properties
subscriberID
• subscriberID: number
Implementation of: ISubscriber.subscriberID
Methods
OnMessage
▸ Abstract
OnMessage(message
: IMessage): void
OnMessage handles a subscriber recieving a message. Called by the message bus for appropriate messages.
Parameters:
Name | Type | Description |
---|---|---|
message |
IMessage | The message that has been sent to the subscriber |
Returns: void