$.signalR.connectionState is not arra, here only loop through the properties of  $.signalR.connectionState