I'm just wondering that in the long polling scenario, if a client will receive a new connection ID when the client reconnects after a timeout (no response from server)?
Asked
Active
Viewed 418 times
1 Answers
1
When the connection between client and server is lost, client will automatically begin trying to reconnect. If the connection is restored within reconnect timeout period, the connectionId
stays the same (and OnReconnected
event is raised on server) - it is considered same SignalR (logical) connection even the underlying physical connection is different. Otherwise, when the reconnect timeout has expired no more automatic attempts will happen, client will have to connect manually again and a new connectionId
will be generated.
This workflow is independent from the transport strategy (long polling, WebSockets, ...).
For more detail, take a look at the documentation.

Wasp
- 3,395
- 19
- 37

Michal Levý
- 33,064
- 4
- 68
- 86