Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want to combine these 10 different messages into one PersistentResponse, SignalR does not expose a way to do this. However, SignalR will automatically combine messages into a single PersistentResonse if the load is high enough to cause SignalR to pull multiple messages off the bus in one go.</p> <p>Basically SignalR will reduce responses dynamically as needed to handle the load, and all of this should be completely transparent to a SignalR developer on both the server and client.</p> <p>If the issue is that you think that clients using the long-polling transport are making requests too frequently, you could manually set a LongPollDelay. By default, long-polling clients will immediately reconnect once a message is received. With a non-zero LongPollDelay, the clients will reconnect after the delay has passed.</p> <pre><code>// Set long-polling reconnect delay to two seconds (stored in milliseconds) SignalR.Transports.LongPollingTransport.LongPollDelay = 2000; </code></pre> <p>All messages that were sent during the delay will immediately be returned to the long-polling client in the subsequent request. This effectively turns the long-polling transport into a normal-polling transport if there are always messages sent during the LongPollDelay.</p> <p>Naturally doing this will increase latency. I should also note that the LongPollDelay is only respected on the JavaScript client. So if you are using the .NET client, it will continue reconnect immediately after receiving a response even after changing this setting.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload