Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 274 Bytes

socket_compress_value.md

File metadata and controls

11 lines (7 loc) · 274 Bytes

socket.compress(value)

  • value (Boolean)
  • Returns Socket

为后续事件发送设置一个修饰符,该修饰符只在值为true时压缩事件数据。不调用方法时默认为true

socket.compress(false).emit('an event',{some:"data"});