4.3.20 socket_compress_value
value(Boolean) 是否压缩以下数据包Returns 连接
socket
为后续事件设置一个修饰符,该修饰符只在值为true时压缩事件数据。不调用方法时默认为true。
io.on('connection',socket=>{
socket.compress(false).emit('uncompressed',"that's rough")
})Last updated
Was this helpful?