SignalR/SignalR — Issue #188: Long Polling Broken on SignalR.Client when using IConnected
Author: abillingsley
Created: 2012-02-10 20:56:01+00:00
State: open

Here is some sample code that can be added to SignalR.Client.Sample

the client gets hammered with rejoined messages when using long polling. This is not an issue with sse.
After looking through the code it makes perfect sense since the client polls immediately when it receives data, there isnt any difference between a polling message and a reconnect message so the server calls Reconnect.

```c#
private static void RunConnectionStatus(HubConnection hubConnection)
{
var demo = hubConnection.CreateProxy("SignalR.Samples.Hubs.ConnectDisconnect.Status");

demo.On("rejoined", i =>
{
Console.WriteLine("rejoined");
});

demo.On("joined", i =>
{
Console.WriteLine("joined");
});

hubConnection.Start().Wait();
}
```