MCPcopy
hub / github.com/socketio/socket.io / compress

Function compress

packages/socket.io-redis-streams-emitter/lib/index.ts:100–104  ·  view source on GitHub ↗

* Sets the compress flag. * * @param compress - if `true`, compresses the sending data * @return BroadcastOperator * @public

(
    compress: boolean,
  )

Source from the content-addressed store, hash-verified

98 * @public
99 */
100 public compress(
101 compress: boolean,
102 ): BroadcastOperator<EmitEvents, ServerSideEvents> {
103 return this.newBroadcastOperator().compress(compress);
104 }
105
106 /**
107 * Makes the matching socket instances join the specified rooms

Callers

nothing calls this directly

Calls 2

newBroadcastOperatorMethod · 0.80
compressMethod · 0.45

Tested by

no test coverage detected