I'm using SignalR to send messages from my .net core application to Angular front end. Sometimes the message size can be more than MaximumReceiveMessageSize configured. In this case what is the optimal way to handle message sending.
To Summarize:
The default maximum message is 32KB. To increase that use:
builder.Services.Configure<HubOptions>(options =>
{
options.MaximumReceiveMessageSize = 1024 * 1024;
})
Suggestion: Just send signals with Ids and get the full data by calling the server after receiving these Ids.
Its not possible to increase or decrease these size on a request base.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With