Version: v2
Messages compression
Framework supports gzip compression/decompression for messages.
It uses zlib port to js for gzip and ungzip messages.
Compression#
Decompression#
message.toJSON() automatically checks if payload is gzip compressed and decompress it.
Also, framework exports isGzipCompressed(data: Buffer) function to check if data payload is compressed.
Examples#
/pubsub/subscriptions/compression.topic.example.sub.ts