Added reconnect logic for SignalR