SignalR.Client._20.Transports.ServerSentEventsTransport.Reconnect C# (CSharp) Method

Reconnect() private method

private Reconnect ( IConnection connection, string data ) : void
connection IConnection
data string
return void
        private void Reconnect(IConnection connection, string data)
        {
            if (!connection.IsActive)
                return;

            // Wait for a bit before reconnecting
            Thread.Sleep(m_reconnectDelay);

            // Now attempt a reconnect
            OpenConnection(connection, data, null, null);
        }