```JavaScript
for (var state in $.signalR.connectionState) {
```