compress method

Socket compress(
  1. dynamic compress
)

Sets the compress flag.

@param {Boolean} if true, compresses the sending data @return {Socket} self @api public

Implementation

Socket compress(compress) {
  flags = flags ??= {};
  flags!['compress'] = compress;
  return this;
}