Open Closed

Blazor's SignalR limitation on MaximumReceiveMessageSize #6924


User avatar
0
huy.quan created
  • ABP Framework version: v8.0.1
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)

I'm having problem with blazor's SignalR limitation on buffers to manage incoming and outgoing messages. I want to set MaximumReceiveMessageSize is 0 for no-limitation, but I just want to do this on a specific page, not entire of application. Is it possible? What I should do in this case?

Configure<HubOptions>(options =>
{
   options.AddFilter<AbpRefreshEditionIdFilter>();
   options.DisableImplicitFromServicesParameters = true;
   options.MaximumReceiveMessageSize = 0;
});

5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Yes, You can try to set this option for a specified hub.

    services.AddSignalR().AddHubOptions<YourHub>(options =>
    {
        options.MaximumReceiveMessageSize = 0;
    });
    
  • User Avatar
    0
    huy.quan created

    Thanks, I can add HubOptions successfully, but how to use it on specific blazor page? Could you pls give me example to do that?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It is only related to the hub class and has nothing to do with the blazor page.

    It is not possible to use it on specific blazor page

  • User Avatar
    0
    huy.quan created

    Sorry, my first question is how to set different MaximumReceiveMessageSize to different blazor page. Is it possible? Do you mean it's impossible to do that?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It is not possible. It is only related to the hub .

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09