Wisej provides built-in compression support for all HTTP and WebSocket communications.

Enabling Compression

Compression is always enabled by default. Both browser and Wisej server use gzip as the default compression system.

Wisej automatically compresses all HTTP and WebSocket packets when the size is bigger than a certain threshold, ensuring that compressing the data doesn't result in larger packets.

You may disable WebSocket compression by setting the enableWebSocketCompression setting to false in Default.json.

Disabling WebSocket compression allows you to debug the frames when looking at the Network packet using the browser's Developer Tools.

  "enableWebSocketCompression": false


Wisej fully supports the Brotli compression library - also on browsers that don't have native Brotli support.

Use Add New Item and select Brotli to add the Wisej.Web.Ext.Brotli assembly. The source code for this extension is on our Github account: Brotli extension source code.

Under some still unknown circumstances, the Brotli implementation from Google may generate the error "Unused space" on the browser. If you get this error, simply remove Wisej.Web.Ext.Brotli.dll.

Last updated