mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
If you use the XMLHttpRequest variable name then the if typeof XMLHttpRequest === 'undefined' check will always return false and the XHR polling method is never used. This is needed because JSONP polling is buggy and doesn't emit close when server shutsdown. JSONP should be fixed / disabled.