goinstant/engine.io-client — pull request #5 by stash (2013-07-29 18:41:48+00:00)
Title: Stash/dom net err ref 1231

https://github.com/goinstant/platform/issues/1231

When a user refreshes at _just_ the right moment during connection, Chrome gets stuck into a state where XHR refuses all `xhr.send()` calls with DOMException `NetworkError`. Subsequent refreshes don't clear this error. This PR makes sure that at least the `error` event is emitted when this happens. The thrown exception cannot be caught since it's on a clear stack due to `util.defer()` being used.