LearnBoost/socket.io-client — pull request #320 by holic (2011-10-21 09:34:31+00:00)
Title: Fixes auto-discovery on localhost

I was having trouble with auto-discovery over localhost - `document.domain` is undefined. While this fixes the issue, I'm not sure it's actually a counter-productive change security-wise.

If you can shed some light on `document.domain` vs. `window.location.hostname` (or in addition to), please do!