Skip to main content
Version: v2

Class: Message<T>

Type parameters#

NameType
Tunknown

Constructors#

constructor#

• new Message<T>()

Type parameters#

NameType
Tunknown

Properties#

data#

• data: Buffer

Defined in#

src/message/index.ts:6


gCloudMessage#

• Optional gCloudMessage: Message

Defined in#

src/message/index.ts:7

Methods#

ack#

â–¸ ack(): void

Returns#

void

Defined in#

src/message/index.ts:39


decompress#

â–¸ decompress(): Buffer

Returns#

Buffer

Defined in#

src/message/index.ts:57


modAck#

â–¸ modAck(deadline): void

Parameters#

NameType
deadlinenumber

Returns#

void

Defined in#

src/message/index.ts:45


nack#

â–¸ nack(): void

Returns#

void

Defined in#

src/message/index.ts:51


toJSON#

â–¸ toJSON(): T

Returns#

T

Defined in#

src/message/index.ts:31


from#

â–¸ Static from<M>(message): Message<M>

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

Type parameters#

Name
M

Parameters#

NameTypeDescription
messageMany message that can be buffered

Returns#

Message<M>

Defined in#

src/message/index.ts:14


fromGCloud#

â–¸ Static fromGCloud(message): Message<unknown>

Builds a message for Google Cloud Driver

Parameters#

NameTypeDescription
messageMessageA valid Google Cloud message

Returns#

Message<unknown>

Defined in#

src/message/index.ts:24