19

I am trying to send notifications through SignalR. It works perfectly.

But what is the maximum size of a message we can send through SignalR?

Does it have any official limit as such?

0

4 Answers 4

15

https://github.com/SignalR/SignalR/issues/1205

It's recommended to keep below 32K/message

1
  • Am I correct to assume that enabling/disabling compression has no effect on this. Network traffic compression must happen after signalR is done doing its thing, or is the web socket protocol immune to the compression settings altogether?
    – Ian
    Commented May 9, 2016 at 23:56
15

In .Net Core 3+, You can configure SignalR in ConfigureServices method in your startup class.

services.AddSignalR(o =>
{
    o.EnableDetailedErrors = true;
    o.MaximumReceiveMessageSize = 10240; // bytes
});
2
2

maximum message size can be increased manually, visit the following link:

How to change SignalR maximum message size?

-7

it's 64kb. if you want to send more than that from client to server than use another tool.

2
  • 5
    another tool like what? this answer is not complete, you need to elaborate more and show a solution
    – Ibo
    Commented Oct 2, 2017 at 23:28
  • 3
    the question is asking for the size so i gave the size. if you must know, you can use ajax server side calls to accomplish that or you can set the signalr transport to use server sent events, forever frame or long polling when starting the hub on the client side for instance like this: $.connection.hub.start({ transport: ['serverSentEvents','foreverFrame','longPolling'] }).start() Commented Oct 3, 2017 at 2:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.