perMessageDeflate

This commit is contained in:
Nour Alharithi
2024-01-08 12:30:24 -08:00
parent 6a5ae59b00
commit 975c91b8b8

View File

@@ -26,7 +26,7 @@ const server = http.createServer(app);
const wss = new WebSocketServer({
server,
path: '/ws',
perMessageDeflate: false,
perMessageDeflate: true,
});
const REDIS_HOST = process.env.REDIS_HOST || 'localhost';