isCompressed method
Indicates whether the message should be or was compressed.
On the publisher side, this indicates whether compression should be applied before sending the message. On the subscriber side, this indicates whether the message was received in compressed form. In both cases, if compression is involved, the library automatically handles compression and decompression.
@return {@code true} if compression is enabled on the publisher side or the message was received compressed on the subscriber side; {@code false} otherwise.
Implementation
bool isCompressed() {
return compressionAlgorithm != CompressionAlgorithm.NONE;
}