Better error message when SignalR message size limit exceeded #32360
Labels
area-blazor
Includes: Blazor, Razor Components
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-blazor-server
Pillar: Dev Experience
Milestone
Currently when you have an event or JS interop call whose payload exceeds the SignalR message size limit, the circuit disconnects (which is correct) but the error message is unhelpful:
(Source)
As part of #30289 we plan to create convenient new APIs to transmit large amounts of data without exceeding message limits, but it will still be possible to exceed the message size limits if you choose not to use those new APIs.
We should ideally:
The docs will explain the new APIs that you should use when sending large amounts of data. We will not recommend increasing the SignalR message size, as that isn't a real solution (maybe you still need even bigger payloads later).
The text was updated successfully, but these errors were encountered: