PubSubMessage<PayloadType>

PubSub.PubSubMessage

Represents a message in a pubSub context.

Type parameters

NameType
PayloadTypeextends PubSubMessageContract = PubSubMessageContract

Constructors

constructor

new PubSubMessage<PayloadType>(payload)

Type parameters

NameType
PayloadTypeextends PubSubMessageContract = PubSubMessageContract

Parameters

NameType
payloadPayloadType

Accessors

channel

get channel(): string

The channel in which this message was sent

Returns

string


content

get content(): string

The content of this message

Returns

string


id

get id(): string

The id of this message

Returns

string


meta

get meta(): any

Any metadata associated to this message

Returns

any


publishedAt

get publishedAt(): Date

The date at which this message was published

Returns

Date