@@ -491,7 +491,7 @@ return /******/ (function(modules) { // webpackBootstrap
491
491
*/
492
492
493
493
Socket . prototype . onPacket = function ( packet ) {
494
- if ( 'opening' === this . readyState || 'open' === this . readyState ) {
494
+ if ( 'opening' === this . readyState || 'open' === this . readyState || 'closing' === this . readyState ) {
495
495
debug ( 'socket receive: type "%s", data "%s"' , packet . type , packet . data ) ;
496
496
497
497
this . emit ( 'packet' , packet ) ;
@@ -869,13 +869,10 @@ return /******/ (function(modules) { // webpackBootstrap
869
869
/* 4 */
870
870
/***/ function ( module , exports , __webpack_require__ ) {
871
871
872
- 'use strict' ;
872
+ /* WEBPACK VAR INJECTION */ ( function ( global ) { 'use strict' ;
873
873
874
874
// browser shim for xmlhttprequest module
875
875
876
- // Indicate to eslint that ActiveXObject is global
877
- /* global ActiveXObject */
878
-
879
876
var hasCORS = __webpack_require__ ( 5 ) ;
880
877
881
878
module . exports = function ( opts ) {
@@ -907,10 +904,11 @@ return /******/ (function(modules) { // webpackBootstrap
907
904
908
905
if ( ! xdomain ) {
909
906
try {
910
- return new ActiveXObject ( 'Microsoft.XMLHTTP' ) ;
907
+ return new global [ [ 'Active' ] . concat ( 'Object' ) . join ( 'X' ) ] ( 'Microsoft.XMLHTTP' ) ;
911
908
} catch ( e ) { }
912
909
}
913
910
} ;
911
+ /* WEBPACK VAR INJECTION */ } . call ( exports , ( function ( ) { return this ; } ( ) ) ) )
914
912
915
913
/***/ } ,
916
914
/* 5 */
@@ -1161,6 +1159,10 @@ return /******/ (function(modules) { // webpackBootstrap
1161
1159
} catch ( e ) { }
1162
1160
}
1163
1161
1162
+ try {
1163
+ xhr . setRequestHeader ( 'Accept' , '*/*' ) ;
1164
+ } catch ( e ) { }
1165
+
1164
1166
// ie6 check
1165
1167
if ( 'withCredentials' in xhr ) {
1166
1168
xhr . withCredentials = true ;
@@ -4172,22 +4174,6 @@ return /******/ (function(modules) { // webpackBootstrap
4172
4174
} ;
4173
4175
} ;
4174
4176
4175
- /**
4176
- * Override `onData` to use a timer on iOS.
4177
- * See: https://gist.github.com/mloughran/2052006
4178
- *
4179
- * @api private
4180
- */
4181
-
4182
- if ( 'undefined' !== typeof navigator && / i P a d | i P h o n e | i P o d / i. test ( navigator . userAgent ) ) {
4183
- WS . prototype . onData = function ( data ) {
4184
- var self = this ;
4185
- setTimeout ( function ( ) {
4186
- Transport . prototype . onData . call ( self , data ) ;
4187
- } , 0 ) ;
4188
- } ;
4189
- }
4190
-
4191
4177
/**
4192
4178
* Writes data to socket.
4193
4179
*
0 commit comments