socket.io-rails 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e118f5aba502843cbee7ca39c79496f515e2eb1c
4
- data.tar.gz: d795a18edc8508e5dddcf75ede6326231cb3f616
3
+ metadata.gz: ba854b3b3c090627315556323f4984b4952f2e47
4
+ data.tar.gz: 4c88408cf0af54624d3b12a259dbd512f3b9d508
5
5
  SHA512:
6
- metadata.gz: 433952f67bb45019dea60132bcfa1d3570d767357421fb4486d53a4795f08ee794cac2b3eba5b5f1a124ac4909b0f9e610ccc80dbb553d908b5f7161e886af88
7
- data.tar.gz: 467d377b725d0ed9702a5f3a3e72436ea6b9723bcc33ba5710898f03768e9797911d6a96d526c8eadcf86e51e238951f4e3c8328e7c19cade044d27aa6f7d260
6
+ metadata.gz: 79c7d7f76e85d5c9a283173e869b3b19e01f862a4de12f5d44ac9265f9ca721304acc707215027ecfe1e07277a25facad590756fd6e923fa6b3a6a2f0f35b4e1
7
+ data.tar.gz: 0a52e44735a70cbf79859539868155565a90ae7fe1e20185c8a83d00d3b34f12de527e166825345c4f2dfb50ba698de4dc3283863cacba5bf6c891af8d255c16
@@ -1,5 +1,5 @@
1
1
  module Socketio
2
2
  module Rails
3
- VERSION = "1.5.0"
3
+ VERSION = "1.5.1"
4
4
  end
5
5
  end
