Hmm good point. Could use Object.getPrototypeOf but will lose IE < 9 compatibility.

Something like:
```Javascript
return this.socket.readyState == Object.getPrototypeOf(this.socket).CONNECTING;
```
http://kangax.github.io/es5-compat-table/#Object.getPrototypeOf