Skip to content

Commit

Permalink
Enable per message deflate on server (#8314)
Browse files Browse the repository at this point in the history
* Enable permessage deflate flag
  • Loading branch information
pradeepvairamani committed Nov 18, 2021
1 parent 68ae59f commit 33b4533
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -119,7 +119,8 @@ export function create(
const io = new Server(server, {
// enable compatibility with socket.io v2 clients
allowEIO3: true,
perMessageDeflate: false,
// Indicates whether a connection should use compression
perMessageDeflate: true,
// ensure long polling is never used
transports: [ "websocket" ],
cors: {
Expand Down

0 comments on commit 33b4533

Please sign in to comment.