Skip to main content
Version: v1

Class: Message

Constructors#

constructor#

• new Message()

Properties#

data#

• data: Buffer

Defined in#

src/message/index.ts:4


gCloudMessage#

• Optional gCloudMessage: Message

Defined in#

src/message/index.ts:5

Methods#

ack#

â–¸ ack(): void

Returns#

void

Defined in#

src/message/index.ts:29


modAck#

â–¸ modAck(deadline): void

Parameters#

NameType
deadlinenumber

Returns#

void

Defined in#

src/message/index.ts:35


nack#

â–¸ nack(): void

Returns#

void

Defined in#

src/message/index.ts:41


from#

â–¸ Static from(message): Message

Builds a new message object in the synchronous driver. Used by the eventBus.

Parameters#

NameTypeDescription
messageanyany message that can be buffered

Returns#

Message

Defined in#

src/message/index.ts:12


fromGCloud#

â–¸ Static fromGCloud(message): Message

Builds a message for Google Cloud Driver

Parameters#

NameTypeDescription
messageMessageA valid Google Cloud message

Returns#

Message

Defined in#

src/message/index.ts:22