Skip to main content
设置 perMessageDeflate 参数以使用 permessage-deflate WebSocket 扩展压缩所有消息。
server.ts

要为单个消息启用压缩,请向 ws.send() 传递 true 作为第二个参数。
server.ts