Version: v2
Class: Message<T>
#
Type parametersName | Type |
---|---|
T | unknown |
#
Constructors#
constructor• new Message<T
>()
#
Type parametersName | Type |
---|---|
T | unknown |
#
Properties#
data• data: Buffer
#
Defined in#
gCloudMessage• Optional
gCloudMessage: Message
#
Defined in#
Methods#
ackâ–¸ ack(): void
#
Returnsvoid
#
Defined in#
decompressâ–¸ decompress(): Buffer
#
ReturnsBuffer
#
Defined in#
modAckâ–¸ modAck(deadline
): void
#
ParametersName | Type |
---|---|
deadline | number |
#
Returnsvoid
#
Defined in#
nackâ–¸ nack(): void
#
Returnsvoid
#
Defined in#
toJSONâ–¸ toJSON(): T
#
ReturnsT
#
Defined in#
fromâ–¸ Static
from<M
>(message
): Message
<M
>
Builds a new message object in the synchronous driver. Used by the eventBus.
#
Type parametersName |
---|
M |
#
ParametersName | Type | Description |
---|---|---|
message | M | any message that can be buffered |
#
ReturnsMessage
<M
>
#
Defined in#
fromGCloudâ–¸ Static
fromGCloud(message
): Message
<unknown
>
Builds a message for Google Cloud Driver
#
ParametersName | Type | Description |
---|---|---|
message | Message | A valid Google Cloud message |
#
ReturnsMessage
<unknown
>