[Blazor] Public API changes to enable compression on Interactive components for Blazor Web #53821
Labels
api-approved
API was approved in API review, it can be implemented
area-blazor
Includes: Blazor, Razor Components
Background and Motivation
We've enabled websocket compression on interactive server components in Blazor web. As part of that, we needed new public APIs to configure some of the settings and disable them if needed.
Compression is enabled by default and we don't expect the majority of our customers to change any of the settings.
Proposed API
Usage Examples
Disable compression
Configure a more strict frame-ancestors directive policy.
Alternative Designs
Disable compression
We discarded this approach because we still want to support configuring the parameters for the websocket, and we don't want to introduce two settings (CompressionEnabled and the callback). And given that this is going to be extremely rare, the callback we think is good enough.
The text was updated successfully, but these errors were encountered: