问题
I need to transfer large JSON messages in SignalR, but the maximum message size is limited by default, is there any way to increase that maximum size?
I have also find some relevant links but didn't find any proper solution:
https://docs.microsoft.com/en-us/aspnet/core/signalr/security
https://docs.microsoft.com/en-us/aspnet/core/signalr/configuration
回答1:
You can use this proprety MaxIncomingWebSocketMessageSize on GlobalHost.Configuration
来源:https://stackoverflow.com/questions/59248464/how-to-change-signalr-maximum-message-size