@@ -64,7 +64,7 @@ return /******/ (function(modules) { // webpackBootstrap
64
64
 
65
65
  var url = __webpack_require__(1);
66
66
  var parser = __webpack_require__(6);
67
- var Manager = __webpack_require__(14);
67
+ var Manager = __webpack_require__(13);
68
68
  var debug = __webpack_require__(3)('socket.io-client');
69
69
 
70
70
  /**
@@ -163,8 +163,8 @@ return /******/ (function(modules) { // webpackBootstrap
163
163
  * @api public
164
164
  */
165
165
 
166
- exports.Manager = __webpack_require__(14);
167
- exports.Socket = __webpack_require__(42);
166
+ exports.Manager = __webpack_require__(13);
167
+ exports.Socket = __webpack_require__(40);
168
168
 
169
169
  /***/ },
170
170
  /* 1 */
@@ -812,10 +812,10 @@ return /******/ (function(modules) { // webpackBootstrap
812
812
 
813
813
  var debug = __webpack_require__(3)('socket.io-parser');
814
814
  var json = __webpack_require__(7);
815
- var isArray = __webpack_require__(10);
816
- var Emitter = __webpack_require__(11);
817
- var binary = __webpack_require__(12);
818
- var isBuf = __webpack_require__(13);
815
+ var isArray = __webpack_require__(9);
816
+ var Emitter = __webpack_require__(10);
817
+ var binary = __webpack_require__(11);
818
+ var isBuf = __webpack_require__(12);
819
819
 
820
820
  /**
821
821
  * Protocol version.
@@ -1211,11 +1211,14 @@ return /******/ (function(modules) { // webpackBootstrap
1211
1211
  /* 7 */
1212
1212
  /***/ function(module, exports, __webpack_require__) {
1213
1213
 
1214
- var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
1214
+ /* WEBPACK VAR INJECTION */(function(module, global) {/*** IMPORTS FROM imports-loader ***/
1215
+ var define = false;
1216
+
1217
+ /*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
1215
1218
  ;(function () {
1216
1219
  // Detect the `define` function exposed by asynchronous module loaders. The
1217
1220
  // strict `define` check is necessary for compatibility with `r.js`.
1218
- var isLoader = "function" === "function" && __webpack_require__(9);
1221
+ var isLoader = typeof define === "function" && define.amd;
1219
1222
 
1220
1223
  // A set of types used to distinguish objects from primitives.
1221
1224
  var objectTypes = {
@@ -2108,12 +2111,13 @@ return /******/ (function(modules) { // webpackBootstrap
2108
2111
 
2109
2112
  // Export for asynchronous module loaders.
2110
2113
  if (isLoader) {
2111
- !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {
2114
+ define(function () {
2112
2115
  return JSON3;
2113
- }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
2116
+ });
2114
2117
  }
2115
2118
  }).call(this);
2116
2119
 
2120
+
2117
2121
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8)(module), (function() { return this; }())))
2118
2122
 
2119
2123
  /***/ },
@@ -2134,14 +2138,6 @@ return /******/ (function(modules) { // webpackBootstrap
2134
2138
 
2135
2139
  /***/ },
2136
2140
  /* 9 */
2137
- /***/ function(module, exports) {
2138
-
2139
- /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__;
2140
-
2141
- /* WEBPACK VAR INJECTION */}.call(exports, {}))
2142
-
2143
- /***/ },
2144
- /* 10 */
2145
2141
  /***/ function(module, exports) {
2146
2142
 
2147
2143
  module.exports = Array.isArray || function (arr) {
@@ -2150,7 +2146,7 @@ return /******/ (function(modules) { // webpackBootstrap
2150
2146
 
2151
2147
 
2152
2148
  /***/ },
2153
- /* 11 */
2149
+ /* 10 */
2154
2150
  /***/ function(module, exports) {
2155
2151
 
2156
2152
 
@@ -2320,7 +2316,7 @@ return /******/ (function(modules) { // webpackBootstrap
2320
2316
 
2321
2317
 
2322
2318
  /***/ },
2323
- /* 12 */
2319
+ /* 11 */
2324
2320
  /***/ function(module, exports, __webpack_require__) {
2325
2321
 
2326
2322
  /* WEBPACK VAR INJECTION */(function(global) {/*global Blob,File*/
@@ -2329,8 +2325,8 @@ return /******/ (function(modules) { // webpackBootstrap
2329
2325
  * Module requirements
2330
2326
  */
2331
2327
 
2332
- var isArray = __webpack_require__(10);
2333
- var isBuf = __webpack_require__(13);
2328
+ var isArray = __webpack_require__(9);
2329
+ var isBuf = __webpack_require__(12);
2334
2330
 
2335
2331
  /**
2336
2332
  * Replaces every Buffer | ArrayBuffer in packet with a numbered placeholder.
@@ -2468,7 +2464,7 @@ return /******/ (function(modules) { // webpackBootstrap
2468
2464
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
2469
2465
 
2470
2466
  /***/ },
2471
- /* 13 */
2467
+ /* 12 */
2472
2468
  /***/ function(module, exports) {
2473
2469
 
2474
2470
  /* WEBPACK VAR INJECTION */(function(global) {
@@ -2488,7 +2484,7 @@ return /******/ (function(modules) { // webpackBootstrap
2488
2484
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
2489
2485
 
2490
2486
  /***/ },
2491
- /* 14 */
2487
+ /* 13 */
2492
2488
  /***/ function(module, exports, __webpack_require__) {
2493
2489
 
2494
2490
  'use strict';
@@ -2499,15 +2495,15 @@ return /******/ (function(modules) { // webpackBootstrap
2499
2495
  * Module dependencies.
2500
2496
  */
2501
2497
 
2502
- var eio = __webpack_require__(15);
2503
- var Socket = __webpack_require__(42);
2504
- var Emitter = __webpack_require__(43);
2498
+ var eio = __webpack_require__(14);
2499
+ var Socket = __webpack_require__(40);
2500
+ var Emitter = __webpack_require__(41);
2505
2501
  var parser = __webpack_require__(6);
2506
- var on = __webpack_require__(45);
2507
- var bind = __webpack_require__(46);
2502
+ var on = __webpack_require__(43);
2503
+ var bind = __webpack_require__(44);
2508
2504
  var debug = __webpack_require__(3)('socket.io-client:manager');
2509
- var indexOf = __webpack_require__(40);
2510
- var Backoff = __webpack_require__(49);
2505
+ var indexOf = __webpack_require__(38);
2506
+ var Backoff = __webpack_require__(46);
2511
2507
 
2512
2508
  /**
2513
2509
  * IE6+ hasOwnProperty
@@ -3055,19 +3051,19 @@ return /******/ (function(modules) { // webpackBootstrap
3055
3051
  };
3056
3052
 
3057
3053
  /***/ },
3058
- /* 15 */
3054
+ /* 14 */
3059
3055
  /***/ function(module, exports, __webpack_require__) {
3060
3056
 
3061
3057
 
3062
- module.exports = __webpack_require__(16);
3058
+ module.exports = __webpack_require__(15);
3063
3059
 
3064
3060
 
3065
3061
  /***/ },
3066
- /* 16 */
3062
+ /* 15 */
3067
3063
  /***/ function(module, exports, __webpack_require__) {
3068
3064
 
3069
3065
 
3070
- module.exports = __webpack_require__(17);
3066
+ module.exports = __webpack_require__(16);
3071
3067
 
3072
3068
  /**
3073
3069
  * Exports parser
@@ -3075,25 +3071,25 @@ return /******/ (function(modules) { // webpackBootstrap
3075
3071
  * @api public
3076
3072
  *
3077
3073
  */
3078
- module.exports.parser = __webpack_require__(24);
3074
+ module.exports.parser = __webpack_require__(23);
3079
3075
 
3080
3076
 
3081
3077
  /***/ },
3082
- /* 17 */
3078
+ /* 16 */
3083
3079
  /***/ function(module, exports, __webpack_require__) {
3084
3080
 
3085
3081
  /* WEBPACK VAR INJECTION */(function(global) {/**
3086
3082
  * Module dependencies.
3087
3083
  */
3088
3084
 
3089
- var transports = __webpack_require__(18);
3090
- var Emitter = __webpack_require__(33);
3085
+ var transports = __webpack_require__(17);
3086
+ var Emitter = __webpack_require__(31);
3091
3087
  var debug = __webpack_require__(3)('engine.io-client:socket');
3092
- var index = __webpack_require__(40);
3093
- var parser = __webpack_require__(24);
3088
+ var index = __webpack_require__(38);
3089
+ var parser = __webpack_require__(23);
3094
3090
  var parseuri = __webpack_require__(2);
3095
- var parsejson = __webpack_require__(41);
3096
- var parseqs = __webpack_require__(34);
3091
+ var parsejson = __webpack_require__(39);
3092
+ var parseqs = __webpack_require__(32);
3097
3093
 
3098
3094
  /**
3099
3095
  * Module exports.
@@ -3101,14 +3097,6 @@ return /******/ (function(modules) { // webpackBootstrap
3101
3097
 
3102
3098
  module.exports = Socket;
3103
3099
 
3104
- /**
3105
- * Noop function.
3106
- *
3107
- * @api private
3108
- */
3109
-
3110
- function noop(){}
3111
-
3112
3100
  /**
3113
3101
  * Socket constructor.
3114
3102
  *
@@ -3117,12 +3105,12 @@ return /******/ (function(modules) { // webpackBootstrap
3117
3105
  * @api public
3118
3106
  */
3119
3107
 
3120
- function Socket(uri, opts){
3108
+ function Socket (uri, opts) {
3121
3109
  if (!(this instanceof Socket)) return new Socket(uri, opts);
3122
3110
 
3123
3111
  opts = opts || {};
3124
3112
 
3125
- if (uri && 'object' == typeof uri) {
3113
+ if (uri && 'object' === typeof uri) {
3126
3114
  opts = uri;
3127
3115
  uri = null;
3128
3116
  }
@@ -3130,15 +3118,15 @@ return /******/ (function(modules) { // webpackBootstrap
3130
3118
  if (uri) {
3131
3119
  uri = parseuri(uri);
3132
3120
  opts.hostname = uri.host;
3133
- opts.secure = uri.protocol == 'https' || uri.protocol == 'wss';
3121
+ opts.secure = uri.protocol === 'https' || uri.protocol === 'wss';
3134
3122
  opts.port = uri.port;
3135
3123
  if (uri.query) opts.query = uri.query;
3136
3124
  } else if (opts.host) {
3137
3125
  opts.hostname = parseuri(opts.host).host;
3138
3126
  }
3139
3127
 
3140
- this.secure = null != opts.secure ? opts.secure :
3141
- (global.location && 'https:' == location.protocol);
3128
+ this.secure = null != opts.secure ? opts.secure
3129
+ : (global.location && 'https:' === location.protocol);
3142
3130
 
3143
3131
  if (opts.hostname && !opts.port) {
3144
3132
  // if no port is specified manually, use the protocol default
@@ -3148,11 +3136,11 @@ return /******/ (function(modules) { // webpackBootstrap
3148
3136
  this.agent = opts.agent || false;
3149
3137
  this.hostname = opts.hostname ||
3150
3138
  (global.location ? location.hostname : 'localhost');
3151
- this.port = opts.port || (global.location && location.port ?
3152
- location.port :
3153
- (this.secure ? 443 : 80));
3139
+ this.port = opts.port || (global.location && location.port
3140
+ ? location.port
3141
+ : (this.secure ? 443 : 80));
3154
3142
  this.query = opts.query || {};
3155
- if ('string' == typeof this.query) this.query = parseqs.decode(this.query);
3143
+ if ('string' === typeof this.query) this.query = parseqs.decode(this.query);
3156
3144
  this.upgrade = false !== opts.upgrade;
3157
3145
  this.path = (opts.path || '/engine.io').replace(/\/$/, '') + '/';
3158
3146
  this.forceJSONP = !!opts.forceJSONP;
@@ -3164,6 +3152,7 @@ return /******/ (function(modules) { // webpackBootstrap
3164
3152
  this.transports = opts.transports || ['polling', 'websocket'];
3165
3153
  this.readyState = '';
3166
3154
  this.writeBuffer = [];
3155
+ this.prevBufferLen = 0;
3167
3156
  this.policyPort = opts.policyPort || 843;
3168
3157
  this.rememberUpgrade = opts.rememberUpgrade || false;
3169
3158
  this.binaryType = null;
@@ -3182,16 +3171,26 @@ return /******/ (function(modules) { // webpackBootstrap
3182
3171
  this.cert = opts.cert || null;
3183
3172
  this.ca = opts.ca || null;
3184
3173
  this.ciphers = opts.ciphers || null;
3185
- this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;
3174
+ this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? null : opts.rejectUnauthorized;
3186
3175
 
3187
3176
  // other options for Node.js client
3188
- var freeGlobal = typeof global == 'object' && global;
3177
+ var freeGlobal = typeof global === 'object' && global;
3189
3178
  if (freeGlobal.global === freeGlobal) {
3190
3179
  if (opts.extraHeaders && Object.keys(opts.extraHeaders).length > 0) {
3191
3180
  this.extraHeaders = opts.extraHeaders;
3192
3181
  }
3193
3182
  }
3194
3183
 
3184
+ // set on handshake
3185
+ this.id = null;
3186
+ this.upgrades = null;
3187
+ this.pingInterval = null;
3188
+ this.pingTimeout = null;
3189
+
3190
+ // set on heartbeat
3191
+ this.pingIntervalTimer = null;
3192
+ this.pingTimeoutTimer = null;
3193
+
3195
3194
  this.open();
3196
3195
  }
3197
3196
 
@@ -3217,9 +3216,9 @@ return /******/ (function(modules) { // webpackBootstrap
3217
3216
  */
3218
3217
 
3219
3218
  Socket.Socket = Socket;
3220
- Socket.Transport = __webpack_require__(23);
3221
- Socket.transports = __webpack_require__(18);
3222
- Socket.parser = __webpack_require__(24);
3219
+ Socket.Transport = __webpack_require__(22);
3220
+ Socket.transports = __webpack_require__(17);
3221
+ Socket.parser = __webpack_require__(23);
3223
3222
 
3224
3223
  /**
3225
3224
  * Creates transport of the given type.
@@ -3288,12 +3287,12 @@ return /******/ (function(modules) { // webpackBootstrap
3288
3287
  */
3289
3288
  Socket.prototype.open = function () {
3290
3289
  var transport;
3291
- if (this.rememberUpgrade && Socket.priorWebsocketSuccess && this.transports.indexOf('websocket') != -1) {
3290
+ if (this.rememberUpgrade && Socket.priorWebsocketSuccess && this.transports.indexOf('websocket') !== -1) {
3292
3291
  transport = 'websocket';
3293
3292
  } else if (0 === this.transports.length) {
3294
3293
  // Emit error on next tick so it can be listened to
3295
3294
  var self = this;
3296
- setTimeout(function() {
3295
+ setTimeout(function () {
3297
3296
  self.emit('error', 'No transports available');
3298
3297
  }, 0);
3299
3298
  return;
@@ -3321,7 +3320,7 @@ return /******/ (function(modules) { // webpackBootstrap
3321
3320
  * @api private
3322
3321
  */
3323
3322
 
3324
- Socket.prototype.setTransport = function(transport){
3323
+ Socket.prototype.setTransport = function (transport) {
3325
3324
  debug('setting transport %s', transport.name);
3326
3325
  var self = this;
3327
3326
 
@@ -3335,16 +3334,16 @@ return /******/ (function(modules) { // webpackBootstrap
3335
3334
 
3336
3335
  // set up transport listeners
3337
3336
  transport
3338
- .on('drain', function(){
3337
+ .on('drain', function () {
3339
3338
  self.onDrain();
3340
3339
  })
3341
- .on('packet', function(packet){
3340
+ .on('packet', function (packet) {
3342
3341
  self.onPacket(packet);
3343
3342
  })
3344
- .on('error', function(e){
3343
+ .on('error', function (e) {
3345
3344
  self.onError(e);
3346
3345
  })
3347
- .on('close', function(){
3346
+ .on('close', function () {
3348
3347
  self.onClose('transport close');
3349
3348
  });
3350
3349
  };
@@ -3358,13 +3357,13 @@ return /******/ (function(modules) { // webpackBootstrap
3358
3357
 
3359
3358
  Socket.prototype.probe = function (name) {
3360
3359
  debug('probing transport "%s"', name);
3361
- var transport = this.createTransport(name, { probe: 1 })
3362
- , failed = false
3363
- , self = this;
3360
+ var transport = this.createTransport(name, { probe: 1 });
3361
+ var failed = false;
3362
+ var self = this;
3364
3363
 
3365
3364
  Socket.priorWebsocketSuccess = false;
3366
3365
 
3367
- function onTransportOpen(){
3366
+ function onTransportOpen () {
3368
3367
  if (self.onlyBinaryUpgrades) {
3369
3368
  var upgradeLosesBinary = !this.supportsBinary && self.transport.supportsBinary;
3370
3369
  failed = failed || upgradeLosesBinary;
@@ -3375,17 +3374,17 @@ return /******/ (function(modules) { // webpackBootstrap
3375
3374
  transport.send([{ type: 'ping', data: 'probe' }]);
3376
3375
  transport.once('packet', function (msg) {
3377
3376
  if (failed) return;
3378
- if ('pong' == msg.type && 'probe' == msg.data) {
3377
+ if ('pong' === msg.type && 'probe' === msg.data) {
3379
3378
  debug('probe transport "%s" pong', name);
3380
3379
  self.upgrading = true;
3381
3380
  self.emit('upgrading', transport);
3382
3381
  if (!transport) return;
3383
- Socket.priorWebsocketSuccess = 'websocket' == transport.name;
3382
+ Socket.priorWebsocketSuccess = 'websocket' === transport.name;
3384
3383
 
3385
3384
  debug('pausing current transport "%s"', self.transport.name);
3386
3385
  self.transport.pause(function () {
3387
3386
  if (failed) return;
3388
- if ('closed' == self.readyState) return;
3387
+ if ('closed' === self.readyState) return;
3389
3388
  debug('changing transport and sending upgrade packet');
3390
3389
 
3391
3390
  cleanup();
@@ -3406,7 +3405,7 @@ return /******/ (function(modules) { // webpackBootstrap
3406
3405
  });
3407
3406
  }
3408
3407
 
3409
- function freezeTransport() {
3408
+ function freezeTransport () {
3410
3409
  if (failed) return;
3411
3410
 
3412
3411
  // Any callback called by transport should be ignored since now
@@ -3418,8 +3417,8 @@ return /******/ (function(modules) { // webpackBootstrap
3418
3417
  transport = null;
3419
3418
  }
3420
3419
 
3421
- //Handle any error that happens while probing
3422
- function onerror(err) {
3420
+ // Handle any error that happens while probing
3421
+ function onerror (err) {
3423
3422
  var error = new Error('probe error: ' + err);
3424
3423
  error.transport = transport.name;
3425
3424
 
@@ -3430,25 +3429,25 @@ return /******/ (function(modules) { // webpackBootstrap
3430
3429
  self.emit('upgradeError', error);
3431
3430
  }
3432
3431
 
3433
- function onTransportClose(){
3434
- onerror("transport closed");
3432
+ function onTransportClose () {
3433
+ onerror('transport closed');
3435
3434
  }
3436
3435
 
3437
- //When the socket is closed while we're probing
3438
- function onclose(){
3439
- onerror("socket closed");
3436
+ // When the socket is closed while we're probing
3437
+ function onclose () {
3438
+ onerror('socket closed');
3440
3439
  }
3441
3440
 
3442
- //When the socket is upgraded while we're probing
3443
- function onupgrade(to){
3444
- if (transport && to.name != transport.name) {
3441
+ // When the socket is upgraded while we're probing
3442
+ function onupgrade (to) {
3443
+ if (transport && to.name !== transport.name) {
3445
3444
  debug('"%s" works - aborting "%s"', to.name, transport.name);
3446
3445
  freezeTransport();
3447
3446
  }
3448
3447
  }
3449
3448
 
3450
- //Remove all listeners on the transport and on self
3451
- function cleanup(){
3449
+ // Remove all listeners on the transport and on self
3450
+ function cleanup () {
3452
3451
  transport.removeListener('open', onTransportOpen);
3453
3452
  transport.removeListener('error', onerror);
3454
3453
  transport.removeListener('close', onTransportClose);
@@ -3464,7 +3463,6 @@ return /******/ (function(modules) { // webpackBootstrap
3464
3463
  this.once('upgrading', onupgrade);
3465
3464
 
3466
3465
  transport.open();
3467
-
3468
3466
  };
3469
3467
 
3470
3468
  /**
@@ -3476,13 +3474,13 @@ return /******/ (function(modules) { // webpackBootstrap
3476
3474
  Socket.prototype.onOpen = function () {
3477
3475
  debug('socket open');
3478
3476
  this.readyState = 'open';
3479
- Socket.priorWebsocketSuccess = 'websocket' == this.transport.name;
3477
+ Socket.priorWebsocketSuccess = 'websocket' === this.transport.name;
3480
3478
  this.emit('open');
3481
3479
  this.flush();
3482
3480
 
3483
3481
  // we check for `readyState` in case an `open`
3484
3482
  // listener already closed the socket
3485
- if ('open' == this.readyState && this.upgrade && this.transport.pause) {
3483
+ if ('open' === this.readyState && this.upgrade && this.transport.pause) {
3486
3484
  debug('starting upgrade probes');
3487
3485
  for (var i = 0, l = this.upgrades.length; i < l; i++) {
3488
3486
  this.probe(this.upgrades[i]);
@@ -3497,7 +3495,7 @@ return /******/ (function(modules) { // webpackBootstrap
3497
3495
  */
3498
3496
 
3499
3497
  Socket.prototype.onPacket = function (packet) {
3500
- if ('opening' == this.readyState || 'open' == this.readyState) {
3498
+ if ('opening' === this.readyState || 'open' === this.readyState) {
3501
3499
  debug('socket receive: type "%s", data "%s"', packet.type, packet.data);
3502
3500
 
3503
3501
  this.emit('packet', packet);
@@ -3547,7 +3545,7 @@ return /******/ (function(modules) { // webpackBootstrap
3547
3545
  this.pingTimeout = data.pingTimeout;
3548
3546
  this.onOpen();
3549
3547
  // In case open handler closes socket
3550
- if ('closed' == this.readyState) return;
3548
+ if ('closed' === this.readyState) return;
3551
3549
  this.setPing();
3552
3550
 
3553
3551
  // Prolong liveness of socket on heartbeat
@@ -3565,7 +3563,7 @@ return /******/ (function(modules) { // webpackBootstrap
3565
3563
  clearTimeout(this.pingTimeoutTimer);
3566
3564
  var self = this;
3567
3565
  self.pingTimeoutTimer = setTimeout(function () {
3568
- if ('closed' == self.readyState) return;
3566
+ if ('closed' === self.readyState) return;
3569
3567
  self.onClose('ping timeout');
3570
3568
  }, timeout || (self.pingInterval + self.pingTimeout));
3571
3569
  };
@@ -3595,7 +3593,7 @@ return /******/ (function(modules) { // webpackBootstrap
3595
3593
 
3596
3594
  Socket.prototype.ping = function () {
3597
3595
  var self = this;
3598
- this.sendPacket('ping', function(){
3596
+ this.sendPacket('ping', function () {
3599
3597
  self.emit('ping');
3600
3598
  });
3601
3599
  };
@@ -3606,7 +3604,7 @@ return /******/ (function(modules) { // webpackBootstrap
3606
3604
  * @api private
3607
3605
  */
3608
3606
 
3609
- Socket.prototype.onDrain = function() {
3607
+ Socket.prototype.onDrain = function () {
3610
3608
  this.writeBuffer.splice(0, this.prevBufferLen);
3611
3609
 
3612
3610
  // setting prevBufferLen = 0 is very important
@@ -3628,7 +3626,7 @@ return /******/ (function(modules) { // webpackBootstrap
3628
3626
  */
3629
3627
 
3630
3628
  Socket.prototype.flush = function () {
3631
- if ('closed' != this.readyState && this.transport.writable &&
3629
+ if ('closed' !== this.readyState && this.transport.writable &&
3632
3630
  !this.upgrading && this.writeBuffer.length) {
3633
3631
  debug('flushing %d packets in socket', this.writeBuffer.length);
3634
3632
  this.transport.send(this.writeBuffer);
@@ -3666,17 +3664,17 @@ return /******/ (function(modules) { // webpackBootstrap
3666
3664
  */
3667
3665
 
3668
3666
  Socket.prototype.sendPacket = function (type, data, options, fn) {
3669
- if('function' == typeof data) {
3667
+ if ('function' === typeof data) {
3670
3668
  fn = data;
3671
3669
  data = undefined;
3672
3670
  }
3673
3671
 
3674
- if ('function' == typeof options) {
3672
+ if ('function' === typeof options) {
3675
3673
  fn = options;
3676
3674
  options = null;
3677
3675
  }
3678
3676
 
3679
- if ('closing' == this.readyState || 'closed' == this.readyState) {
3677
+ if ('closing' === this.readyState || 'closed' === this.readyState) {
3680
3678
  return;
3681
3679
  }
3682
3680
 
@@ -3701,13 +3699,13 @@ return /******/ (function(modules) { // webpackBootstrap
3701
3699
  */
3702
3700
 
3703
3701
  Socket.prototype.close = function () {
3704
- if ('opening' == this.readyState || 'open' == this.readyState) {
3702
+ if ('opening' === this.readyState || 'open' === this.readyState) {
3705
3703
  this.readyState = 'closing';
3706
3704
 
3707
3705
  var self = this;
3708
3706
 
3709
3707
  if (this.writeBuffer.length) {
3710
- this.once('drain', function() {
3708
+ this.once('drain', function () {
3711
3709
  if (this.upgrading) {
3712
3710
  waitForUpgrade();
3713
3711
  } else {
@@ -3721,19 +3719,19 @@ return /******/ (function(modules) { // webpackBootstrap
3721
3719
  }
3722
3720
  }
3723
3721
 
3724
- function close() {
3722
+ function close () {
3725
3723
  self.onClose('forced close');
3726
3724
  debug('socket closing - telling transport to close');
3727
3725
  self.transport.close();
3728
3726
  }
3729
3727
 
3730
- function cleanupAndClose() {
3728
+ function cleanupAndClose () {
3731
3729
  self.removeListener('upgrade', cleanupAndClose);
3732
3730
  self.removeListener('upgradeError', cleanupAndClose);
3733
3731
  close();
3734
3732
  }
3735
3733
 
3736
- function waitForUpgrade() {
3734
+ function waitForUpgrade () {
3737
3735
  // wait for upgrade to finish since we can't send packets while pausing a transport
3738
3736
  self.once('upgrade', cleanupAndClose);
3739
3737
  self.once('upgradeError', cleanupAndClose);
@@ -3762,7 +3760,7 @@ return /******/ (function(modules) { // webpackBootstrap
3762
3760
  */
3763
3761
 
3764
3762
  Socket.prototype.onClose = function (reason, desc) {
3765
- if ('opening' == this.readyState || 'open' == this.readyState || 'closing' == this.readyState) {
3763
+ if ('opening' === this.readyState || 'open' === this.readyState || 'closing' === this.readyState) {
3766
3764
  debug('socket close with reason: "%s"', reason);
3767
3765
  var self = this;
3768
3766
 
@@ -3805,7 +3803,7 @@ return /******/ (function(modules) { // webpackBootstrap
3805
3803
 
3806
3804
  Socket.prototype.filterUpgrades = function (upgrades) {
3807
3805
  var filteredUpgrades = [];
3808
- for (var i = 0, j = upgrades.length; i<j; i++) {
3806
+ for (var i = 0, j = upgrades.length; i < j; i++) {
3809
3807
  if (~index(this.transports, upgrades[i])) filteredUpgrades.push(upgrades[i]);
3810
3808
  }
3811
3809
  return filteredUpgrades;
@@ -3814,17 +3812,17 @@ return /******/ (function(modules) { // webpackBootstrap
3814
3812
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
3815
3813
 
3816
3814
  /***/ },
3817
- /* 18 */
3815
+ /* 17 */
3818
3816
  /***/ function(module, exports, __webpack_require__) {
3819
3817
 
3820
3818
  /* WEBPACK VAR INJECTION */(function(global) {/**
3821
3819
  * Module dependencies
3822
3820
  */
3823
3821
 
3824
- var XMLHttpRequest = __webpack_require__(19);
3825
- var XHR = __webpack_require__(21);
3826
- var JSONP = __webpack_require__(37);
3827
- var websocket = __webpack_require__(38);
3822
+ var XMLHttpRequest = __webpack_require__(18);
3823
+ var XHR = __webpack_require__(20);
3824
+ var JSONP = __webpack_require__(35);
3825
+ var websocket = __webpack_require__(36);
3828
3826
 
3829
3827
  /**
3830
3828
  * Export transports.
@@ -3840,14 +3838,14 @@ return /******/ (function(modules) { // webpackBootstrap
3840
3838
  * @api private
3841
3839
  */
3842
3840
 
3843
- function polling(opts){
3841
+ function polling (opts) {
3844
3842
  var xhr;
3845
3843
  var xd = false;
3846
3844
  var xs = false;
3847
3845
  var jsonp = false !== opts.jsonp;
3848
3846
 
3849
3847
  if (global.location) {
3850
- var isSSL = 'https:' == location.protocol;
3848
+ var isSSL = 'https:' === location.protocol;
3851
3849
  var port = location.port;
3852
3850
 
3853
3851
  // some user agents have empty `location.port`
@@ -3855,8 +3853,8 @@ return /******/ (function(modules) { // webpackBootstrap
3855
3853
  port = isSSL ? 443 : 80;
3856
3854
  }
3857
3855
 
3858
- xd = opts.hostname != location.hostname || port != opts.port;
3859
- xs = opts.secure != isSSL;
3856
+ xd = opts.hostname !== location.hostname || port !== opts.port;
3857
+ xs = opts.secure !== isSSL;
3860
3858
  }
3861
3859
 
3862
3860
  opts.xdomain = xd;
@@ -3874,13 +3872,17 @@ return /******/ (function(modules) { // webpackBootstrap
3874
3872
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
3875
3873
 
3876
3874
  /***/ },
3877
- /* 19 */
3875
+ /* 18 */
3878
3876
  /***/ function(module, exports, __webpack_require__) {
3879
3877
 
3880
3878
  // browser shim for xmlhttprequest module
3881
- var hasCORS = __webpack_require__(20);
3882
3879
 
3883
- module.exports = function(opts) {
3880
+ // Indicate to eslint that ActiveXObject is global
3881
+ /* global ActiveXObject */
3882
+
3883
+ var hasCORS = __webpack_require__(19);
3884
+
3885
+ module.exports = function (opts) {
3884
3886
  var xdomain = opts.xdomain;
3885
3887
 
3886
3888
  // scheme must be same when usign XDomainRequest
@@ -3893,7 +3895,7 @@ return /******/ (function(modules) { // webpackBootstrap
3893
3895
 
3894
3896
  // XMLHttpRequest can be disabled on IE
3895
3897
  try {
3896
- if ('undefined' != typeof XMLHttpRequest && (!xdomain || hasCORS)) {
3898
+ if ('undefined' !== typeof XMLHttpRequest && (!xdomain || hasCORS)) {
3897
3899
  return new XMLHttpRequest();
3898
3900
  }
3899
3901
  } catch (e) { }
@@ -3902,7 +3904,7 @@ return /******/ (function(modules) { // webpackBootstrap
3902
3904
  // because loading bar keeps flashing when using jsonp-polling
3903
3905
  // https://github.com/yujiosaka/socke.io-ie8-loading-example
3904
3906
  try {
3905
- if ('undefined' != typeof XDomainRequest && !xscheme && enablesXDR) {
3907
+ if ('undefined' !== typeof XDomainRequest && !xscheme && enablesXDR) {
3906
3908
  return new XDomainRequest();
3907
3909
  }
3908
3910
  } catch (e) { }
@@ -3910,13 +3912,13 @@ return /******/ (function(modules) { // webpackBootstrap
3910
3912
  if (!xdomain) {
3911
3913
  try {
3912
3914
  return new ActiveXObject('Microsoft.XMLHTTP');
3913
- } catch(e) { }
3915
+ } catch (e) { }
3914
3916
  }
3915
- }
3917
+ };
3916
3918
 
3917
3919
 
3918
3920
  /***/ },
3919
- /* 20 */
3921
+ /* 19 */
3920
3922
  /***/ function(module, exports) {
3921
3923
 
3922
3924
 
@@ -3939,17 +3941,17 @@ return /******/ (function(modules) { // webpackBootstrap
3939
3941
 
3940
3942
 
3941
3943
  /***/ },
3942
- /* 21 */
3944
+ /* 20 */
3943
3945
  /***/ function(module, exports, __webpack_require__) {
3944
3946
 
3945
3947
  /* WEBPACK VAR INJECTION */(function(global) {/**
3946
3948
  * Module requirements.
3947
3949
  */
3948
3950
 
3949
- var XMLHttpRequest = __webpack_require__(19);
3950
- var Polling = __webpack_require__(22);
3951
- var Emitter = __webpack_require__(33);
3952
- var inherit = __webpack_require__(35);
3951
+ var XMLHttpRequest = __webpack_require__(18);
3952
+ var Polling = __webpack_require__(21);
3953
+ var Emitter = __webpack_require__(31);
3954
+ var inherit = __webpack_require__(33);
3953
3955
  var debug = __webpack_require__(3)('engine.io-client:polling-xhr');
3954
3956
 
3955
3957
  /**
@@ -3963,7 +3965,7 @@ return /******/ (function(modules) { // webpackBootstrap
3963
3965
  * Empty function
3964
3966
  */
3965
3967
 
3966
- function empty(){}
3968
+ function empty () {}
3967
3969
 
3968
3970
  /**
3969
3971
  * XHR Polling constructor.
@@ -3972,11 +3974,11 @@ return /******/ (function(modules) { // webpackBootstrap
3972
3974
  * @api public
3973
3975
  */
3974
3976
 
3975
- function XHR(opts){
3977
+ function XHR (opts) {
3976
3978
  Polling.call(this, opts);
3977
3979
 
3978
3980
  if (global.location) {
3979
- var isSSL = 'https:' == location.protocol;
3981
+ var isSSL = 'https:' === location.protocol;
3980
3982
  var port = location.port;
3981
3983
 
3982
3984
  // some user agents have empty `location.port`
@@ -3984,9 +3986,9 @@ return /******/ (function(modules) { // webpackBootstrap
3984
3986
  port = isSSL ? 443 : 80;
3985
3987
  }
3986
3988
 
3987
- this.xd = opts.hostname != global.location.hostname ||
3988
- port != opts.port;
3989
- this.xs = opts.secure != isSSL;
3989
+ this.xd = opts.hostname !== global.location.hostname ||
3990
+ port !== opts.port;
3991
+ this.xs = opts.secure !== isSSL;
3990
3992
  } else {
3991
3993
  this.extraHeaders = opts.extraHeaders;
3992
3994
  }
@@ -4011,7 +4013,7 @@ return /******/ (function(modules) { // webpackBootstrap
4011
4013
  * @api private
4012
4014
  */
4013
4015
 
4014
- XHR.prototype.request = function(opts){
4016
+ XHR.prototype.request = function (opts) {
4015
4017
  opts = opts || {};
4016
4018
  opts.uri = this.uri();
4017
4019
  opts.xd = this.xd;
@@ -4043,12 +4045,12 @@ return /******/ (function(modules) { // webpackBootstrap
4043
4045
  * @api private
4044
4046
  */
4045
4047
 
4046
- XHR.prototype.doWrite = function(data, fn){
4048
+ XHR.prototype.doWrite = function (data, fn) {
4047
4049
  var isBinary = typeof data !== 'string' && data !== undefined;
4048
4050
  var req = this.request({ method: 'POST', data: data, isBinary: isBinary });
4049
4051
  var self = this;
4050
4052
  req.on('success', fn);
4051
- req.on('error', function(err){
4053
+ req.on('error', function (err) {
4052
4054
  self.onError('xhr post error', err);
4053
4055
  });
4054
4056
  this.sendXhr = req;
@@ -4060,14 +4062,14 @@ return /******/ (function(modules) { // webpackBootstrap
4060
4062
  * @api private
4061
4063
  */
4062
4064
 
4063
- XHR.prototype.doPoll = function(){
4065
+ XHR.prototype.doPoll = function () {
4064
4066
  debug('xhr poll');
4065
4067
  var req = this.request();
4066
4068
  var self = this;
4067
- req.on('data', function(data){
4069
+ req.on('data', function (data) {
4068
4070
  self.onData(data);
4069
4071
  });
4070
- req.on('error', function(err){
4072
+ req.on('error', function (err) {
4071
4073
  self.onError('xhr poll error', err);
4072
4074
  });
4073
4075
  this.pollXhr = req;
@@ -4080,13 +4082,13 @@ return /******/ (function(modules) { // webpackBootstrap
4080
4082
  * @api public
4081
4083
  */
4082
4084
 
4083
- function Request(opts){
4085
+ function Request (opts) {
4084
4086
  this.method = opts.method || 'GET';
4085
4087
  this.uri = opts.uri;
4086
4088
  this.xd = !!opts.xd;
4087
4089
  this.xs = !!opts.xs;
4088
4090
  this.async = false !== opts.async;
4089
- this.data = undefined != opts.data ? opts.data : null;
4091
+ this.data = undefined !== opts.data ? opts.data : null;
4090
4092
  this.agent = opts.agent;
4091
4093
  this.isBinary = opts.isBinary;
4092
4094
  this.supportsBinary = opts.supportsBinary;
@@ -4119,7 +4121,7 @@ return /******/ (function(modules) { // webpackBootstrap
4119
4121
  * @api private
4120
4122
  */
4121
4123
 
4122
- Request.prototype.create = function(){
4124
+ Request.prototype.create = function () {
4123
4125
  var opts = { agent: this.agent, xdomain: this.xd, xscheme: this.xs, enablesXDR: this.enablesXDR };
4124
4126
 
4125
4127
  // SSL options for Node.js client
@@ -4153,7 +4155,7 @@ return /******/ (function(modules) { // webpackBootstrap
4153
4155
  xhr.responseType = 'arraybuffer';
4154
4156
  }
4155
4157
 
4156
- if ('POST' == this.method) {
4158
+ if ('POST' === this.method) {
4157
4159
  try {
4158
4160
  if (this.isBinary) {
4159
4161
  xhr.setRequestHeader('Content-type', 'application/octet-stream');
@@ -4169,21 +4171,21 @@ return /******/ (function(modules) { // webpackBootstrap
4169
4171
  }
4170
4172
 
4171
4173
  if (this.hasXDR()) {
4172
- xhr.onload = function(){
4174
+ xhr.onload = function () {
4173
4175
  self.onLoad();
4174
4176
  };
4175
- xhr.onerror = function(){
4177
+ xhr.onerror = function () {
4176
4178
  self.onError(xhr.responseText);
4177
4179
  };
4178
4180
  } else {
4179
- xhr.onreadystatechange = function(){
4180
- if (4 != xhr.readyState) return;
4181
- if (200 == xhr.status || 1223 == xhr.status) {
4181
+ xhr.onreadystatechange = function () {
4182
+ if (4 !== xhr.readyState) return;
4183
+ if (200 === xhr.status || 1223 === xhr.status) {
4182
4184
  self.onLoad();
4183
4185
  } else {
4184
4186
  // make sure the `error` event handler that's user-set
4185
4187
  // does not throw in the same tick and gets caught here
4186
- setTimeout(function(){
4188
+ setTimeout(function () {
4187
4189
  self.onError(xhr.status);
4188
4190
  }, 0);
4189
4191
  }
@@ -4196,7 +4198,7 @@ return /******/ (function(modules) { // webpackBootstrap
4196
4198
  // Need to defer since .create() is called directly fhrom the constructor
4197
4199
  // and thus the 'error' event can only be only bound *after* this exception
4198
4200
  // occurs. Therefore, also, we cannot throw here at all.
4199
- setTimeout(function() {
4201
+ setTimeout(function () {
4200
4202
  self.onError(e);
4201
4203
  }, 0);
4202
4204
  return;
@@ -4214,7 +4216,7 @@ return /******/ (function(modules) { // webpackBootstrap
4214
4216
  * @api private
4215
4217
  */
4216
4218
 
4217
- Request.prototype.onSuccess = function(){
4219
+ Request.prototype.onSuccess = function () {
4218
4220
  this.emit('success');
4219
4221
  this.cleanup();
4220
4222
  };
@@ -4225,7 +4227,7 @@ return /******/ (function(modules) { // webpackBootstrap
4225
4227
  * @api private
4226
4228
  */
4227
4229
 
4228
- Request.prototype.onData = function(data){
4230
+ Request.prototype.onData = function (data) {
4229
4231
  this.emit('data', data);
4230
4232
  this.onSuccess();
4231
4233
  };
@@ -4236,7 +4238,7 @@ return /******/ (function(modules) { // webpackBootstrap
4236
4238
  * @api private
4237
4239
  */
4238
4240
 
4239
- Request.prototype.onError = function(err){
4241
+ Request.prototype.onError = function (err) {
4240
4242
  this.emit('error', err);
4241
4243
  this.cleanup(true);
4242
4244
  };
@@ -4247,8 +4249,8 @@ return /******/ (function(modules) { // webpackBootstrap
4247
4249
  * @api private
4248
4250
  */
4249
4251
 
4250
- Request.prototype.cleanup = function(fromError){
4251
- if ('undefined' == typeof this.xhr || null === this.xhr) {
4252
+ Request.prototype.cleanup = function (fromError) {
4253
+ if ('undefined' === typeof this.xhr || null === this.xhr) {
4252
4254
  return;
4253
4255
  }
4254
4256
  // xmlhttprequest
@@ -4261,7 +4263,7 @@ return /******/ (function(modules) { // webpackBootstrap
4261
4263
  if (fromError) {
4262
4264
  try {
4263
4265
  this.xhr.abort();
4264
- } catch(e) {}
4266
+ } catch (e) {}
4265
4267
  }
4266
4268
 
4267
4269
  if (global.document) {
@@ -4277,7 +4279,7 @@ return /******/ (function(modules) { // webpackBootstrap
4277
4279
  * @api private
4278
4280
  */
4279
4281
 
4280
- Request.prototype.onLoad = function(){
4282
+ Request.prototype.onLoad = function () {
4281
4283
  var data;
4282
4284
  try {
4283
4285
  var contentType;
@@ -4285,7 +4287,7 @@ return /******/ (function(modules) { // webpackBootstrap
4285
4287
  contentType = this.xhr.getResponseHeader('Content-Type').split(';')[0];
4286
4288
  } catch (e) {}
4287
4289
  if (contentType === 'application/octet-stream') {
4288
- data = this.xhr.response;
4290
+ data = this.xhr.response || this.xhr.responseText;
4289
4291
  } else {
4290
4292
  if (!this.supportsBinary) {
4291
4293
  data = this.xhr.responseText;
@@ -4317,7 +4319,7 @@ return /******/ (function(modules) { // webpackBootstrap
4317
4319
  * @api private
4318
4320
  */
4319
4321
 
4320
- Request.prototype.hasXDR = function(){
4322
+ Request.prototype.hasXDR = function () {
4321
4323
  return 'undefined' !== typeof global.XDomainRequest && !this.xs && this.enablesXDR;
4322
4324
  };
4323
4325
 
@@ -4327,7 +4329,7 @@ return /******/ (function(modules) { // webpackBootstrap
4327
4329
  * @api public
4328
4330
  */
4329
4331
 
4330
- Request.prototype.abort = function(){
4332
+ Request.prototype.abort = function () {
4331
4333
  this.cleanup();
4332
4334
  };
4333
4335
 
@@ -4337,9 +4339,10 @@ return /******/ (function(modules) { // webpackBootstrap
4337
4339
  * emitted.
4338
4340
  */
4339
4341
 
4342
+ Request.requestsCount = 0;
4343
+ Request.requests = {};
4344
+
4340
4345
  if (global.document) {
4341
- Request.requestsCount = 0;
4342
- Request.requests = {};
4343
4346
  if (global.attachEvent) {
4344
4347
  global.attachEvent('onunload', unloadHandler);
4345
4348
  } else if (global.addEventListener) {
@@ -4347,7 +4350,7 @@ return /******/ (function(modules) { // webpackBootstrap
4347
4350
  }
4348
4351
  }
4349
4352
 
4350
- function unloadHandler() {
4353
+ function unloadHandler () {
4351
4354
  for (var i in Request.requests) {
4352
4355
  if (Request.requests.hasOwnProperty(i)) {
4353
4356
  Request.requests[i].abort();
@@ -4358,18 +4361,18 @@ return /******/ (function(modules) { // webpackBootstrap
4358
4361
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
4359
4362
 
4360
4363
  /***/ },
4361
- /* 22 */
4364
+ /* 21 */
4362
4365
  /***/ function(module, exports, __webpack_require__) {
4363
4366
 
4364
4367
  /**
4365
4368
  * Module dependencies.
4366
4369
  */
4367
4370
 
4368
- var Transport = __webpack_require__(23);
4369
- var parseqs = __webpack_require__(34);
4370
- var parser = __webpack_require__(24);
4371
- var inherit = __webpack_require__(35);
4372
- var yeast = __webpack_require__(36);
4371
+ var Transport = __webpack_require__(22);
4372
+ var parseqs = __webpack_require__(32);
4373
+ var parser = __webpack_require__(23);
4374
+ var inherit = __webpack_require__(33);
4375
+ var yeast = __webpack_require__(34);
4373
4376
  var debug = __webpack_require__(3)('engine.io-client:polling');
4374
4377
 
4375
4378
  /**
@@ -4382,8 +4385,8 @@ return /******/ (function(modules) { // webpackBootstrap
4382
4385
  * Is XHR2 supported?
4383
4386
  */
4384
4387
 
4385
- var hasXHR2 = (function() {
4386
- var XMLHttpRequest = __webpack_require__(19);
4388
+ var hasXHR2 = (function () {
4389
+ var XMLHttpRequest = __webpack_require__(18);
4387
4390
  var xhr = new XMLHttpRequest({ xdomain: false });
4388
4391
  return null != xhr.responseType;
4389
4392
  })();
@@ -4395,7 +4398,7 @@ return /******/ (function(modules) { // webpackBootstrap
4395
4398
  * @api private
4396
4399
  */
4397
4400
 
4398
- function Polling(opts){
4401
+ function Polling (opts) {
4399
4402
  var forceBase64 = (opts && opts.forceBase64);
4400
4403
  if (!hasXHR2 || forceBase64) {
4401
4404
  this.supportsBinary = false;
@@ -4422,7 +4425,7 @@ return /******/ (function(modules) { // webpackBootstrap
4422
4425
  * @api private
4423
4426
  */
4424
4427
 
4425
- Polling.prototype.doOpen = function(){
4428
+ Polling.prototype.doOpen = function () {
4426
4429
  this.poll();
4427
4430
  };
4428
4431
 
@@ -4433,13 +4436,12 @@ return /******/ (function(modules) { // webpackBootstrap
4433
4436
  * @api private
4434
4437
  */
4435
4438
 
4436
- Polling.prototype.pause = function(onPause){
4437
- var pending = 0;
4439
+ Polling.prototype.pause = function (onPause) {
4438
4440
  var self = this;
4439
4441
 
4440
4442
  this.readyState = 'pausing';
4441
4443
 
4442
- function pause(){
4444
+ function pause () {
4443
4445
  debug('paused');
4444
4446
  self.readyState = 'paused';
4445
4447
  onPause();
@@ -4451,7 +4453,7 @@ return /******/ (function(modules) { // webpackBootstrap
4451
4453
  if (this.polling) {
4452
4454
  debug('we are currently polling - waiting to pause');
4453
4455
  total++;
4454
- this.once('pollComplete', function(){
4456
+ this.once('pollComplete', function () {
4455
4457
  debug('pre-pause polling complete');
4456
4458
  --total || pause();
4457
4459
  });
@@ -4460,7 +4462,7 @@ return /******/ (function(modules) { // webpackBootstrap
4460
4462
  if (!this.writable) {
4461
4463
  debug('we are currently writing - waiting to pause');
4462
4464
  total++;
4463
- this.once('drain', function(){
4465
+ this.once('drain', function () {
4464
4466
  debug('pre-pause writing complete');
4465
4467
  --total || pause();
4466
4468
  });
@@ -4476,7 +4478,7 @@ return /******/ (function(modules) { // webpackBootstrap
4476
4478
  * @api public
4477
4479
  */
4478
4480
 
4479
- Polling.prototype.poll = function(){
4481
+ Polling.prototype.poll = function () {
4480
4482
  debug('polling');
4481
4483
  this.polling = true;
4482
4484
  this.doPoll();
@@ -4489,17 +4491,17 @@ return /******/ (function(modules) { // webpackBootstrap
4489
4491
  * @api private
4490
4492
  */
4491
4493
 
4492
- Polling.prototype.onData = function(data){
4494
+ Polling.prototype.onData = function (data) {
4493
4495
  var self = this;
4494
4496
  debug('polling got data %s', data);
4495
- var callback = function(packet, index, total) {
4497
+ var callback = function (packet, index, total) {
4496
4498
  // if its the first message we consider the transport open
4497
- if ('opening' == self.readyState) {
4499
+ if ('opening' === self.readyState) {
4498
4500
  self.onOpen();
4499
4501
  }
4500
4502
 
4501
4503
  // if its a close packet, we close the ongoing requests
4502
- if ('close' == packet.type) {
4504
+ if ('close' === packet.type) {
4503
4505
  self.onClose();
4504
4506
  return false;
4505
4507
  }
@@ -4512,12 +4514,12 @@ return /******/ (function(modules) { // webpackBootstrap
4512
4514
  parser.decodePayload(data, this.socket.binaryType, callback);
4513
4515
 
4514
4516
  // if an event did not trigger closing
4515
- if ('closed' != this.readyState) {
4517
+ if ('closed' !== this.readyState) {
4516
4518
  // if we got data we're not polling
4517
4519
  this.polling = false;
4518
4520
  this.emit('pollComplete');
4519
4521
 
4520
- if ('open' == this.readyState) {
4522
+ if ('open' === this.readyState) {
4521
4523
  this.poll();
4522
4524
  } else {
4523
4525
  debug('ignoring poll - transport state "%s"', this.readyState);
@@ -4531,15 +4533,15 @@ return /******/ (function(modules) { // webpackBootstrap
4531
4533
  * @api private
4532
4534
  */
4533
4535
 
4534
- Polling.prototype.doClose = function(){
4536
+ Polling.prototype.doClose = function () {
4535
4537
  var self = this;
4536
4538
 
4537
- function close(){
4539
+ function close () {
4538
4540
  debug('writing close packet');
4539
4541
  self.write([{ type: 'close' }]);
4540
4542
  }
4541
4543
 
4542
- if ('open' == this.readyState) {
4544
+ if ('open' === this.readyState) {
4543
4545
  debug('transport open - closing');
4544
4546
  close();
4545
4547
  } else {
@@ -4558,16 +4560,15 @@ return /******/ (function(modules) { // webpackBootstrap
4558
4560
  * @api private
4559
4561
  */
4560
4562
 
4561
- Polling.prototype.write = function(packets){
4563
+ Polling.prototype.write = function (packets) {
4562
4564
  var self = this;
4563
4565
  this.writable = false;
4564
- var callbackfn = function() {
4566
+ var callbackfn = function () {
4565
4567
  self.writable = true;
4566
4568
  self.emit('drain');
4567
4569
  };
4568
4570
 
4569
- var self = this;
4570
- parser.encodePayload(packets, this.supportsBinary, function(data) {
4571
+ parser.encodePayload(packets, this.supportsBinary, function (data) {
4571
4572
  self.doWrite(data, callbackfn);
4572
4573
  });
4573
4574
  };
@@ -4578,7 +4579,7 @@ return /******/ (function(modules) { // webpackBootstrap
4578
4579
  * @api private
4579
4580
  */
4580
4581
 
4581
- Polling.prototype.uri = function(){
4582
+ Polling.prototype.uri = function () {
4582
4583
  var query = this.query || {};
4583
4584
  var schema = this.secure ? 'https' : 'http';
4584
4585
  var port = '';
@@ -4595,8 +4596,8 @@ return /******/ (function(modules) { // webpackBootstrap
4595
4596
  query = parseqs.encode(query);
4596
4597
 
4597
4598
  // avoid port if default for schema
4598
- if (this.port && (('https' == schema && this.port != 443) ||
4599
- ('http' == schema && this.port != 80))) {
4599
+ if (this.port && (('https' === schema && this.port !== 443) ||
4600
+ ('http' === schema && this.port !== 80))) {
4600
4601
  port = ':' + this.port;
4601
4602
  }
4602
4603
 
@@ -4611,15 +4612,15 @@ return /******/ (function(modules) { // webpackBootstrap
4611
4612
 
4612
4613
 
4613
4614
  /***/ },
4614
- /* 23 */
4615
+ /* 22 */
4615
4616
  /***/ function(module, exports, __webpack_require__) {
4616
4617
 
4617
4618
  /**
4618
4619
  * Module dependencies.
4619
4620
  */
4620
4621
 
4621
- var parser = __webpack_require__(24);
4622
- var Emitter = __webpack_require__(33);
4622
+ var parser = __webpack_require__(23);
4623
+ var Emitter = __webpack_require__(31);
4623
4624
 
4624
4625
  /**
4625
4626
  * Module exports.
@@ -4689,7 +4690,7 @@ return /******/ (function(modules) { // webpackBootstrap
4689
4690
  */
4690
4691
 
4691
4692
  Transport.prototype.open = function () {
4692
- if ('closed' == this.readyState || '' == this.readyState) {
4693
+ if ('closed' === this.readyState || '' === this.readyState) {
4693
4694
  this.readyState = 'opening';
4694
4695
  this.doOpen();
4695
4696
  }
@@ -4704,7 +4705,7 @@ return /******/ (function(modules) { // webpackBootstrap
4704
4705
  */
4705
4706
 
4706
4707
  Transport.prototype.close = function () {
4707
- if ('opening' == this.readyState || 'open' == this.readyState) {
4708
+ if ('opening' === this.readyState || 'open' === this.readyState) {
4708
4709
  this.doClose();
4709
4710
  this.onClose();
4710
4711
  }
@@ -4719,8 +4720,8 @@ return /******/ (function(modules) { // webpackBootstrap
4719
4720
  * @api private
4720
4721
  */
4721
4722
 
4722
- Transport.prototype.send = function(packets){
4723
- if ('open' == this.readyState) {
4723
+ Transport.prototype.send = function (packets) {
4724
+ if ('open' === this.readyState) {
4724
4725
  this.write(packets);
4725
4726
  } else {
4726
4727
  throw new Error('Transport not open');
@@ -4746,7 +4747,7 @@ return /******/ (function(modules) { // webpackBootstrap
4746
4747
  * @api private
4747
4748
  */
4748
4749
 
4749
- Transport.prototype.onData = function(data){
4750
+ Transport.prototype.onData = function (data) {
4750
4751
  var packet = parser.decodePacket(data, this.socket.binaryType);
4751
4752
  this.onPacket(packet);
4752
4753
  };
@@ -4772,19 +4773,23 @@ return /******/ (function(modules) { // webpackBootstrap
4772
4773
 
4773
4774
 
4774
4775
  /***/ },
4775
- /* 24 */
4776
+ /* 23 */
4776
4777
  /***/ function(module, exports, __webpack_require__) {
4777
4778
 
4778
4779
  /* WEBPACK VAR INJECTION */(function(global) {/**
4779
4780
  * Module dependencies.
4780
4781
  */
4781
4782
 
4782
- var keys = __webpack_require__(25);
4783
- var hasBinary = __webpack_require__(26);
4784
- var sliceBuffer = __webpack_require__(28);
4785
- var base64encoder = __webpack_require__(29);
4786
- var after = __webpack_require__(30);
4787
- var utf8 = __webpack_require__(31);
4783
+ var keys = __webpack_require__(24);
4784
+ var hasBinary = __webpack_require__(25);
4785
+ var sliceBuffer = __webpack_require__(26);
4786
+ var after = __webpack_require__(27);
4787
+ var utf8 = __webpack_require__(28);
4788
+
4789
+ var base64encoder;
4790
+ if (global && global.ArrayBuffer) {
4791
+ base64encoder = __webpack_require__(29);
4792
+ }
4788
4793
 
4789
4794
  /**
4790
4795
  * Check if we are running an android browser. That requires us to use
@@ -4793,7 +4798,7 @@ return /******/ (function(modules) { // webpackBootstrap
4793
4798
  * http://ghinda.net/jpeg-blob-ajax-android/
4794
4799
  */
4795
4800
 
4796
- var isAndroid = navigator.userAgent.match(/Android/i);
4801
+ var isAndroid = typeof navigator !== 'undefined' && /Android/i.test(navigator.userAgent);
4797
4802
 
4798
4803
  /**
4799
4804
  * Check if we are running in PhantomJS.
@@ -4801,7 +4806,7 @@ return /******/ (function(modules) { // webpackBootstrap
4801
4806
  * https://github.com/ariya/phantomjs/issues/11395
4802
4807
  * @type boolean
4803
4808
  */
4804
- var isPhantomJS = /PhantomJS/i.test(navigator.userAgent);
4809
+ var isPhantomJS = typeof navigator !== 'undefined' && /PhantomJS/i.test(navigator.userAgent);
4805
4810
 
4806
4811
  /**
4807
4812
  * When true, avoids using Blobs to encode payloads.
@@ -4841,7 +4846,7 @@ return /******/ (function(modules) { // webpackBootstrap
4841
4846
  * Create a blob api even for blob builder when vendor prefixes exist
4842
4847
  */
4843
4848
 
4844
- var Blob = __webpack_require__(32);
4849
+ var Blob = __webpack_require__(30);
4845
4850
 
4846
4851
  /**
4847
4852
  * Encodes a packet.
@@ -4995,16 +5000,18 @@ return /******/ (function(modules) { // webpackBootstrap
4995
5000
  */
4996
5001
 
4997
5002
  exports.decodePacket = function (data, binaryType, utf8decode) {
5003
+ if (data === undefined) {
5004
+ return err;
5005
+ }
4998
5006
  // String data
4999
- if (typeof data == 'string' || data === undefined) {
5007
+ if (typeof data == 'string') {
5000
5008
  if (data.charAt(0) == 'b') {
5001
5009
  return exports.decodeBase64Packet(data.substr(1), binaryType);
5002
5010
  }
5003
5011
 
5004
5012
  if (utf8decode) {
5005
- try {
5006
- data = utf8.decode(data);
5007
- } catch (e) {
5013
+ data = tryDecode(data);
5014
+ if (data === false) {
5008
5015
  return err;
5009
5016
  }
5010
5017
  }
@@ -5030,6 +5037,15 @@ return /******/ (function(modules) { // webpackBootstrap
5030
5037
  return { type: packetslist[type], data: rest };
5031
5038
  };
5032
5039
 
5040
+ function tryDecode(data) {
5041
+ try {
5042
+ data = utf8.decode(data);
5043
+ } catch (e) {
5044
+ return false;
5045
+ }
5046
+ return data;
5047
+ }
5048
+
5033
5049
  /**
5034
5050
  * Decodes a packet encoded in a base64 string
5035
5051
  *
@@ -5039,7 +5055,7 @@ return /******/ (function(modules) { // webpackBootstrap
5039
5055
 
5040
5056
  exports.decodeBase64Packet = function(msg, binaryType) {
5041
5057
  var type = packetslist[msg.charAt(0)];
5042
- if (!global.ArrayBuffer) {
5058
+ if (!base64encoder) {
5043
5059
  return { type: type, data: { base64: true, data: msg.substr(1) } };
5044
5060
  }
5045
5061
 
@@ -5373,7 +5389,7 @@ return /******/ (function(modules) { // webpackBootstrap
5373
5389
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
5374
5390
 
5375
5391
  /***/ },
5376
- /* 25 */
5392
+ /* 24 */
5377
5393
  /***/ function(module, exports) {
5378
5394
 
5379
5395
 
@@ -5398,7 +5414,7 @@ return /******/ (function(modules) { // webpackBootstrap
5398
5414
 
5399
5415
 
5400
5416
  /***/ },
5401
- /* 26 */
5417
+ /* 25 */
5402
5418
  /***/ function(module, exports, __webpack_require__) {
5403
5419
 
5404
5420
  /* WEBPACK VAR INJECTION */(function(global) {
@@ -5406,7 +5422,7 @@ return /******/ (function(modules) { // webpackBootstrap
5406
5422
  * Module requirements.
5407
5423
  */
5408
5424
 
5409
- var isArray = __webpack_require__(27);
5425
+ var isArray = __webpack_require__(9);
5410
5426
 
5411
5427
  /**
5412
5428
  * Module exports.
@@ -5463,16 +5479,7 @@ return /******/ (function(modules) { // webpackBootstrap
5463
5479
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
5464
5480
 
5465
5481
  /***/ },
5466
- /* 27 */
5467
- /***/ function(module, exports) {
5468
-
5469
- module.exports = Array.isArray || function (arr) {
5470
- return Object.prototype.toString.call(arr) == '[object Array]';
5471
- };
5472
-
5473
-
5474
- /***/ },
5475
- /* 28 */
5482
+ /* 26 */
5476
5483
  /***/ function(module, exports) {
5477
5484
 
5478
5485
  /**
@@ -5507,72 +5514,7 @@ return /******/ (function(modules) { // webpackBootstrap
5507
5514
 
5508
5515
 
5509
5516
  /***/ },
5510
- /* 29 */
5511
- /***/ function(module, exports) {
5512
-
5513
- /*
5514
- * base64-arraybuffer
5515
- * https://github.com/niklasvh/base64-arraybuffer
5516
- *
5517
- * Copyright (c) 2012 Niklas von Hertzen
5518
- * Licensed under the MIT license.
5519
- */
5520
- (function(chars){
5521
- "use strict";
5522
-
5523
- exports.encode = function(arraybuffer) {
5524
- var bytes = new Uint8Array(arraybuffer),
5525
- i, len = bytes.length, base64 = "";
5526
-
5527
- for (i = 0; i < len; i+=3) {
5528
- base64 += chars[bytes[i] >> 2];
5529
- base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];
5530
- base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];
5531
- base64 += chars[bytes[i + 2] & 63];
5532
- }
5533
-
5534
- if ((len % 3) === 2) {
5535
- base64 = base64.substring(0, base64.length - 1) + "=";
5536
- } else if (len % 3 === 1) {
5537
- base64 = base64.substring(0, base64.length - 2) + "==";
5538
- }
5539
-
5540
- return base64;
5541
- };
5542
-
5543
- exports.decode = function(base64) {
5544
- var bufferLength = base64.length * 0.75,
5545
- len = base64.length, i, p = 0,
5546
- encoded1, encoded2, encoded3, encoded4;
5547
-
5548
- if (base64[base64.length - 1] === "=") {
5549
- bufferLength--;
5550
- if (base64[base64.length - 2] === "=") {
5551
- bufferLength--;
5552
- }
5553
- }
5554
-
5555
- var arraybuffer = new ArrayBuffer(bufferLength),
5556
- bytes = new Uint8Array(arraybuffer);
5557
-
5558
- for (i = 0; i < len; i+=4) {
5559
- encoded1 = chars.indexOf(base64[i]);
5560
- encoded2 = chars.indexOf(base64[i+1]);
5561
- encoded3 = chars.indexOf(base64[i+2]);
5562
- encoded4 = chars.indexOf(base64[i+3]);
5563
-
5564
- bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
5565
- bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
5566
- bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
5567
- }
5568
-
5569
- return arraybuffer;
5570
- };
5571
- })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
5572
-
5573
-
5574
- /***/ },
5575
- /* 30 */
5517
+ /* 27 */
5576
5518
  /***/ function(module, exports) {
5577
5519
 
5578
5520
  module.exports = after
@@ -5606,10 +5548,10 @@ return /******/ (function(modules) { // webpackBootstrap
5606
5548
 
5607
5549
 
5608
5550
  /***/ },
5609
- /* 31 */
5551
+ /* 28 */
5610
5552
  /***/ function(module, exports, __webpack_require__) {
5611
5553
 
5612
- var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/*! https://mths.be/utf8js v2.0.0 by @mathias */
5554
+ var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/*! https://mths.be/wtf8 v1.0.0 by @mathias */
5613
5555
  ;(function(root) {
5614
5556
 
5615
5557
  // Detect free variables `exports`
@@ -5675,14 +5617,6 @@ return /******/ (function(modules) { // webpackBootstrap
5675
5617
  return output;
5676
5618
  }
5677
5619
 
5678
- function checkScalarValue(codePoint) {
5679
- if (codePoint >= 0xD800 && codePoint <= 0xDFFF) {
5680
- throw Error(
5681
- 'Lone surrogate U+' + codePoint.toString(16).toUpperCase() +
5682
- ' is not a scalar value'
5683
- );
5684
- }
5685
- }
5686
5620
  /*--------------------------------------------------------------------------*/
5687
5621
 
5688
5622
  function createByte(codePoint, shift) {
@@ -5698,7 +5632,6 @@ return /******/ (function(modules) { // webpackBootstrap
5698
5632
  symbol = stringFromCharCode(((codePoint >> 6) & 0x1F) | 0xC0);
5699
5633
  }
5700
5634
  else if ((codePoint & 0xFFFF0000) == 0) { // 3-byte sequence
5701
- checkScalarValue(codePoint);
5702
5635
  symbol = stringFromCharCode(((codePoint >> 12) & 0x0F) | 0xE0);
5703
5636
  symbol += createByte(codePoint, 6);
5704
5637
  }
@@ -5711,7 +5644,7 @@ return /******/ (function(modules) { // webpackBootstrap
5711
5644
  return symbol;
5712
5645
  }
5713
5646
 
5714
- function utf8encode(string) {
5647
+ function wtf8encode(string) {
5715
5648
  var codePoints = ucs2decode(string);
5716
5649
  var length = codePoints.length;
5717
5650
  var index = -1;
@@ -5738,7 +5671,7 @@ return /******/ (function(modules) { // webpackBootstrap
5738
5671
  return continuationByte & 0x3F;
5739
5672
  }
5740
5673
 
5741
- // If we end up here, it’s not a continuation byte
5674
+ // If we end up here, it’s not a continuation byte.
5742
5675
  throw Error('Invalid continuation byte');
5743
5676
  }
5744
5677
 
@@ -5757,7 +5690,7 @@ return /******/ (function(modules) { // webpackBootstrap
5757
5690
  return false;
5758
5691
  }
5759
5692
 
5760
- // Read first byte
5693
+ // Read the first byte.
5761
5694
  byte1 = byteArray[byteIndex] & 0xFF;
5762
5695
  byteIndex++;
5763
5696
 
@@ -5783,7 +5716,6 @@ return /******/ (function(modules) { // webpackBootstrap
5783
5716
  byte3 = readContinuationByte();
5784
5717
  codePoint = ((byte1 & 0x0F) << 12) | (byte2 << 6) | byte3;
5785
5718
  if (codePoint >= 0x0800) {
5786
- checkScalarValue(codePoint);
5787
5719
  return codePoint;
5788
5720
  } else {
5789
5721
  throw Error('Invalid continuation byte');
@@ -5802,13 +5734,13 @@ return /******/ (function(modules) { // webpackBootstrap
5802
5734
  }
5803
5735
  }
5804
5736
 
5805
- throw Error('Invalid UTF-8 detected');
5737
+ throw Error('Invalid WTF-8 detected');
5806
5738
  }
5807
5739
 
5808
5740
  var byteArray;
5809
5741
  var byteCount;
5810
5742
  var byteIndex;
5811
- function utf8decode(byteString) {
5743
+ function wtf8decode(byteString) {
5812
5744
  byteArray = ucs2decode(byteString);
5813
5745
  byteCount = byteArray.length;
5814
5746
  byteIndex = 0;
@@ -5822,10 +5754,10 @@ return /******/ (function(modules) { // webpackBootstrap
5822
5754
 
5823
5755
  /*--------------------------------------------------------------------------*/
5824
5756
 
5825
- var utf8 = {
5826
- 'version': '2.0.0',
5827
- 'encode': utf8encode,
5828
- 'decode': utf8decode
5757
+ var wtf8 = {
5758
+ 'version': '1.0.0',
5759
+ 'encode': wtf8encode,
5760
+ 'decode': wtf8decode
5829
5761
  };
5830
5762
 
5831
5763
  // Some AMD build optimizers, like r.js, check for specific condition patterns
@@ -5834,20 +5766,20 @@ return /******/ (function(modules) { // webpackBootstrap
5834
5766
  true
5835
5767
  ) {
5836
5768
  !(__WEBPACK_AMD_DEFINE_RESULT__ = function() {
5837
- return utf8;
5769
+ return wtf8;
5838
5770
  }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
5839
5771
  } else if (freeExports && !freeExports.nodeType) {
5840
5772
  if (freeModule) { // in Node.js or RingoJS v0.8.0+
5841
- freeModule.exports = utf8;
5773
+ freeModule.exports = wtf8;
5842
5774
  } else { // in Narwhal or RingoJS v0.7.0-
5843
5775
  var object = {};
5844
5776
  var hasOwnProperty = object.hasOwnProperty;
5845
- for (var key in utf8) {
5846
- hasOwnProperty.call(utf8, key) && (freeExports[key] = utf8[key]);
5777
+ for (var key in wtf8) {
5778
+ hasOwnProperty.call(wtf8, key) && (freeExports[key] = wtf8[key]);
5847
5779
  }
5848
5780
  }
5849
5781
  } else { // in Rhino or a web browser
5850
- root.utf8 = utf8;
5782
+ root.wtf8 = wtf8;
5851
5783
  }
5852
5784
 
5853
5785
  }(this));
@@ -5855,7 +5787,80 @@ return /******/ (function(modules) { // webpackBootstrap
5855
5787
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8)(module), (function() { return this; }())))
5856
5788
 
5857
5789
  /***/ },
5858
- /* 32 */
5790
+ /* 29 */
5791
+ /***/ function(module, exports) {
5792
+
5793
+ /*
5794
+ * base64-arraybuffer
5795
+ * https://github.com/niklasvh/base64-arraybuffer
5796
+ *
5797
+ * Copyright (c) 2012 Niklas von Hertzen
5798
+ * Licensed under the MIT license.
5799
+ */
5800
+ (function(){
5801
+ "use strict";
5802
+
5803
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
5804
+
5805
+ // Use a lookup table to find the index.
5806
+ var lookup = new Uint8Array(256);
5807
+ for (var i = 0; i < chars.length; i++) {
5808
+ lookup[chars.charCodeAt(i)] = i;
5809
+ }
5810
+
5811
+ exports.encode = function(arraybuffer) {
5812
+ var bytes = new Uint8Array(arraybuffer),
5813
+ i, len = bytes.length, base64 = "";
5814
+
5815
+ for (i = 0; i < len; i+=3) {
5816
+ base64 += chars[bytes[i] >> 2];
5817
+ base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];
5818
+ base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];
5819
+ base64 += chars[bytes[i + 2] & 63];
5820
+ }
5821
+
5822
+ if ((len % 3) === 2) {
5823
+ base64 = base64.substring(0, base64.length - 1) + "=";
5824
+ } else if (len % 3 === 1) {
5825
+ base64 = base64.substring(0, base64.length - 2) + "==";
5826
+ }
5827
+
5828
+ return base64;
5829
+ };
5830
+
5831
+ exports.decode = function(base64) {
5832
+ var bufferLength = base64.length * 0.75,
5833
+ len = base64.length, i, p = 0,
5834
+ encoded1, encoded2, encoded3, encoded4;
5835
+
5836
+ if (base64[base64.length - 1] === "=") {
5837
+ bufferLength--;
5838
+ if (base64[base64.length - 2] === "=") {
5839
+ bufferLength--;
5840
+ }
5841
+ }
5842
+
5843
+ var arraybuffer = new ArrayBuffer(bufferLength),
5844
+ bytes = new Uint8Array(arraybuffer);
5845
+
5846
+ for (i = 0; i < len; i+=4) {
5847
+ encoded1 = lookup[base64.charCodeAt(i)];
5848
+ encoded2 = lookup[base64.charCodeAt(i+1)];
5849
+ encoded3 = lookup[base64.charCodeAt(i+2)];
5850
+ encoded4 = lookup[base64.charCodeAt(i+3)];
5851
+
5852
+ bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
5853
+ bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
5854
+ bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
5855
+ }
5856
+
5857
+ return arraybuffer;
5858
+ };
5859
+ })();
5860
+
5861
+
5862
+ /***/ },
5863
+ /* 30 */
5859
5864
  /***/ function(module, exports) {
5860
5865
 
5861
5866
  /* WEBPACK VAR INJECTION */(function(global) {/**
@@ -5958,7 +5963,7 @@ return /******/ (function(modules) { // webpackBootstrap
5958
5963
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
5959
5964
 
5960
5965
  /***/ },
5961
- /* 33 */
5966
+ /* 31 */
5962
5967
  /***/ function(module, exports) {
5963
5968
 
5964
5969
 
@@ -6128,7 +6133,7 @@ return /******/ (function(modules) { // webpackBootstrap
6128
6133
 
6129
6134
 
6130
6135
  /***/ },
6131
- /* 34 */
6136
+ /* 32 */
6132
6137
  /***/ function(module, exports) {
6133
6138
 
6134
6139
  /**
@@ -6171,7 +6176,7 @@ return /******/ (function(modules) { // webpackBootstrap
6171
6176
 
6172
6177
 
6173
6178
  /***/ },
6174
- /* 35 */
6179
+ /* 33 */
6175
6180
  /***/ function(module, exports) {
6176
6181
 
6177
6182
 
@@ -6183,7 +6188,7 @@ return /******/ (function(modules) { // webpackBootstrap
6183
6188
  };
6184
6189
 
6185
6190
  /***/ },
6186
- /* 36 */
6191
+ /* 34 */
6187
6192
  /***/ function(module, exports) {
6188
6193
 
6189
6194
  'use strict';
@@ -6257,7 +6262,7 @@ return /******/ (function(modules) { // webpackBootstrap
6257
6262
 
6258
6263
 
6259
6264
  /***/ },
6260
- /* 37 */
6265
+ /* 35 */
6261
6266
  /***/ function(module, exports, __webpack_require__) {
6262
6267
 
6263
6268
  /* WEBPACK VAR INJECTION */(function(global) {
@@ -6265,8 +6270,8 @@ return /******/ (function(modules) { // webpackBootstrap
6265
6270
  * Module requirements.
6266
6271
  */
6267
6272
 
6268
- var Polling = __webpack_require__(22);
6269
- var inherit = __webpack_require__(35);
6273
+ var Polling = __webpack_require__(21);
6274
+ var inherit = __webpack_require__(33);
6270
6275
 
6271
6276
  /**
6272
6277
  * Module exports.
@@ -6287,12 +6292,6 @@ return /******/ (function(modules) { // webpackBootstrap
6287
6292
 
6288
6293
  var callbacks;
6289
6294
 
6290
- /**
6291
- * Callbacks count.
6292
- */
6293
-
6294
- var index = 0;
6295
-
6296
6295
  /**
6297
6296
  * Noop.
6298
6297
  */
@@ -6389,21 +6388,20 @@ return /******/ (function(modules) { // webpackBootstrap
6389
6388
 
6390
6389
  script.async = true;
6391
6390
  script.src = this.uri();
6392
- script.onerror = function(e){
6393
- self.onError('jsonp poll error',e);
6391
+ script.onerror = function (e) {
6392
+ self.onError('jsonp poll error', e);
6394
6393
  };
6395
6394
 
6396
6395
  var insertAt = document.getElementsByTagName('script')[0];
6397
6396
  if (insertAt) {
6398
6397
  insertAt.parentNode.insertBefore(script, insertAt);
6399
- }
6400
- else {
6398
+ } else {
6401
6399
  (document.head || document.body).appendChild(script);
6402
6400
  }
6403
6401
  this.script = script;
6404
6402
 
6405
- var isUAgecko = 'undefined' != typeof navigator && /gecko/i.test(navigator.userAgent);
6406
-
6403
+ var isUAgecko = 'undefined' !== typeof navigator && /gecko/i.test(navigator.userAgent);
6404
+
6407
6405
  if (isUAgecko) {
6408
6406
  setTimeout(function () {
6409
6407
  var iframe = document.createElement('iframe');
@@ -6463,7 +6461,7 @@ return /******/ (function(modules) { // webpackBootstrap
6463
6461
 
6464
6462
  try {
6465
6463
  // ie6 dynamic iframes with target="" support (thanks Chris Lambacher)
6466
- var html = '<iframe src="javascript:0" name="'+ self.iframeId +'">';
6464
+ var html = '<iframe src="javascript:0" name="' + self.iframeId + '">';
6467
6465
  iframe = document.createElement(html);
6468
6466
  } catch (e) {
6469
6467
  iframe = document.createElement('iframe');
@@ -6486,11 +6484,11 @@ return /******/ (function(modules) { // webpackBootstrap
6486
6484
 
6487
6485
  try {
6488
6486
  this.form.submit();
6489
- } catch(e) {}
6487
+ } catch (e) {}
6490
6488
 
6491
6489
  if (this.iframe.attachEvent) {
6492
- this.iframe.onreadystatechange = function(){
6493
- if (self.iframe.readyState == 'complete') {
6490
+ this.iframe.onreadystatechange = function () {
6491
+ if (self.iframe.readyState === 'complete') {
6494
6492
  complete();
6495
6493
  }
6496
6494
  };
@@ -6502,18 +6500,18 @@ return /******/ (function(modules) { // webpackBootstrap
6502
6500
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
6503
6501
 
6504
6502
  /***/ },
6505
- /* 38 */
6503
+ /* 36 */
6506
6504
  /***/ function(module, exports, __webpack_require__) {
6507
6505
 
6508
6506
  /* WEBPACK VAR INJECTION */(function(global) {/**
6509
6507
  * Module dependencies.
6510
6508
  */
6511
6509
 
6512
- var Transport = __webpack_require__(23);
6513
- var parser = __webpack_require__(24);
6514
- var parseqs = __webpack_require__(34);
6515
- var inherit = __webpack_require__(35);
6516
- var yeast = __webpack_require__(36);
6510
+ var Transport = __webpack_require__(22);
6511
+ var parser = __webpack_require__(23);
6512
+ var parseqs = __webpack_require__(32);
6513
+ var inherit = __webpack_require__(33);
6514
+ var yeast = __webpack_require__(34);
6517
6515
  var debug = __webpack_require__(3)('engine.io-client:websocket');
6518
6516
  var BrowserWebSocket = global.WebSocket || global.MozWebSocket;
6519
6517
 
@@ -6526,7 +6524,7 @@ return /******/ (function(modules) { // webpackBootstrap
6526
6524
  var WebSocket = BrowserWebSocket;
6527
6525
  if (!WebSocket && typeof window === 'undefined') {
6528
6526
  try {
6529
- WebSocket = __webpack_require__(39);
6527
+ WebSocket = __webpack_require__(37);
6530
6528
  } catch (e) { }
6531
6529
  }
6532
6530
 
@@ -6543,7 +6541,7 @@ return /******/ (function(modules) { // webpackBootstrap
6543
6541
  * @api public
6544
6542
  */
6545
6543
 
6546
- function WS(opts){
6544
+ function WS (opts) {
6547
6545
  var forceBase64 = (opts && opts.forceBase64);
6548
6546
  if (forceBase64) {
6549
6547
  this.supportsBinary = false;
@@ -6578,15 +6576,14 @@ return /******/ (function(modules) { // webpackBootstrap
6578
6576
  * @api private
6579
6577
  */
6580
6578
 
6581
- WS.prototype.doOpen = function(){
6579
+ WS.prototype.doOpen = function () {
6582
6580
  if (!this.check()) {
6583
6581
  // let probe timeout
6584
6582
  return;
6585
6583
  }
6586
6584
 
6587
- var self = this;
6588
6585
  var uri = this.uri();
6589
- var protocols = void(0);
6586
+ var protocols = void (0);
6590
6587
  var opts = {
6591
6588
  agent: this.agent,
6592
6589
  perMessageDeflate: this.perMessageDeflate
@@ -6604,7 +6601,11 @@ return /******/ (function(modules) { // webpackBootstrap
6604
6601
  opts.headers = this.extraHeaders;
6605
6602
  }
6606
6603
 
6607
- this.ws = BrowserWebSocket ? new WebSocket(uri) : new WebSocket(uri, protocols, opts);
6604
+ try {
6605
+ this.ws = BrowserWebSocket ? new WebSocket(uri) : new WebSocket(uri, protocols, opts);
6606
+ } catch (err) {
6607
+ return this.emit('error', err);
6608
+ }
6608
6609
 
6609
6610
  if (this.ws.binaryType === undefined) {
6610
6611
  this.supportsBinary = false;
@@ -6612,7 +6613,7 @@ return /******/ (function(modules) { // webpackBootstrap
6612
6613
 
6613
6614
  if (this.ws.supports && this.ws.supports.binary) {
6614
6615
  this.supportsBinary = true;
6615
- this.ws.binaryType = 'buffer';
6616
+ this.ws.binaryType = 'nodebuffer';
6616
6617
  } else {
6617
6618
  this.ws.binaryType = 'arraybuffer';
6618
6619
  }
@@ -6626,19 +6627,19 @@ return /******/ (function(modules) { // webpackBootstrap
6626
6627
  * @api private
6627
6628
  */
6628
6629
 
6629
- WS.prototype.addEventListeners = function(){
6630
+ WS.prototype.addEventListeners = function () {
6630
6631
  var self = this;
6631
6632
 
6632
- this.ws.onopen = function(){
6633
+ this.ws.onopen = function () {
6633
6634
  self.onOpen();
6634
6635
  };
6635
- this.ws.onclose = function(){
6636
+ this.ws.onclose = function () {
6636
6637
  self.onClose();
6637
6638
  };
6638
- this.ws.onmessage = function(ev){
6639
+ this.ws.onmessage = function (ev) {
6639
6640
  self.onData(ev.data);
6640
6641
  };
6641
- this.ws.onerror = function(e){
6642
+ this.ws.onerror = function (e) {
6642
6643
  self.onError('websocket error', e);
6643
6644
  };
6644
6645
  };
@@ -6650,11 +6651,11 @@ return /******/ (function(modules) { // webpackBootstrap
6650
6651
  * @api private
6651
6652
  */
6652
6653
 
6653
- if ('undefined' != typeof navigator
6654
- && /iPad|iPhone|iPod/i.test(navigator.userAgent)) {
6655
- WS.prototype.onData = function(data){
6654
+ if ('undefined' !== typeof navigator &&
6655
+ /iPad|iPhone|iPod/i.test(navigator.userAgent)) {
6656
+ WS.prototype.onData = function (data) {
6656
6657
  var self = this;
6657
- setTimeout(function(){
6658
+ setTimeout(function () {
6658
6659
  Transport.prototype.onData.call(self, data);
6659
6660
  }, 0);
6660
6661
  };
@@ -6667,7 +6668,7 @@ return /******/ (function(modules) { // webpackBootstrap
6667
6668
  * @api private
6668
6669
  */
6669
6670
 
6670
- WS.prototype.write = function(packets){
6671
+ WS.prototype.write = function (packets) {
6671
6672
  var self = this;
6672
6673
  this.writable = false;
6673
6674
 
@@ -6675,8 +6676,8 @@ return /******/ (function(modules) { // webpackBootstrap
6675
6676
  // no need for encodePayload
6676
6677
  var total = packets.length;
6677
6678
  for (var i = 0, l = total; i < l; i++) {
6678
- (function(packet) {
6679
- parser.encodePacket(packet, self.supportsBinary, function(data) {
6679
+ (function (packet) {
6680
+ parser.encodePacket(packet, self.supportsBinary, function (data) {
6680
6681
  if (!BrowserWebSocket) {
6681
6682
  // always create a new object (GH-437)
6682
6683
  var opts = {};
@@ -6685,16 +6686,16 @@ return /******/ (function(modules) { // webpackBootstrap
6685
6686
  }
6686
6687
 
6687
6688
  if (self.perMessageDeflate) {
6688
- var len = 'string' == typeof data ? global.Buffer.byteLength(data) : data.length;
6689
+ var len = 'string' === typeof data ? global.Buffer.byteLength(data) : data.length;
6689
6690
  if (len < self.perMessageDeflate.threshold) {
6690
6691
  opts.compress = false;
6691
6692
  }
6692
6693
  }
6693
6694
  }
6694
6695
 
6695
- //Sometimes the websocket has already been closed but the browser didn't
6696
- //have a chance of informing us about it yet, in that case send will
6697
- //throw an error
6696
+ // Sometimes the websocket has already been closed but the browser didn't
6697
+ // have a chance of informing us about it yet, in that case send will
6698
+ // throw an error
6698
6699
  try {
6699
6700
  if (BrowserWebSocket) {
6700
6701
  // TypeError is thrown when passing the second argument on Safari
@@ -6702,7 +6703,7 @@ return /******/ (function(modules) { // webpackBootstrap
6702
6703
  } else {
6703
6704
  self.ws.send(data, opts);
6704
6705
  }
6705
- } catch (e){
6706
+ } catch (e) {
6706
6707
  debug('websocket closed before onclose event');
6707
6708
  }
6708
6709
 
@@ -6711,12 +6712,12 @@ return /******/ (function(modules) { // webpackBootstrap
6711
6712
  })(packets[i]);
6712
6713
  }
6713
6714
 
6714
- function done(){
6715
+ function done () {
6715
6716
  self.emit('flush');
6716
6717
 
6717
6718
  // fake drain
6718
6719
  // defer to next tick to allow Socket to clear writeBuffer
6719
- setTimeout(function(){
6720
+ setTimeout(function () {
6720
6721
  self.writable = true;
6721
6722
  self.emit('drain');
6722
6723
  }, 0);
@@ -6729,7 +6730,7 @@ return /******/ (function(modules) { // webpackBootstrap
6729
6730
  * @api private
6730
6731
  */
6731
6732
 
6732
- WS.prototype.onClose = function(){
6733
+ WS.prototype.onClose = function () {
6733
6734
  Transport.prototype.onClose.call(this);
6734
6735
  };
6735
6736
 
@@ -6739,7 +6740,7 @@ return /******/ (function(modules) { // webpackBootstrap
6739
6740
  * @api private
6740
6741
  */
6741
6742
 
6742
- WS.prototype.doClose = function(){
6743
+ WS.prototype.doClose = function () {
6743
6744
  if (typeof this.ws !== 'undefined') {
6744
6745
  this.ws.close();
6745
6746
  }
@@ -6751,14 +6752,14 @@ return /******/ (function(modules) { // webpackBootstrap
6751
6752
  * @api private
6752
6753
  */
6753
6754
 
6754
- WS.prototype.uri = function(){
6755
+ WS.prototype.uri = function () {
6755
6756
  var query = this.query || {};
6756
6757
  var schema = this.secure ? 'wss' : 'ws';
6757
6758
  var port = '';
6758
6759
 
6759
6760
  // avoid port if default for schema
6760
- if (this.port && (('wss' == schema && this.port != 443)
6761
- || ('ws' == schema && this.port != 80))) {
6761
+ if (this.port && (('wss' === schema && this.port !== 443) ||
6762
+ ('ws' === schema && this.port !== 80))) {
6762
6763
  port = ':' + this.port;
6763
6764
  }
6764
6765
 
@@ -6790,20 +6791,20 @@ return /******/ (function(modules) { // webpackBootstrap
6790
6791
  * @api public
6791
6792
  */
6792
6793
 
6793
- WS.prototype.check = function(){
6794
+ WS.prototype.check = function () {
6794
6795
  return !!WebSocket && !('__initialize' in WebSocket && this.name === WS.prototype.name);
6795
6796
  };
6796
6797
 
6797
6798
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
6798
6799
 
6799
6800
  /***/ },
6800
- /* 39 */
6801
+ /* 37 */
6801
6802
  /***/ function(module, exports) {
6802
6803
 
6803
6804
  /* (ignored) */
6804
6805
 
6805
6806
  /***/ },
6806
- /* 40 */
6807
+ /* 38 */
6807
6808
  /***/ function(module, exports) {
6808
6809
 
6809
6810
 
@@ -6818,7 +6819,7 @@ return /******/ (function(modules) { // webpackBootstrap
6818
6819
  };
6819
6820
 
6820
6821
  /***/ },
6821
- /* 41 */
6822
+ /* 39 */
6822
6823
  /***/ function(module, exports) {
6823
6824
 
6824
6825
  /* WEBPACK VAR INJECTION */(function(global) {/**
@@ -6856,7 +6857,7 @@ return /******/ (function(modules) { // webpackBootstrap
6856
6857
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
6857
6858
 
6858
6859
  /***/ },
6859
- /* 42 */
6860
+ /* 40 */
6860
6861
  /***/ function(module, exports, __webpack_require__) {
6861
6862
 
6862
6863
  'use strict';
@@ -6866,12 +6867,12 @@ return /******/ (function(modules) { // webpackBootstrap
6866
6867
  */
6867
6868
 
6868
6869
  var parser = __webpack_require__(6);
6869
- var Emitter = __webpack_require__(43);
6870
- var toArray = __webpack_require__(44);
6871
- var on = __webpack_require__(45);
6872
- var bind = __webpack_require__(46);
6870
+ var Emitter = __webpack_require__(41);
6871
+ var toArray = __webpack_require__(42);
6872
+ var on = __webpack_require__(43);
6873
+ var bind = __webpack_require__(44);
6873
6874
  var debug = __webpack_require__(3)('socket.io-client:socket');
6874
- var hasBin = __webpack_require__(47);
6875
+ var hasBin = __webpack_require__(45);
6875
6876
 
6876
6877
  /**
6877
6878
  * Module exports.
@@ -7277,7 +7278,7 @@ return /******/ (function(modules) { // webpackBootstrap
7277
7278
  };
7278
7279
 
7279
7280
  /***/ },
7280
- /* 43 */
7281
+ /* 41 */
7281
7282
  /***/ function(module, exports) {
7282
7283
 
7283
7284
 
@@ -7444,7 +7445,7 @@ return /******/ (function(modules) { // webpackBootstrap
7444
7445
 
7445
7446
 
7446
7447
  /***/ },
7447
- /* 44 */
7448
+ /* 42 */
7448
7449
  /***/ function(module, exports) {
7449
7450
 
7450
7451
  module.exports = toArray
@@ -7463,7 +7464,7 @@ return /******/ (function(modules) { // webpackBootstrap
7463
7464
 
7464
7465
 
7465
7466
  /***/ },
7466
- /* 45 */
7467
+ /* 43 */
7467
7468
  /***/ function(module, exports) {
7468
7469
 
7469
7470
  "use strict";
@@ -7493,7 +7494,7 @@ return /******/ (function(modules) { // webpackBootstrap
7493
7494
  }
7494
7495
 
7495
7496
  /***/ },
7496
- /* 46 */
7497
+ /* 44 */
7497
7498
  /***/ function(module, exports) {
7498
7499
 
7499
7500
  /**
@@ -7522,7 +7523,7 @@ return /******/ (function(modules) { // webpackBootstrap
7522
7523
 
7523
7524
 
7524
7525
  /***/ },
7525
- /* 47 */
7526
+ /* 45 */
7526
7527
  /***/ function(module, exports, __webpack_require__) {
7527
7528
 
7528
7529
  /* WEBPACK VAR INJECTION */(function(global) {
@@ -7530,7 +7531,7 @@ return /******/ (function(modules) { // webpackBootstrap
7530
7531
  * Module requirements.
7531
7532
  */
7532
7533
 
7533
- var isArray = __webpack_require__(48);
7534
+ var isArray = __webpack_require__(9);
7534
7535
 
7535
7536
  /**
7536
7537
  * Module exports.
@@ -7588,16 +7589,7 @@ return /******/ (function(modules) { // webpackBootstrap
7588
7589
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
7589
7590
 
7590
7591
  /***/ },
7591
- /* 48 */
7592
- /***/ function(module, exports) {
7593
-
7594
- module.exports = Array.isArray || function (arr) {
7595
- return Object.prototype.toString.call(arr) == '[object Array]';
7596
- };
7597
-
7598
-
7599
- /***/ },
7600
- /* 49 */
7592
+ /* 46 */
7601
7593
  /***/ function(module, exports) {
7602
7594
 
7603
7595