Compression
Wisej.NET provides built-in compression support for all HTTP
and WebSocket
communications.
Enabling Compression
Compression is enabled by default. Both browser and Wisej.NET server use gzip
as the default compression system.
Wisej.NET automatically compresses all HTTP
and WebSocket
packets when the size exceeds a certain threshold, ensuring that compression 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 examining Network packets using the browser's Developer Tools.
Brotli
Wisej.NET fully supports the Brotli
compression library - even on browsers without 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 available in our Github repository: 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 encounter this error, simply remove Wisej.Web.Ext.Brotli.dll
.
Last updated