PubSub.PubSubMessage
Represents a message in a pubSub context.
Type parameters
Name | Type |
---|---|
PayloadType | extends PubSubMessageContract = PubSubMessageContract |
Constructors
• new PubSubMessage<PayloadType
>(payload
)
Type parameters
Name | Type |
---|---|
PayloadType | extends PubSubMessageContract = PubSubMessageContract |
Parameters
Name | Type |
---|---|
payload | PayloadType |
Accessors
• get
channel(): string
The channel in which this message was sent
Returns
string
• get
content(): string
The content of this message
Returns
string
• get
id(): string
The id of this message
Returns
string
• get
meta(): any
Any metadata associated to this message
Returns
any
• get
publishedAt(): Date
The date at which this message was published
Returns
Date