# PackedMessage

# PackedMessage

A packed message represents an ordinary Message, but in a compressed format. This is useful in case you need to retain a large number or messages in memory, and reduce memory overhead.

The only way to create a packed message is by invoking the 'Message.pack' method.

Kind: global class

# unpack

Unpacks a previously packed message.

// Pack message
const packedMsg = message.pack();

// Unpack message
const unpackedMsg = packedMsg.unpack();

Kind: instance method of PackedMessage
Returns: Message - Unpacked Message

Last Updated: 11/2/2022, 8:35:50 PM