@quotemedia.com/streamer 2.40.0 → 2.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -429,52 +429,52 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
429
429
 
430
430
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
431
431
 
432
- /**
433
- * Generic payload container with metadata.
434
- * @constructor
432
+ /**
433
+ * Generic payload container with metadata.
434
+ * @constructor
435
435
  */
436
436
  var SMessage = function SMessage() {
437
437
  _classCallCheck(this, SMessage);
438
438
 
439
- /**
440
- * Message type to distinguish different message types.
441
- * @type {string}
439
+ /**
440
+ * Message type to distinguish different message types.
441
+ * @type {string}
442
442
  */
443
443
  this.type = _codec2["default"].TYPE;
444
444
 
445
- /**
446
- * Sequence number may be used for flow control.
447
- * @type {number}
445
+ /**
446
+ * Sequence number may be used for flow control.
447
+ * @type {number}
448
448
  */
449
449
  this.sequencenumber = null;
450
450
 
451
- /**
452
- * Timestamp may be used for latency measuring.
453
- * @type {number}
451
+ /**
452
+ * Timestamp may be used for latency measuring.
453
+ * @type {number}
454
454
  */
455
455
  this.timestamp = null;
456
456
 
457
- /**
458
- * Id may be used for request response matching.
459
- * @type {number}
457
+ /**
458
+ * Id may be used for request response matching.
459
+ * @type {number}
460
460
  */
461
461
  this.id = null;
462
462
 
463
- /**
464
- * Encoding of <code>payload</code>.
465
- * @type {string}
463
+ /**
464
+ * Encoding of <code>payload</code>.
465
+ * @type {string}
466
466
  */
467
467
  this.encoding = null;
468
468
 
469
- /**
470
- * Mime type of <code>payload</code>.
471
- * @type {string}
469
+ /**
470
+ * Mime type of <code>payload</code>.
471
+ * @type {string}
472
472
  */
473
473
  this.mimetype = null;
474
474
 
475
- /**
476
- * Payload encoded with <code>encoding</code> and serialized with <code>mimetype</code>.
477
- * @type {string}
475
+ /**
476
+ * Payload encoded with <code>encoding</code> and serialized with <code>mimetype</code>.
477
+ * @type {string}
478
478
  */
479
479
  this.payload = null;
480
480
  };
@@ -2197,38 +2197,38 @@ exports["default"] = UShortId;
2197
2197
 
2198
2198
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2199
2199
 
2200
- /*
2201
- * Copyright 2015 Async-IO.org
2202
- *
2203
- * Licensed under the Apache License, Version 2.0 (the "License");
2204
- * you may not use this file except in compliance with the License.
2205
- * You may obtain a copy of the License at
2206
- *
2207
- * http://www.apache.org/licenses/LICENSE-2.0
2208
- *
2209
- * Unless required by applicable law or agreed to in writing, software
2210
- * distributed under the License is distributed on an "AS IS" BASIS,
2211
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2212
- * See the License for the specific language governing permissions and
2213
- * limitations under the License.
2200
+ /*
2201
+ * Copyright 2015 Async-IO.org
2202
+ *
2203
+ * Licensed under the Apache License, Version 2.0 (the "License");
2204
+ * you may not use this file except in compliance with the License.
2205
+ * You may obtain a copy of the License at
2206
+ *
2207
+ * http://www.apache.org/licenses/LICENSE-2.0
2208
+ *
2209
+ * Unless required by applicable law or agreed to in writing, software
2210
+ * distributed under the License is distributed on an "AS IS" BASIS,
2211
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2212
+ * See the License for the specific language governing permissions and
2213
+ * limitations under the License.
2214
2214
  */
2215
- /**
2216
- * Added binary message processing that reads from the blob.
2217
- * Tweaked implementation to support binary messages with streaming protocol:
2218
- * - edited message calculation logic to support multiple messages that could be read from stream at once
2219
- * without message size being pre-appended;
2220
- * - override mimetype to be able to retrieve original byte array;
2221
- * - don't trim string representation of binary messages.
2215
+ /**
2216
+ * Added binary message processing that reads from the blob.
2217
+ * Tweaked implementation to support binary messages with streaming protocol:
2218
+ * - edited message calculation logic to support multiple messages that could be read from stream at once
2219
+ * without message size being pre-appended;
2220
+ * - override mimetype to be able to retrieve original byte array;
2221
+ * - don't trim string representation of binary messages.
2222
2222
  */
2223
- /**
2224
- * Atmosphere.js
2225
- * https://github.com/Atmosphere/atmosphere-javascript
2226
- *
2227
- * API reference
2228
- * https://github.com/Atmosphere/atmosphere/wiki/jQuery.atmosphere.js-API
2229
- *
2230
- * Highly inspired by
2231
- * - Portal by Donghwan Kim http://flowersinthesand.github.io/portal/
2223
+ /**
2224
+ * Atmosphere.js
2225
+ * https://github.com/Atmosphere/atmosphere-javascript
2226
+ *
2227
+ * API reference
2228
+ * https://github.com/Atmosphere/atmosphere/wiki/jQuery.atmosphere.js-API
2229
+ *
2230
+ * Highly inspired by
2231
+ * - Portal by Donghwan Kim http://flowersinthesand.github.io/portal/
2232
2232
  */
2233
2233
  (function (root, factory) {
2234
2234
  if (typeof define === "function" && define.amd) {
@@ -2268,41 +2268,41 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2268
2268
  onClientTimeout: function onClientTimeout(request) {},
2269
2269
  onOpenAfterResume: function onOpenAfterResume(request) {},
2270
2270
 
2271
- /**
2272
- * Creates an object based on an atmosphere subscription that exposes functions defined by the Websocket interface.
2273
- *
2274
- * @class WebsocketApiAdapter
2275
- * @param {Object} request the request object to build the underlying subscription
2276
- * @constructor
2271
+ /**
2272
+ * Creates an object based on an atmosphere subscription that exposes functions defined by the Websocket interface.
2273
+ *
2274
+ * @class WebsocketApiAdapter
2275
+ * @param {Object} request the request object to build the underlying subscription
2276
+ * @constructor
2277
2277
  */
2278
2278
  WebsocketApiAdapter: function WebsocketApiAdapter(request) {
2279
2279
  var _socket, _adapter;
2280
2280
 
2281
- /**
2282
- * Overrides the onMessage callback in given request.
2283
- *
2284
- * @method onMessage
2285
- * @param {Object} e the event object
2281
+ /**
2282
+ * Overrides the onMessage callback in given request.
2283
+ *
2284
+ * @method onMessage
2285
+ * @param {Object} e the event object
2286
2286
  */
2287
2287
  request.onMessage = function (e) {
2288
2288
  _adapter.onmessage({ data: e.responseBody });
2289
2289
  };
2290
2290
 
2291
- /**
2292
- * Overrides the onMessagePublished callback in given request.
2293
- *
2294
- * @method onMessagePublished
2295
- * @param {Object} e the event object
2291
+ /**
2292
+ * Overrides the onMessagePublished callback in given request.
2293
+ *
2294
+ * @method onMessagePublished
2295
+ * @param {Object} e the event object
2296
2296
  */
2297
2297
  request.onMessagePublished = function (e) {
2298
2298
  _adapter.onmessage({ data: e.responseBody });
2299
2299
  };
2300
2300
 
2301
- /**
2302
- * Overrides the onOpen callback in given request to proxy the event to the adapter.
2303
- *
2304
- * @method onOpen
2305
- * @param {Object} e the event object
2301
+ /**
2302
+ * Overrides the onOpen callback in given request to proxy the event to the adapter.
2303
+ *
2304
+ * @method onOpen
2305
+ * @param {Object} e the event object
2306
2306
  */
2307
2307
  request.onOpen = function (e) {
2308
2308
  _adapter.onopen(e);
@@ -2332,10 +2332,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2332
2332
 
2333
2333
  AtmosphereRequest: function AtmosphereRequest(options) {
2334
2334
 
2335
- /**
2336
- * {Object} Request parameters.
2337
- *
2338
- * @private
2335
+ /**
2336
+ * {Object} Request parameters.
2337
+ *
2338
+ * @private
2339
2339
  */
2340
2340
  var _request = {
2341
2341
  timeout: 300000,
@@ -2400,10 +2400,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2400
2400
  onOpenAfterResume: function onOpenAfterResume(request) {}
2401
2401
  };
2402
2402
 
2403
- /**
2404
- * {Object} Request's last response.
2405
- *
2406
- * @private
2403
+ /**
2404
+ * {Object} Request's last response.
2405
+ *
2406
+ * @private
2407
2407
  */
2408
2408
  var _response = {
2409
2409
  status: 200,
@@ -2421,101 +2421,101 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2421
2421
  ffTryingReconnect: false
2422
2422
  };
2423
2423
 
2424
- /**
2425
- * {websocket} Opened web socket.
2426
- *
2427
- * @private
2424
+ /**
2425
+ * {websocket} Opened web socket.
2426
+ *
2427
+ * @private
2428
2428
  */
2429
2429
  var _websocket = null;
2430
2430
 
2431
- /**
2432
- * {SSE} Opened SSE.
2433
- *
2434
- * @private
2431
+ /**
2432
+ * {SSE} Opened SSE.
2433
+ *
2434
+ * @private
2435
2435
  */
2436
2436
  var _sse = null;
2437
2437
 
2438
- /**
2439
- * {XMLHttpRequest, ActiveXObject} Opened ajax request (in case of http-streaming or long-polling)
2440
- *
2441
- * @private
2438
+ /**
2439
+ * {XMLHttpRequest, ActiveXObject} Opened ajax request (in case of http-streaming or long-polling)
2440
+ *
2441
+ * @private
2442
2442
  */
2443
2443
  var _activeRequest = null;
2444
2444
 
2445
- /**
2446
- * {Object} Object use for streaming with IE.
2447
- *
2448
- * @private
2445
+ /**
2446
+ * {Object} Object use for streaming with IE.
2447
+ *
2448
+ * @private
2449
2449
  */
2450
2450
  var _ieStream = null;
2451
2451
 
2452
- /**
2453
- * {Object} Object use for jsonp transport.
2454
- *
2455
- * @private
2452
+ /**
2453
+ * {Object} Object use for jsonp transport.
2454
+ *
2455
+ * @private
2456
2456
  */
2457
2457
  var _jqxhr = null;
2458
2458
 
2459
- /**
2460
- * {boolean} If request has been subscribed or not.
2461
- *
2462
- * @private
2459
+ /**
2460
+ * {boolean} If request has been subscribed or not.
2461
+ *
2462
+ * @private
2463
2463
  */
2464
2464
  var _subscribed = true;
2465
2465
 
2466
- /**
2467
- * {number} Number of test reconnection.
2468
- *
2469
- * @private
2466
+ /**
2467
+ * {number} Number of test reconnection.
2468
+ *
2469
+ * @private
2470
2470
  */
2471
2471
  var _requestCount = 0;
2472
2472
 
2473
- /**
2474
- * The Heartbeat interval send by the server.
2475
- * @type {int}
2476
- * @private
2473
+ /**
2474
+ * The Heartbeat interval send by the server.
2475
+ * @type {int}
2476
+ * @private
2477
2477
  */
2478
2478
  var _heartbeatInterval = 0;
2479
2479
 
2480
- /**
2481
- * The Heartbeat bytes send by the server.
2482
- * @type {string}
2483
- * @private
2480
+ /**
2481
+ * The Heartbeat bytes send by the server.
2482
+ * @type {string}
2483
+ * @private
2484
2484
  */
2485
2485
  var _heartbeatPadding = 'X';
2486
2486
 
2487
- /**
2488
- * {boolean} If request is currently aborted.
2489
- *
2490
- * @private
2487
+ /**
2488
+ * {boolean} If request is currently aborted.
2489
+ *
2490
+ * @private
2491
2491
  */
2492
2492
  var _abortingConnection = false;
2493
2493
 
2494
- /**
2495
- * A local "channel' of communication.
2496
- *
2497
- * @private
2494
+ /**
2495
+ * A local "channel' of communication.
2496
+ *
2497
+ * @private
2498
2498
  */
2499
2499
  var _localSocketF = null;
2500
2500
 
2501
- /**
2502
- * The storage used.
2503
- *
2504
- * @private
2501
+ /**
2502
+ * The storage used.
2503
+ *
2504
+ * @private
2505
2505
  */
2506
2506
  var _storageService;
2507
2507
 
2508
- /**
2509
- * Local communication
2510
- *
2511
- * @private
2508
+ /**
2509
+ * Local communication
2510
+ *
2511
+ * @private
2512
2512
  */
2513
2513
  var _localStorageService = null;
2514
2514
 
2515
- /**
2516
- * A Unique ID
2517
- *
2518
- * @private
2515
+ /**
2516
+ * A Unique ID
2517
+ *
2518
+ * @private
2519
2519
  */
2520
2520
  var guid = atmosphere.util.now();
2521
2521
 
@@ -2525,21 +2525,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2525
2525
  /** Key for connection sharing */
2526
2526
  var _sharingKey;
2527
2527
 
2528
- /**
2529
- * {boolean} If window beforeUnload event has been called.
2530
- * Flag will be reset after 5000 ms
2531
- *
2532
- * @private
2528
+ /**
2529
+ * {boolean} If window beforeUnload event has been called.
2530
+ * Flag will be reset after 5000 ms
2531
+ *
2532
+ * @private
2533
2533
  */
2534
2534
  var _beforeUnloadState = false;
2535
2535
 
2536
2536
  // Automatic call to subscribe
2537
2537
  _subscribe(options);
2538
2538
 
2539
- /**
2540
- * Initialize atmosphere request object.
2541
- *
2542
- * @private
2539
+ /**
2540
+ * Initialize atmosphere request object.
2541
+ *
2542
+ * @private
2543
2543
  */
2544
2544
  function _init() {
2545
2545
  _subscribed = true;
@@ -2552,20 +2552,20 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2552
2552
  _ieStream = null;
2553
2553
  }
2554
2554
 
2555
- /**
2556
- * Re-initialize atmosphere object.
2557
- *
2558
- * @private
2555
+ /**
2556
+ * Re-initialize atmosphere object.
2557
+ *
2558
+ * @private
2559
2559
  */
2560
2560
  function _reinit() {
2561
2561
  _clearState();
2562
2562
  _init();
2563
2563
  }
2564
2564
 
2565
- /**
2566
- * Returns true if the given level is equal or above the configured log level.
2567
- *
2568
- * @private
2565
+ /**
2566
+ * Returns true if the given level is equal or above the configured log level.
2567
+ *
2568
+ * @private
2569
2569
  */
2570
2570
  function _canLog(level) {
2571
2571
  if (level == 'debug') {
@@ -2587,9 +2587,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2587
2587
  }
2588
2588
  }
2589
2589
 
2590
- /**
2591
- *
2592
- * @private
2590
+ /**
2591
+ *
2592
+ * @private
2593
2593
  */
2594
2594
  function _verifyStreamingLength(ajaxRequest, rq) {
2595
2595
  // Wait to be sure we have the full message before closing.
@@ -2599,10 +2599,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2599
2599
  return false;
2600
2600
  }
2601
2601
 
2602
- /**
2603
- * Disconnect
2604
- *
2605
- * @private
2602
+ /**
2603
+ * Disconnect
2604
+ *
2605
+ * @private
2606
2606
  */
2607
2607
  function _disconnect() {
2608
2608
  if (_request.enableProtocol && !_request.disableDisconnect && !_request.firstMessage) {
@@ -2639,10 +2639,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2639
2639
  }
2640
2640
  }
2641
2641
 
2642
- /**
2643
- * Close request.
2644
- *
2645
- * @private
2642
+ /**
2643
+ * Close request.
2644
+ *
2645
+ * @private
2646
2646
  */
2647
2647
  function _close() {
2648
2648
  _debug("Closing (AtmosphereRequest._close() called)");
@@ -2729,12 +2729,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2729
2729
  }
2730
2730
  }
2731
2731
 
2732
- /**
2733
- * Subscribe request using request transport. <br>
2734
- * If request is currently opened, this one will be closed.
2735
- *
2736
- * @param {Object} Request parameters.
2737
- * @private
2732
+ /**
2733
+ * Subscribe request using request transport. <br>
2734
+ * If request is currently opened, this one will be closed.
2735
+ *
2736
+ * @param {Object} Request parameters.
2737
+ * @private
2738
2738
  */
2739
2739
  function _subscribe(options) {
2740
2740
  _reinit();
@@ -2747,21 +2747,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2747
2747
  }
2748
2748
  }
2749
2749
 
2750
- /**
2751
- * Check if web socket is supported (check for custom implementation provided by request object or browser implementation).
2752
- *
2753
- * @returns {boolean} True if web socket is supported, false otherwise.
2754
- * @private
2750
+ /**
2751
+ * Check if web socket is supported (check for custom implementation provided by request object or browser implementation).
2752
+ *
2753
+ * @returns {boolean} True if web socket is supported, false otherwise.
2754
+ * @private
2755
2755
  */
2756
2756
  function _supportWebsocket() {
2757
2757
  return _request.webSocketImpl != null || window.WebSocket || window.MozWebSocket;
2758
2758
  }
2759
2759
 
2760
- /**
2761
- * Check if server side events (SSE) is supported (check for custom implementation provided by request object or browser implementation).
2762
- *
2763
- * @returns {boolean} True if web socket is supported, false otherwise.
2764
- * @private
2760
+ /**
2761
+ * Check if server side events (SSE) is supported (check for custom implementation provided by request object or browser implementation).
2762
+ *
2763
+ * @returns {boolean} True if web socket is supported, false otherwise.
2764
+ * @private
2765
2765
  */
2766
2766
  function _supportSSE() {
2767
2767
  // Origin parts
@@ -2777,11 +2777,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2777
2777
  return window.EventSource && (!crossOrigin || !atmosphere.util.browser.safari || atmosphere.util.browser.vmajor >= 7);
2778
2778
  }
2779
2779
 
2780
- /**
2781
- * Open request using request transport. <br>
2782
- * If request transport is 'websocket' but websocket can't be opened, request will automatically reconnect using fallback transport.
2783
- *
2784
- * @private
2780
+ /**
2781
+ * Open request using request transport. <br>
2782
+ * If request transport is 'websocket' but websocket can't be opened, request will automatically reconnect using fallback transport.
2783
+ *
2784
+ * @private
2785
2785
  */
2786
2786
  function _execute() {
2787
2787
  // Shared across multiple tabs/windows.
@@ -3195,8 +3195,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3195
3195
  _storageService = storageService;
3196
3196
  }
3197
3197
 
3198
- /**
3199
- * @private
3198
+ /**
3199
+ * @private
3200
3200
  */
3201
3201
  function _open(state, transport, request) {
3202
3202
  if (_request.shared && transport !== 'local') {
@@ -3230,11 +3230,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3230
3230
  }
3231
3231
  }
3232
3232
 
3233
- /**
3234
- * Execute request using jsonp transport.
3235
- *
3236
- * @param request {Object} request Request parameters, if undefined _request object will be used.
3237
- * @private
3233
+ /**
3234
+ * Execute request using jsonp transport.
3235
+ *
3236
+ * @param request {Object} request Request parameters, if undefined _request object will be used.
3237
+ * @private
3238
3238
  */
3239
3239
  function _jsonp(request) {
3240
3240
  // When CORS is enabled, make sure we force the proper transport.
@@ -3364,12 +3364,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3364
3364
  _jqxhr.open();
3365
3365
  }
3366
3366
 
3367
- /**
3368
- * Build websocket object.
3369
- *
3370
- * @param location {string} Web socket url.
3371
- * @returns {websocket} Web socket object.
3372
- * @private
3367
+ /**
3368
+ * Build websocket object.
3369
+ *
3370
+ * @param location {string} Web socket url.
3371
+ * @returns {websocket} Web socket object.
3372
+ * @private
3373
3373
  */
3374
3374
  function _getWebSocket(location) {
3375
3375
  if (_request.webSocketImpl != null) {
@@ -3385,32 +3385,32 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3385
3385
  }
3386
3386
  }
3387
3387
 
3388
- /**
3389
- * Build web socket url from request url.
3390
- *
3391
- * @return {string} Web socket url (start with "ws" or "wss" for secure web socket).
3392
- * @private
3388
+ /**
3389
+ * Build web socket url from request url.
3390
+ *
3391
+ * @return {string} Web socket url (start with "ws" or "wss" for secure web socket).
3392
+ * @private
3393
3393
  */
3394
3394
  function _buildWebSocketUrl() {
3395
3395
  return _attachHeaders(_request, atmosphere.util.getAbsoluteURL(_request.webSocketUrl || _request.url)).replace(/^http/, "ws");
3396
3396
  }
3397
3397
 
3398
- /**
3399
- * Build SSE url from request url.
3400
- *
3401
- * @return a url with Atmosphere's headers
3402
- * @private
3398
+ /**
3399
+ * Build SSE url from request url.
3400
+ *
3401
+ * @return a url with Atmosphere's headers
3402
+ * @private
3403
3403
  */
3404
3404
  function _buildSSEUrl() {
3405
3405
  var url = _attachHeaders(_request);
3406
3406
  return url;
3407
3407
  }
3408
3408
 
3409
- /**
3410
- * Open SSE. <br>
3411
- * Automatically use fallback transport if SSE can't be opened.
3412
- *
3413
- * @private
3409
+ /**
3410
+ * Open SSE. <br>
3411
+ * Automatically use fallback transport if SSE can't be opened.
3412
+ *
3413
+ * @private
3414
3414
  */
3415
3415
  function _executeSSE(sseOpened) {
3416
3416
 
@@ -3491,9 +3491,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3491
3491
 
3492
3492
  // https://github.com/remy/polyfills/blob/master/EventSource.js
3493
3493
  // Since we polling.
3494
- /* if (_sse.URL) {
3495
- _sse.interval = 100;
3496
- _sse.URL = _buildSSEUrl();
3494
+ /* if (_sse.URL) {
3495
+ _sse.interval = 100;
3496
+ _sse.URL = _buildSSEUrl();
3497
3497
  } */
3498
3498
 
3499
3499
  if (!skipCallbackInvocation) {
@@ -3542,11 +3542,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3542
3542
  };
3543
3543
  }
3544
3544
 
3545
- /**
3546
- * Open web socket. <br>
3547
- * Automatically use fallback transport if web socket can't be opened.
3548
- *
3549
- * @private
3545
+ /**
3546
+ * Open web socket. <br>
3547
+ * Automatically use fallback transport if web socket can't be opened.
3548
+ *
3549
+ * @private
3550
3550
  */
3551
3551
  function _executeWebSocket(webSocketOpened) {
3552
3552
 
@@ -3886,12 +3886,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3886
3886
  _invokeCallback();
3887
3887
  }
3888
3888
 
3889
- /**
3890
- * Track received message and make sure callbacks/functions are only invoked when the complete message has been received.
3891
- *
3892
- * @param message
3893
- * @param request
3894
- * @param response
3889
+ /**
3890
+ * Track received message and make sure callbacks/functions are only invoked when the complete message has been received.
3891
+ *
3892
+ * @param message
3893
+ * @param request
3894
+ * @param response
3895
3895
  */
3896
3896
  function _trackMessageSize(message, request, response) {
3897
3897
  // skip message tracking for binary messages
@@ -3950,11 +3950,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3950
3950
  return false;
3951
3951
  }
3952
3952
 
3953
- /**
3954
- * Reconnect request with fallback transport. <br>
3955
- * Used in case websocket can't be opened.
3956
- *
3957
- * @private
3953
+ /**
3954
+ * Reconnect request with fallback transport. <br>
3955
+ * Used in case websocket can't be opened.
3956
+ *
3957
+ * @private
3958
3958
  */
3959
3959
  function _reconnectWithFallbackTransport(errorMessage) {
3960
3960
  atmosphere.util.log(_request.logLevel, [errorMessage]);
@@ -3983,13 +3983,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3983
3983
  }
3984
3984
  }
3985
3985
 
3986
- /**
3987
- * Get url from request and attach headers to it.
3988
- *
3989
- * @param request {Object} request Request parameters, if undefined _request object will be used.
3990
- *
3991
- * @returns {Object} Request object, if undefined, _request object will be used.
3992
- * @private
3986
+ /**
3987
+ * Get url from request and attach headers to it.
3988
+ *
3989
+ * @param request {Object} request Request parameters, if undefined _request object will be used.
3990
+ *
3991
+ * @returns {Object} Request object, if undefined, _request object will be used.
3992
+ * @private
3993
3993
  */
3994
3994
  function _attachHeaders(request, url) {
3995
3995
  var rq = _request;
@@ -4074,11 +4074,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4074
4074
  }
4075
4075
  }
4076
4076
 
4077
- /**
4078
- * Execute ajax request. <br>
4079
- *
4080
- * @param request {Object} request Request parameters, if undefined _request object will be used.
4081
- * @private
4077
+ /**
4078
+ * Execute ajax request. <br>
4079
+ *
4080
+ * @param request {Object} request Request parameters, if undefined _request object will be used.
4081
+ * @private
4082
4082
  */
4083
4083
  function _executeRequest(request) {
4084
4084
  var rq = _request;
@@ -4371,12 +4371,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4371
4371
  _reconnect(ajaxRequest, rq, 500);
4372
4372
  }
4373
4373
 
4374
- /**
4375
- * Do ajax request.
4376
- *
4377
- * @param ajaxRequest Ajax request.
4378
- * @param request Request parameters.
4379
- * @param create If ajax request has to be open.
4374
+ /**
4375
+ * Do ajax request.
4376
+ *
4377
+ * @param ajaxRequest Ajax request.
4378
+ * @param request Request parameters.
4379
+ * @param create If ajax request has to be open.
4380
4380
  */
4381
4381
  function _doRequest(ajaxRequest, request, create) {
4382
4382
  // Prevent Android to cache request
@@ -4753,12 +4753,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4753
4753
  };
4754
4754
  }
4755
4755
 
4756
- /**
4757
- * Send message. <br>
4758
- * Will be automatically dispatch to other connected.
4759
- *
4760
- * @param {Object, string} Message to send.
4761
- * @private
4756
+ /**
4757
+ * Send message. <br>
4758
+ * Will be automatically dispatch to other connected.
4759
+ *
4760
+ * @param {Object, string} Message to send.
4761
+ * @private
4762
4762
  */
4763
4763
  function _push(message) {
4764
4764
 
@@ -4814,22 +4814,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4814
4814
  }
4815
4815
  }
4816
4816
 
4817
- /**
4818
- * Send a message using currently opened ajax request (using http-streaming or long-polling). <br>
4819
- *
4820
- * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4821
- * @private
4817
+ /**
4818
+ * Send a message using currently opened ajax request (using http-streaming or long-polling). <br>
4819
+ *
4820
+ * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4821
+ * @private
4822
4822
  */
4823
4823
  function _pushAjaxMessage(message) {
4824
4824
  var rq = _getPushRequest(message);
4825
4825
  _executeRequest(rq);
4826
4826
  }
4827
4827
 
4828
- /**
4829
- * Send a message using currently opened ie streaming (using http-streaming or long-polling). <br>
4830
- *
4831
- * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4832
- * @private
4828
+ /**
4829
+ * Send a message using currently opened ie streaming (using http-streaming or long-polling). <br>
4830
+ *
4831
+ * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4832
+ * @private
4833
4833
  */
4834
4834
  function _pushIE(message) {
4835
4835
  if (_request.enableXDR && atmosphere.util.checkCORSSupport()) {
@@ -4842,11 +4842,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4842
4842
  }
4843
4843
  }
4844
4844
 
4845
- /**
4846
- * Send a message using jsonp transport. <br>
4847
- *
4848
- * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4849
- * @private
4845
+ /**
4846
+ * Send a message using jsonp transport. <br>
4847
+ *
4848
+ * @param {string, Object} Message to send. This is an object, string message is saved in data member.
4849
+ * @private
4850
4850
  */
4851
4851
  function _pushJsonp(message) {
4852
4852
  _pushAjaxMessage(message);
@@ -4860,11 +4860,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4860
4860
  return msg;
4861
4861
  }
4862
4862
 
4863
- /**
4864
- * Build request use to push message using method 'POST' <br>. Transport is defined as 'polling' and 'suspend' is set to false.
4865
- *
4866
- * @return {Object} Request object use to push message.
4867
- * @private
4863
+ /**
4864
+ * Build request use to push message using method 'POST' <br>. Transport is defined as 'polling' and 'suspend' is set to false.
4865
+ *
4866
+ * @return {Object} Request object use to push message.
4867
+ * @private
4868
4868
  */
4869
4869
  function _getPushRequest(message) {
4870
4870
  var msg = _getStringMessage(message);
@@ -4906,9 +4906,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4906
4906
  return rq;
4907
4907
  }
4908
4908
 
4909
- /**
4910
- * Send a message using currently opened websocket. <br>
4911
- *
4909
+ /**
4910
+ * Send a message using currently opened websocket. <br>
4911
+ *
4912
4912
  */
4913
4913
  function _pushWebSocket(message) {
4914
4914
  var msg = atmosphere.util.isBinary(message) ? message : _getStringMessage(message);
@@ -5058,10 +5058,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5058
5058
  }
5059
5059
  }
5060
5060
 
5061
- /**
5062
- * Invoke request callbacks.
5063
- *
5064
- * @private
5061
+ /**
5062
+ * Invoke request callbacks.
5063
+ *
5064
+ * @private
5065
5065
  */
5066
5066
  function _invokeCallback() {
5067
5067
  var call = function call(index, func) {
@@ -5900,21 +5900,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
5900
5900
 
5901
5901
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
5902
5902
 
5903
- /*
5904
- Note: Usage of formatters can cause a potential performance penalty
5903
+ /*
5904
+ Note: Usage of formatters can cause a potential performance penalty
5905
5905
  */
5906
5906
 
5907
5907
  /* Keep synchronized with com.quotemedia.streamer.client.fmt.FmtMessage */
5908
5908
 
5909
5909
  var fmt = {};
5910
5910
 
5911
- /**
5912
- * Creates a new message formatter.
5913
- * @constructor
5911
+ /**
5912
+ * Creates a new message formatter.
5913
+ * @constructor
5914
5914
  */
5915
5915
  fmt.Formatter = function () {
5916
- /**
5917
- * Formatters by message type.
5916
+ /**
5917
+ * Formatters by message type.
5918
5918
  */
5919
5919
  this.formatters = {};
5920
5920
  this.formatters[fmt.Formatter._UNKOWNTYPE] = this._fmtunknown;
@@ -6557,6 +6557,8 @@ fmt.Formatter.prototype._fmttradeNotification = function (val) {
6557
6557
  s.append(val.message);
6558
6558
  s.sep();
6559
6559
  s.append(val.eventType);
6560
+ s.sep();
6561
+ s.append(val.alertable);
6560
6562
 
6561
6563
  return s.toString();
6562
6564
  };
@@ -6979,9 +6981,9 @@ fmt.Formatter.prototype._fmtmisseddatasent = function (val) {
6979
6981
  return s.toString();
6980
6982
  };
6981
6983
 
6982
- /**
6983
- * Create a new sting builder.
6984
- * @constructor
6984
+ /**
6985
+ * Create a new sting builder.
6986
+ * @constructor
6985
6987
  */
6986
6988
  fmt.StringBuilder = function () {
6987
6989
  this._str = '';
@@ -7242,16 +7244,16 @@ function asLogger(logger) {
7242
7244
  exports.__esModule = true;
7243
7245
  /* @see http://usejsdoc.org */
7244
7246
 
7245
- /**
7246
- * Streamer api namespace.
7247
- * @namespace
7247
+ /**
7248
+ * Streamer api namespace.
7249
+ * @namespace
7248
7250
  */
7249
7251
 
7250
7252
  /* ****************************************************************************************************************** */
7251
7253
 
7252
- /**
7253
- * Supported encodings.
7254
- * @enum
7254
+ /**
7255
+ * Supported encodings.
7256
+ * @enum
7255
7257
  */
7256
7258
  var Encodings = exports.Encodings = {
7257
7259
  UNDEFINED: "undefined",
@@ -7264,9 +7266,9 @@ var Encodings = exports.Encodings = {
7264
7266
  BASE64_CHAR: "B"
7265
7267
  };
7266
7268
 
7267
- /**
7268
- * Supported mime types.
7269
- * @enum
7269
+ /**
7270
+ * Supported mime types.
7271
+ * @enum
7270
7272
  */
7271
7273
  var MimeTypes = exports.MimeTypes = {
7272
7274
  UNDEFINED: "undefined",
@@ -7282,12 +7284,12 @@ var MimeTypes = exports.MimeTypes = {
7282
7284
  QITCH_CHAR: "I"
7283
7285
  };
7284
7286
 
7285
- /**
7286
- * Returns the with '0' left padded string representation of the number.
7287
- * @param num {number} the number to create string for
7288
- * @param len {number} the target length of the string
7289
- * @return {string} the with '0' left padded string
7290
- * @throws Will throw an error if number doesn't fit within target length
7287
+ /**
7288
+ * Returns the with '0' left padded string representation of the number.
7289
+ * @param num {number} the number to create string for
7290
+ * @param len {number} the target length of the string
7291
+ * @return {string} the with '0' left padded string
7292
+ * @throws Will throw an error if number doesn't fit within target length
7291
7293
  */
7292
7294
  var lpad = exports.lpad = function lpad(num, len) {
7293
7295
  var _numstr = num.toString();
@@ -7613,13 +7615,13 @@ var BIG_INT_FORTY = _jsbi2["default"].BigInt(40);
7613
7615
  var BIG_INT_FORTY_EIGHT = _jsbi2["default"].BigInt(48);
7614
7616
  var BIG_INT_FIFTY_SIX = _jsbi2["default"].BigInt(56);
7615
7617
 
7616
- /*
7617
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
7618
+ /*
7619
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
7618
7620
  */
7619
- /**
7620
- * Translates bytes into numbers and vice versa.
7621
- * Use multiplication instead of shifts because in javascript shifts are slower than multiplication
7622
- * (under the hood shifts call ToInt32 which is slower than ToNumber in multiplication).
7621
+ /**
7622
+ * Translates bytes into numbers and vice versa.
7623
+ * Use multiplication instead of shifts because in javascript shifts are slower than multiplication
7624
+ * (under the hood shifts call ToInt32 which is slower than ToNumber in multiplication).
7623
7625
  */
7624
7626
 
7625
7627
  var Bytes = function () {
@@ -7633,11 +7635,11 @@ var Bytes = function () {
7633
7635
  return dst;
7634
7636
  };
7635
7637
 
7636
- /**
7637
- * Gets numeric value that is in range of short (Int16) from byte array
7638
- * @param src The source array
7639
- * @param offset The offset
7640
- * @returns {number} Resulting short value
7638
+ /**
7639
+ * Gets numeric value that is in range of short (Int16) from byte array
7640
+ * @param src The source array
7641
+ * @param offset The offset
7642
+ * @returns {number} Resulting short value
7641
7643
  */
7642
7644
 
7643
7645
 
@@ -7654,11 +7656,11 @@ var Bytes = function () {
7654
7656
  return dst;
7655
7657
  };
7656
7658
 
7657
- /**
7658
- * Gets numeric value that is in range of integer (Int32) from byte array
7659
- * @param src The source array
7660
- * @param offset The offset
7661
- * @returns {number} Resulting int value
7659
+ /**
7660
+ * Gets numeric value that is in range of integer (Int32) from byte array
7661
+ * @param src The source array
7662
+ * @param offset The offset
7663
+ * @returns {number} Resulting int value
7662
7664
  */
7663
7665
 
7664
7666
 
@@ -7669,11 +7671,11 @@ var Bytes = function () {
7669
7671
  src[offset + 3] & 0xff;
7670
7672
  };
7671
7673
 
7672
- /**
7673
- * Gets numeric value that is in range of long (Int64) from byte array.
7674
- * @param src The source array
7675
- * @param offset The offset
7676
- * @returns {JSBI} Resulting string representation of long.
7674
+ /**
7675
+ * Gets numeric value that is in range of long (Int64) from byte array.
7676
+ * @param src The source array
7677
+ * @param offset The offset
7678
+ * @returns {JSBI} Resulting string representation of long.
7677
7679
  */
7678
7680
 
7679
7681
 
@@ -7715,8 +7717,8 @@ var UShort = function () {
7715
7717
  return UShort;
7716
7718
  }();
7717
7719
 
7718
- /**
7719
- * Length in bytes
7720
+ /**
7721
+ * Length in bytes
7720
7722
  */
7721
7723
 
7722
7724
 
@@ -7746,8 +7748,8 @@ var UByte = function () {
7746
7748
  return UByte;
7747
7749
  }();
7748
7750
 
7749
- /**
7750
- * Length in bytes
7751
+ /**
7752
+ * Length in bytes
7751
7753
  */
7752
7754
 
7753
7755
 
@@ -7777,8 +7779,8 @@ var UInt = function () {
7777
7779
  return UInt;
7778
7780
  }();
7779
7781
 
7780
- /**
7781
- * Length in bytes
7782
+ /**
7783
+ * Length in bytes
7782
7784
  */
7783
7785
 
7784
7786
 
@@ -8024,24 +8026,24 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
8024
8026
 
8025
8027
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8026
8028
 
8027
- /*
8028
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
8029
+ /*
8030
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
8029
8031
  */
8030
8032
  var Qitch = function () {
8031
8033
  function Qitch() {
8032
8034
  _classCallCheck(this, Qitch);
8033
8035
  }
8034
8036
 
8035
- /**
8036
- * Copies an array from the specified source array, beginning at sourceIndex,
8037
- * to the specified position of the destination array.
8038
- * The number of components copied is equal to the length argument. The elements are copied
8039
- * into a destination array starting from destinationIndex.
8040
- * @param sourceArray The source array
8041
- * @param sourceIndex The starting position in the source array.
8042
- * @param destinationArray The destination array
8043
- * @param destinationIndex The starting position in the destination array.
8044
- * @param length The number of array elements to be copied.
8037
+ /**
8038
+ * Copies an array from the specified source array, beginning at sourceIndex,
8039
+ * to the specified position of the destination array.
8040
+ * The number of components copied is equal to the length argument. The elements are copied
8041
+ * into a destination array starting from destinationIndex.
8042
+ * @param sourceArray The source array
8043
+ * @param sourceIndex The starting position in the source array.
8044
+ * @param destinationArray The destination array
8045
+ * @param destinationIndex The starting position in the destination array.
8046
+ * @param length The number of array elements to be copied.
8045
8047
  */
8046
8048
  Qitch.copyArray = function copyArray(sourceArray, sourceIndex, destinationArray, destinationIndex, length) {
8047
8049
  if (length === 0) {
@@ -8068,12 +8070,12 @@ var Qitch = function () {
8068
8070
  }
8069
8071
  };
8070
8072
 
8071
- /**
8072
- * Gets boolean value from source byte array at specified position.
8073
- * @param src The source array.
8074
- * @param offset The offset.
8075
- * @returns {boolean} Returns obtained value.
8076
- * @throws Exception in case if src is not {@link Int8Array}
8073
+ /**
8074
+ * Gets boolean value from source byte array at specified position.
8075
+ * @param src The source array.
8076
+ * @param offset The offset.
8077
+ * @returns {boolean} Returns obtained value.
8078
+ * @throws Exception in case if src is not {@link Int8Array}
8077
8079
  */
8078
8080
 
8079
8081
 
@@ -8084,13 +8086,13 @@ var Qitch = function () {
8084
8086
  throw "Invalid source. Expected: Int8Array";
8085
8087
  };
8086
8088
 
8087
- /**
8088
- * Puts boolean value into destination array.
8089
- * @param dst The destination array
8090
- * @param offset The offset.
8091
- * @param val Boolean value.
8092
- * @returns {Int8Array} destination array.
8093
- * @throws Exception in case if dst is not {@link Int8Array}
8089
+ /**
8090
+ * Puts boolean value into destination array.
8091
+ * @param dst The destination array
8092
+ * @param offset The offset.
8093
+ * @param val Boolean value.
8094
+ * @returns {Int8Array} destination array.
8095
+ * @throws Exception in case if dst is not {@link Int8Array}
8094
8096
  */
8095
8097
 
8096
8098
 
@@ -8102,13 +8104,13 @@ var Qitch = function () {
8102
8104
  throw "Invalid destination. Expected: Int8Array";
8103
8105
  };
8104
8106
 
8105
- /**
8106
- * Puts byte value into destination array.
8107
- * @param dst The destination array
8108
- * @param offset The offset.
8109
- * @param val Byte value.
8110
- * @returns {Int8Array} destination array.
8111
- * @throws Exception in case if dst is not {@link Int8Array}
8107
+ /**
8108
+ * Puts byte value into destination array.
8109
+ * @param dst The destination array
8110
+ * @param offset The offset.
8111
+ * @param val Byte value.
8112
+ * @returns {Int8Array} destination array.
8113
+ * @throws Exception in case if dst is not {@link Int8Array}
8112
8114
  */
8113
8115
 
8114
8116
 
@@ -8120,12 +8122,12 @@ var Qitch = function () {
8120
8122
  throw "Invalid destination. Expected: Int8Array";
8121
8123
  };
8122
8124
 
8123
- /**
8124
- * Gets integer (int32) value from source byte array at specified position.
8125
- * @param src The source array.
8126
- * @param offset The offset.
8127
- * @returns {number} Returns obtained value.
8128
- * @throws Exception in case if src is not {@link Int8Array}
8125
+ /**
8126
+ * Gets integer (int32) value from source byte array at specified position.
8127
+ * @param src The source array.
8128
+ * @param offset The offset.
8129
+ * @returns {number} Returns obtained value.
8130
+ * @throws Exception in case if src is not {@link Int8Array}
8129
8131
  */
8130
8132
 
8131
8133
 
@@ -8136,13 +8138,13 @@ var Qitch = function () {
8136
8138
  throw "Invalid source. Expected: Int8Array";
8137
8139
  };
8138
8140
 
8139
- /**
8140
- * Sets integer (int32) value to destination array
8141
- * @param dst destination array
8142
- * @param offset offset
8143
- * @param val integer value
8144
- * @returns {Int8Array} destination array.
8145
- * @throws Exception in case if dst is not {@link Int8Array}
8141
+ /**
8142
+ * Sets integer (int32) value to destination array
8143
+ * @param dst destination array
8144
+ * @param offset offset
8145
+ * @param val integer value
8146
+ * @returns {Int8Array} destination array.
8147
+ * @throws Exception in case if dst is not {@link Int8Array}
8146
8148
  */
8147
8149
 
8148
8150
 
@@ -8153,12 +8155,12 @@ var Qitch = function () {
8153
8155
  throw "Invalid destination. Expected: Int8Array";
8154
8156
  };
8155
8157
 
8156
- /**
8157
- * Gets unsigned integer (uint32) value from source byte array at specified position.
8158
- * @param src The source array.
8159
- * @param offset The offset.
8160
- * @returns {number} Returns obtained value.
8161
- * @throws Exception in case if src is not {@link Int8Array}
8158
+ /**
8159
+ * Gets unsigned integer (uint32) value from source byte array at specified position.
8160
+ * @param src The source array.
8161
+ * @param offset The offset.
8162
+ * @returns {number} Returns obtained value.
8163
+ * @throws Exception in case if src is not {@link Int8Array}
8162
8164
  */
8163
8165
 
8164
8166
 
@@ -8169,13 +8171,13 @@ var Qitch = function () {
8169
8171
  throw "Invalid source. Expected: Int8Array";
8170
8172
  };
8171
8173
 
8172
- /**
8173
- * Sets unsigned integer (uint32) value to destination array
8174
- * @param dst destination array
8175
- * @param offset offset
8176
- * @param val unsigned integer value
8177
- * @returns {Int8Array} destination array.
8178
- * @throws Exception in case if dst is not {@link Int8Array}
8174
+ /**
8175
+ * Sets unsigned integer (uint32) value to destination array
8176
+ * @param dst destination array
8177
+ * @param offset offset
8178
+ * @param val unsigned integer value
8179
+ * @returns {Int8Array} destination array.
8180
+ * @throws Exception in case if dst is not {@link Int8Array}
8179
8181
  */
8180
8182
 
8181
8183
 
@@ -8186,13 +8188,13 @@ var Qitch = function () {
8186
8188
  throw "Invalid destination. Expected: Int8Array";
8187
8189
  };
8188
8190
 
8189
- /**
8190
- * Gets single character from source byte array at specified position.
8191
- * @param src The source array.
8192
- * @param offset The offset.
8193
- * @returns {null|String} Returns null if offset is out of array index range or
8194
- * value is equal to {@link Constants#ASCII_NULL}, otherwise returns the obtained value.
8195
- * @throws Exception in case if src is not {@link Int8Array}
8191
+ /**
8192
+ * Gets single character from source byte array at specified position.
8193
+ * @param src The source array.
8194
+ * @param offset The offset.
8195
+ * @returns {null|String} Returns null if offset is out of array index range or
8196
+ * value is equal to {@link Constants#ASCII_NULL}, otherwise returns the obtained value.
8197
+ * @throws Exception in case if src is not {@link Int8Array}
8196
8198
  */
8197
8199
 
8198
8200
 
@@ -8207,13 +8209,13 @@ var Qitch = function () {
8207
8209
  throw "Invalid source. Expected: Int8Array";
8208
8210
  };
8209
8211
 
8210
- /**
8211
- * Gets long (int64) value from source byte array at specified position. Since javascript doesn't support long values,
8212
- * it is returned as {@link JSBI.BigInt}.
8213
- * @param src The source array.
8214
- * @param offset The offset.
8215
- * @returns {JSBI} Returns obtained value.
8216
- * @throws Exception in case if src is not {@link Int8Array}
8212
+ /**
8213
+ * Gets long (int64) value from source byte array at specified position. Since javascript doesn't support long values,
8214
+ * it is returned as {@link JSBI.BigInt}.
8215
+ * @param src The source array.
8216
+ * @param offset The offset.
8217
+ * @returns {JSBI} Returns obtained value.
8218
+ * @throws Exception in case if src is not {@link Int8Array}
8217
8219
  */
8218
8220
 
8219
8221
 
@@ -8224,14 +8226,14 @@ var Qitch = function () {
8224
8226
  throw "Invalid source. Expected: Int8Array";
8225
8227
  };
8226
8228
 
8227
- /**
8228
- * Gets double value from byte source array at specified position.
8229
- * In QITCH double values are sent as longs and then divided by {@link Constants#PRICE_DIVISOR}. Since javascript
8230
- * doesn't support long values, the result is returned as {@link BigNumber}.
8231
- * @param src The source array.
8232
- * @param offset The offset.
8233
- * @returns {BigNumber} Returns obtained value.
8234
- * @throws Exception in case if src is not {@link Int8Array}
8229
+ /**
8230
+ * Gets double value from byte source array at specified position.
8231
+ * In QITCH double values are sent as longs and then divided by {@link Constants#PRICE_DIVISOR}. Since javascript
8232
+ * doesn't support long values, the result is returned as {@link BigNumber}.
8233
+ * @param src The source array.
8234
+ * @param offset The offset.
8235
+ * @returns {BigNumber} Returns obtained value.
8236
+ * @throws Exception in case if src is not {@link Int8Array}
8235
8237
  */
8236
8238
 
8237
8239
 
@@ -8242,12 +8244,12 @@ var Qitch = function () {
8242
8244
  throw "Invalid source. Expected: Int8Array";
8243
8245
  };
8244
8246
 
8245
- /**
8246
- * Gets signed byte from source byte array at specified position.
8247
- * @param src The source array.
8248
- * @param offset The offset.
8249
- * @returns {number} Returns obtained value.
8250
- * @throws Exception in case if src is not {@link Int8Array}
8247
+ /**
8248
+ * Gets signed byte from source byte array at specified position.
8249
+ * @param src The source array.
8250
+ * @param offset The offset.
8251
+ * @returns {number} Returns obtained value.
8252
+ * @throws Exception in case if src is not {@link Int8Array}
8251
8253
  */
8252
8254
 
8253
8255
 
@@ -8258,14 +8260,14 @@ var Qitch = function () {
8258
8260
  throw "Invalid source. Expected: Int8Array";
8259
8261
  };
8260
8262
 
8261
- /**
8262
- * Gets timestamp value from source byte array at specified offset. Since javascript doesn't support long values,
8263
- * it is returned as {@link JSBI.BigInt}
8264
- * @param src The source array.
8265
- * @param offset The offset.
8266
- * @returns {null|JSBI} Returns null if value is equal to {@link Constants#TIMESTAMP_NULL}
8267
- * otherwise returns the obtained value.
8268
- * @throws Exception in case if src is not {@link Int8Array}
8263
+ /**
8264
+ * Gets timestamp value from source byte array at specified offset. Since javascript doesn't support long values,
8265
+ * it is returned as {@link JSBI.BigInt}
8266
+ * @param src The source array.
8267
+ * @param offset The offset.
8268
+ * @returns {null|JSBI} Returns null if value is equal to {@link Constants#TIMESTAMP_NULL}
8269
+ * otherwise returns the obtained value.
8270
+ * @throws Exception in case if src is not {@link Int8Array}
8269
8271
  */
8270
8272
 
8271
8273
 
@@ -8277,12 +8279,12 @@ var Qitch = function () {
8277
8279
  throw "Invalid source. Expected: Int8Array";
8278
8280
  };
8279
8281
 
8280
- /**
8281
- * Gets locate code value from source byte array at specified offset.
8282
- * @param src The source array.
8283
- * @param offset The offset.
8284
- * @returns {number} Returns obtained value.
8285
- * @throws Exception in case if src is not {@link Int8Array}
8282
+ /**
8283
+ * Gets locate code value from source byte array at specified offset.
8284
+ * @param src The source array.
8285
+ * @param offset The offset.
8286
+ * @returns {number} Returns obtained value.
8287
+ * @throws Exception in case if src is not {@link Int8Array}
8286
8288
  */
8287
8289
 
8288
8290
 
@@ -8293,13 +8295,13 @@ var Qitch = function () {
8293
8295
  throw "Invalid source. Expected: Int8Array";
8294
8296
  };
8295
8297
 
8296
- /**
8297
- * Gets symbol value from source byte array at specified offset.
8298
- * @param src The source array.
8299
- * @param offset The offset.
8300
- * @returns {null|String} Returns null in case if specified offset is too big (offset + symbol length in bytes is bigger than length of source array),
8301
- * otherwise returns obtained value.
8302
- * @throws Exception in case if src is not {@link Int8Array}
8298
+ /**
8299
+ * Gets symbol value from source byte array at specified offset.
8300
+ * @param src The source array.
8301
+ * @param offset The offset.
8302
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + symbol length in bytes is bigger than length of source array),
8303
+ * otherwise returns obtained value.
8304
+ * @throws Exception in case if src is not {@link Int8Array}
8303
8305
  */
8304
8306
 
8305
8307
 
@@ -8313,13 +8315,13 @@ var Qitch = function () {
8313
8315
  throw "Invalid source. Expected: Int8Array";
8314
8316
  };
8315
8317
 
8316
- /**
8317
- * Puts symbol value into destination array.
8318
- * @param dst The destination array.
8319
- * @param offset The offset.
8320
- * @param val Symbol value.
8321
- * @returns {Int8Array} destination array.
8322
- * @throws Exception in case if dst is not {@link Int8Array}
8318
+ /**
8319
+ * Puts symbol value into destination array.
8320
+ * @param dst The destination array.
8321
+ * @param offset The offset.
8322
+ * @param val Symbol value.
8323
+ * @returns {Int8Array} destination array.
8324
+ * @throws Exception in case if dst is not {@link Int8Array}
8323
8325
  */
8324
8326
 
8325
8327
 
@@ -8330,14 +8332,14 @@ var Qitch = function () {
8330
8332
  throw "Invalid destination. Expected: Int8Array";
8331
8333
  };
8332
8334
 
8333
- /**
8334
- * Gets String value from source byte array at specified offset.
8335
- * @param src The source array.
8336
- * @param offset The offset.
8337
- * @param maxLength The max length of returning value.
8338
- * @returns {null|String} Returns null in case if specified offset is too big (offset + maxLength in bytes is bigger than length of source array),
8339
- * otherwise returns obtained value.
8340
- * @throws Exception in case if src is not {@link Int8Array}
8335
+ /**
8336
+ * Gets String value from source byte array at specified offset.
8337
+ * @param src The source array.
8338
+ * @param offset The offset.
8339
+ * @param maxLength The max length of returning value.
8340
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + maxLength in bytes is bigger than length of source array),
8341
+ * otherwise returns obtained value.
8342
+ * @throws Exception in case if src is not {@link Int8Array}
8341
8343
  */
8342
8344
 
8343
8345
 
@@ -8348,14 +8350,14 @@ var Qitch = function () {
8348
8350
  throw "Invalid source. Expected: Int8Array";
8349
8351
  };
8350
8352
 
8351
- /**
8352
- * Puts String value into destination array.
8353
- * @param dst The destination array.
8354
- * @param offset The offset.
8355
- * @param val String value.
8356
- * @param maxLength The max length of returning value.
8357
- * @returns {Int8Array} destination array.
8358
- * @throws Exception in case if dst is not {@link Int8Array}
8353
+ /**
8354
+ * Puts String value into destination array.
8355
+ * @param dst The destination array.
8356
+ * @param offset The offset.
8357
+ * @param val String value.
8358
+ * @param maxLength The max length of returning value.
8359
+ * @returns {Int8Array} destination array.
8360
+ * @throws Exception in case if dst is not {@link Int8Array}
8359
8361
  */
8360
8362
 
8361
8363
 
@@ -8366,13 +8368,13 @@ var Qitch = function () {
8366
8368
  throw "Invalid destination. Expected: Int8Array";
8367
8369
  };
8368
8370
 
8369
- /**
8370
- * Gets excode value from source byte array at specified offset.
8371
- * @param src The source array.
8372
- * @param offset The offset.
8373
- * @returns {null|String} Returns null in case if specified offset is too big (offset + excode length in bytes is bigger than length of source array),
8374
- * otherwise returns obtained value.
8375
- * @throws Exception in case if src is not {@link Int8Array}
8371
+ /**
8372
+ * Gets excode value from source byte array at specified offset.
8373
+ * @param src The source array.
8374
+ * @param offset The offset.
8375
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + excode length in bytes is bigger than length of source array),
8376
+ * otherwise returns obtained value.
8377
+ * @throws Exception in case if src is not {@link Int8Array}
8376
8378
  */
8377
8379
 
8378
8380
 
@@ -8386,13 +8388,13 @@ var Qitch = function () {
8386
8388
  throw "Invalid source. Expected: Int8Array";
8387
8389
  };
8388
8390
 
8389
- /**
8390
- * Puts excode value into destination array.
8391
- * @param dst The destination array.
8392
- * @param offset The offset.
8393
- * @param val excode value.
8394
- * @returns {Int8Array} destination array.
8395
- * @throws Exception in case if dst is not {@link Int8Array}
8391
+ /**
8392
+ * Puts excode value into destination array.
8393
+ * @param dst The destination array.
8394
+ * @param offset The offset.
8395
+ * @param val excode value.
8396
+ * @returns {Int8Array} destination array.
8397
+ * @throws Exception in case if dst is not {@link Int8Array}
8396
8398
  */
8397
8399
 
8398
8400
 
@@ -8403,13 +8405,13 @@ var Qitch = function () {
8403
8405
  throw "Invalid destination. Expected: Int8Array";
8404
8406
  };
8405
8407
 
8406
- /**
8407
- * Gets mmid value from source byte array at specified offset.
8408
- * @param src The source array.
8409
- * @param offset The offset.
8410
- * @returns {null|String} Returns null in case if specified offset is too big (offset + excode length in bytes is bigger than length of source array),
8411
- * otherwise returns obtained value.
8412
- * @throws Exception in case if src is not {@link Int8Array}
8408
+ /**
8409
+ * Gets mmid value from source byte array at specified offset.
8410
+ * @param src The source array.
8411
+ * @param offset The offset.
8412
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + excode length in bytes is bigger than length of source array),
8413
+ * otherwise returns obtained value.
8414
+ * @throws Exception in case if src is not {@link Int8Array}
8413
8415
  */
8414
8416
 
8415
8417
 
@@ -8423,13 +8425,13 @@ var Qitch = function () {
8423
8425
  throw "Invalid source. Expected: Int8Array";
8424
8426
  };
8425
8427
 
8426
- /**
8427
- * Gets numeric order id value from source byte array at specified offset. Since javascript doesn't support long values,
8428
- * it is returned as {@link JSBI.BigInt}
8429
- * @param src The source array.
8430
- * @param offset The offset.
8431
- * @returns {JSBI} Returns obtained value.
8432
- * @throws Exception in case if src is not {@link Int8Array}
8428
+ /**
8429
+ * Gets numeric order id value from source byte array at specified offset. Since javascript doesn't support long values,
8430
+ * it is returned as {@link JSBI.BigInt}
8431
+ * @param src The source array.
8432
+ * @param offset The offset.
8433
+ * @returns {JSBI} Returns obtained value.
8434
+ * @throws Exception in case if src is not {@link Int8Array}
8433
8435
  */
8434
8436
 
8435
8437
 
@@ -8440,13 +8442,13 @@ var Qitch = function () {
8440
8442
  throw "Invalid source. Expected: Int8Array";
8441
8443
  };
8442
8444
 
8443
- /**
8444
- * Gets order id as string from source byte array at specified offset.
8445
- * @param src The source array.
8446
- * @param offset The offset.
8447
- * @returns {null|String} Returns null in case if specified offset is too big (offset + order id length in bytes is bigger than length of source array),
8448
- * otherwise returns obtained value.
8449
- * @throws Exception in case if src is not {@link Int8Array}
8445
+ /**
8446
+ * Gets order id as string from source byte array at specified offset.
8447
+ * @param src The source array.
8448
+ * @param offset The offset.
8449
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + order id length in bytes is bigger than length of source array),
8450
+ * otherwise returns obtained value.
8451
+ * @throws Exception in case if src is not {@link Int8Array}
8450
8452
  */
8451
8453
 
8452
8454
 
@@ -8460,13 +8462,13 @@ var Qitch = function () {
8460
8462
  throw "Invalid source. Expected: Int8Array";
8461
8463
  };
8462
8464
 
8463
- /**
8464
- * Gets currency id from source byte array at specified offset.
8465
- * @param src The source array.
8466
- * @param offset The offset.
8467
- * @returns {null|String} Returns null in case if specified offset is too big (offset + currency id length in bytes is bigger than length of source array),
8468
- * otherwise returns obtained value.
8469
- * @throws Exception in case if src is not {@link Int8Array}
8465
+ /**
8466
+ * Gets currency id from source byte array at specified offset.
8467
+ * @param src The source array.
8468
+ * @param offset The offset.
8469
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + currency id length in bytes is bigger than length of source array),
8470
+ * otherwise returns obtained value.
8471
+ * @throws Exception in case if src is not {@link Int8Array}
8470
8472
  */
8471
8473
 
8472
8474
 
@@ -8480,13 +8482,13 @@ var Qitch = function () {
8480
8482
  throw "Invalid source. Expected: Int8Array";
8481
8483
  };
8482
8484
 
8483
- /**
8484
- * Gets tick from source byte array at specified offset.
8485
- * @param src The source array.
8486
- * @param offset The offset.
8487
- * @returns {string|null} Returns null in case if offset is out of array index range,
8488
- * otherwise character at specified offset is returned.
8489
- * @throws Exception in case if src is not {@link Int8Array}
8485
+ /**
8486
+ * Gets tick from source byte array at specified offset.
8487
+ * @param src The source array.
8488
+ * @param offset The offset.
8489
+ * @returns {string|null} Returns null in case if offset is out of array index range,
8490
+ * otherwise character at specified offset is returned.
8491
+ * @throws Exception in case if src is not {@link Int8Array}
8490
8492
  */
8491
8493
 
8492
8494
 
@@ -8500,13 +8502,13 @@ var Qitch = function () {
8500
8502
  throw "Invalid source. Expected: Int8Array";
8501
8503
  };
8502
8504
 
8503
- /**
8504
- * Gets order change type from source byte array at specified offset.
8505
- * @param src The source array.
8506
- * @param offset The offset.
8507
- * @returns {null|*} Returns null in case if offset is out of array index range,
8508
- * otherwise {@link messages.market.OrderChangeType} value that corresponds to the character at specified offset is returned.
8509
- * @throws Exception in case if src is not {@link Int8Array}
8505
+ /**
8506
+ * Gets order change type from source byte array at specified offset.
8507
+ * @param src The source array.
8508
+ * @param offset The offset.
8509
+ * @returns {null|*} Returns null in case if offset is out of array index range,
8510
+ * otherwise {@link messages.market.OrderChangeType} value that corresponds to the character at specified offset is returned.
8511
+ * @throws Exception in case if src is not {@link Int8Array}
8510
8512
  */
8511
8513
 
8512
8514
 
@@ -8524,13 +8526,13 @@ var Qitch = function () {
8524
8526
  throw "Invalid source. Expected: Int8Array";
8525
8527
  };
8526
8528
 
8527
- /**
8528
- * Gets order side from source byte array at specified offset.
8529
- * @param src The source array.
8530
- * @param offset The offset.
8531
- * @returns {string|null} Returns null in case if offset is out of array index range,
8532
- * otherwise character at specified offset is returned.
8533
- * @throws Exception in case if src is not {@link Int8Array}
8529
+ /**
8530
+ * Gets order side from source byte array at specified offset.
8531
+ * @param src The source array.
8532
+ * @param offset The offset.
8533
+ * @returns {string|null} Returns null in case if offset is out of array index range,
8534
+ * otherwise character at specified offset is returned.
8535
+ * @throws Exception in case if src is not {@link Int8Array}
8534
8536
  */
8535
8537
 
8536
8538
 
@@ -8548,13 +8550,13 @@ var Qitch = function () {
8548
8550
  throw "Invalid source. Expected: Int8Array";
8549
8551
  };
8550
8552
 
8551
- /**
8552
- * Gets range indicator from source byte array at specified offset.
8553
- * @param src The source array.
8554
- * @param offset The offset.
8555
- * @returns {string|null} Returns null in case if offset is out of array index range,
8556
- * otherwise character at specified offset is returned.
8557
- * @throws Exception in case if src is not {@link Int8Array}
8553
+ /**
8554
+ * Gets range indicator from source byte array at specified offset.
8555
+ * @param src The source array.
8556
+ * @param offset The offset.
8557
+ * @returns {string|null} Returns null in case if offset is out of array index range,
8558
+ * otherwise character at specified offset is returned.
8559
+ * @throws Exception in case if src is not {@link Int8Array}
8558
8560
  */
8559
8561
 
8560
8562
 
@@ -8568,13 +8570,13 @@ var Qitch = function () {
8568
8570
  throw "Invalid source. Expected: Int8Array";
8569
8571
  };
8570
8572
 
8571
- /**
8572
- * Gets instrument type from source byte array at specified offset.
8573
- * @param src The source array.
8574
- * @param offset The offset.
8575
- * @returns {null|*} Returns null in case if offset is out of array index range,
8576
- * otherwise {@link messages.market.InstrumentType} value that corresponds to the byte at specified offset is returned.
8577
- * @throws Exception in case if src is not {@link Int8Array}
8573
+ /**
8574
+ * Gets instrument type from source byte array at specified offset.
8575
+ * @param src The source array.
8576
+ * @param offset The offset.
8577
+ * @returns {null|*} Returns null in case if offset is out of array index range,
8578
+ * otherwise {@link messages.market.InstrumentType} value that corresponds to the byte at specified offset is returned.
8579
+ * @throws Exception in case if src is not {@link Int8Array}
8578
8580
  */
8579
8581
 
8580
8582
 
@@ -8588,13 +8590,13 @@ var Qitch = function () {
8588
8590
  throw "Invalid source. Expected: Int8Array";
8589
8591
  };
8590
8592
 
8591
- /**
8592
- * Gets imbalance type from source byte array at specified offset.
8593
- * @param src The source array.
8594
- * @param offset The offset.
8595
- * @returns {null|*} Returns null in case if offset is out of array index range,
8596
- * otherwise {@link messages.market.ImbalanceType} value that corresponds to the byte at specified offset is returned.
8597
- * @throws Exception in case if src is not {@link Int8Array}
8593
+ /**
8594
+ * Gets imbalance type from source byte array at specified offset.
8595
+ * @param src The source array.
8596
+ * @param offset The offset.
8597
+ * @returns {null|*} Returns null in case if offset is out of array index range,
8598
+ * otherwise {@link messages.market.ImbalanceType} value that corresponds to the byte at specified offset is returned.
8599
+ * @throws Exception in case if src is not {@link Int8Array}
8598
8600
  */
8599
8601
 
8600
8602
 
@@ -8608,13 +8610,13 @@ var Qitch = function () {
8608
8610
  throw "Invalid source. Expected: Int8Array";
8609
8611
  };
8610
8612
 
8611
- /**
8612
- * Gets order refernece from source byte array at specified offset.
8613
- * @param src The source array.
8614
- * @param offset The offset.
8615
- * @returns {null|String} Returns null in case if specified offset is too big (offset + order reference length in bytes is bigger than length of source array),
8616
- * otherwise returns obtained value.
8617
- * @throws Exception in case if src is not {@link Int8Array}
8613
+ /**
8614
+ * Gets order refernece from source byte array at specified offset.
8615
+ * @param src The source array.
8616
+ * @param offset The offset.
8617
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + order reference length in bytes is bigger than length of source array),
8618
+ * otherwise returns obtained value.
8619
+ * @throws Exception in case if src is not {@link Int8Array}
8618
8620
  */
8619
8621
 
8620
8622
 
@@ -8628,13 +8630,13 @@ var Qitch = function () {
8628
8630
  throw "Invalid source. Expected: Int8Array";
8629
8631
  };
8630
8632
 
8631
- /**
8632
- * Gets response reason from source byte array at specified offset.
8633
- * @param src The source array.
8634
- * @param offset The offset.
8635
- * @returns {null|String} Returns null in case if specified offset is too big (offset + reason length in bytes is bigger than length of source array),
8636
- * otherwise returns obtained value.
8637
- * @throws Exception in case if src is not {@link Int8Array}
8633
+ /**
8634
+ * Gets response reason from source byte array at specified offset.
8635
+ * @param src The source array.
8636
+ * @param offset The offset.
8637
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + reason length in bytes is bigger than length of source array),
8638
+ * otherwise returns obtained value.
8639
+ * @throws Exception in case if src is not {@link Int8Array}
8638
8640
  */
8639
8641
 
8640
8642
 
@@ -8648,13 +8650,13 @@ var Qitch = function () {
8648
8650
  throw "Invalid source. Expected: Int8Array";
8649
8651
  };
8650
8652
 
8651
- /**
8652
- * Gets streamer version from source byte array at specified offset.
8653
- * @param src The source array.
8654
- * @param offset The offset.
8655
- * @returns {null|String} Returns null in case if specified offset is too big (offset + version length in bytes is bigger than length of source array),
8656
- * otherwise returns obtained value.
8657
- * @throws Exception in case if src is not {@link Int8Array}
8653
+ /**
8654
+ * Gets streamer version from source byte array at specified offset.
8655
+ * @param src The source array.
8656
+ * @param offset The offset.
8657
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + version length in bytes is bigger than length of source array),
8658
+ * otherwise returns obtained value.
8659
+ * @throws Exception in case if src is not {@link Int8Array}
8658
8660
  */
8659
8661
 
8660
8662
 
@@ -8668,13 +8670,13 @@ var Qitch = function () {
8668
8670
  throw "Invalid source. Expected: Int8Array";
8669
8671
  };
8670
8672
 
8671
- /**
8672
- * Gets server instance from source byte array at specified offset.
8673
- * @param src The source array.
8674
- * @param offset The offset.
8675
- * @returns {null|String} Returns null in case if specified offset is too big (offset + server instance length in bytes is bigger than length of source array),
8676
- * otherwise returns obtained value.
8677
- * @throws Exception in case if src is not {@link Int8Array}
8673
+ /**
8674
+ * Gets server instance from source byte array at specified offset.
8675
+ * @param src The source array.
8676
+ * @param offset The offset.
8677
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + server instance length in bytes is bigger than length of source array),
8678
+ * otherwise returns obtained value.
8679
+ * @throws Exception in case if src is not {@link Int8Array}
8678
8680
  */
8679
8681
 
8680
8682
 
@@ -8688,13 +8690,13 @@ var Qitch = function () {
8688
8690
  throw "Invalid source. Expected: Int8Array";
8689
8691
  };
8690
8692
 
8691
- /**
8692
- * Gets the note message from source byte array at specified offset.
8693
- * @param src The source array.
8694
- * @param offset The offset.
8695
- * @returns {null|String} Returns null in case if specified offset is too big (offset + note length in bytes is bigger than length of source array),
8696
- * otherwise returns obtained value.
8697
- * @throws Exception in case if src is not {@link Int8Array}
8693
+ /**
8694
+ * Gets the note message from source byte array at specified offset.
8695
+ * @param src The source array.
8696
+ * @param offset The offset.
8697
+ * @returns {null|String} Returns null in case if specified offset is too big (offset + note length in bytes is bigger than length of source array),
8698
+ * otherwise returns obtained value.
8699
+ * @throws Exception in case if src is not {@link Int8Array}
8698
8700
  */
8699
8701
 
8700
8702
 
@@ -8708,13 +8710,13 @@ var Qitch = function () {
8708
8710
  throw "Invalid source. Expected: Int8Array";
8709
8711
  };
8710
8712
 
8711
- /**
8712
- * Puts action value into destination array.
8713
- * @param dst The destination array.
8714
- * @param offset The offset.
8715
- * @param val Action value.
8716
- * @returns {Int8Array} destination array.
8717
- * @throws Exception in case if dst is not {@link Int8Array}
8713
+ /**
8714
+ * Puts action value into destination array.
8715
+ * @param dst The destination array.
8716
+ * @param offset The offset.
8717
+ * @param val Action value.
8718
+ * @returns {Int8Array} destination array.
8719
+ * @throws Exception in case if dst is not {@link Int8Array}
8718
8720
  */
8719
8721
 
8720
8722
 
@@ -8726,13 +8728,13 @@ var Qitch = function () {
8726
8728
  throw "Invalid destination. Expected: Int8Array";
8727
8729
  };
8728
8730
 
8729
- /**
8730
- * Puts mimetype value into destination array.
8731
- * @param dst The destination array.
8732
- * @param offset The offset.
8733
- * @param val Mimetype value.
8734
- * @returns {Int8Array} destination array.
8735
- * @throws Exception in case if dst is not {@link Int8Array}
8731
+ /**
8732
+ * Puts mimetype value into destination array.
8733
+ * @param dst The destination array.
8734
+ * @param offset The offset.
8735
+ * @param val Mimetype value.
8736
+ * @returns {Int8Array} destination array.
8737
+ * @throws Exception in case if dst is not {@link Int8Array}
8736
8738
  */
8737
8739
 
8738
8740
 
@@ -8743,13 +8745,13 @@ var Qitch = function () {
8743
8745
  throw "Invalid destination. Expected: Int8Array";
8744
8746
  };
8745
8747
 
8746
- /**
8747
- * Puts conflation value into destination array. If conflation is null, -1 will be put instead.
8748
- * @param dst The destination array.
8749
- * @param offset The offset.
8750
- * @param val Conflation value.
8751
- * @returns {Int8Array} destination array.
8752
- * @throws Exception in case if dst is not {@link Int8Array}
8748
+ /**
8749
+ * Puts conflation value into destination array. If conflation is null, -1 will be put instead.
8750
+ * @param dst The destination array.
8751
+ * @param offset The offset.
8752
+ * @param val Conflation value.
8753
+ * @returns {Int8Array} destination array.
8754
+ * @throws Exception in case if dst is not {@link Int8Array}
8753
8755
  */
8754
8756
 
8755
8757
 
@@ -8760,13 +8762,13 @@ var Qitch = function () {
8760
8762
  throw "Invalid destination. Expected: Int8Array";
8761
8763
  };
8762
8764
 
8763
- /**
8764
- * Gets marketdata type from source byte array at specified offset.
8765
- * @param src The source array.
8766
- * @param offset The offset.
8767
- * @returns {null|String} Returns null in case if offset is out of array index range,
8768
- * otherwise {@link messages.control.MarketdataType} value that corresponds to the byte at specified offset is returned.
8769
- * @throws Exception in case if src is not {@link Int8Array}
8765
+ /**
8766
+ * Gets marketdata type from source byte array at specified offset.
8767
+ * @param src The source array.
8768
+ * @param offset The offset.
8769
+ * @returns {null|String} Returns null in case if offset is out of array index range,
8770
+ * otherwise {@link messages.control.MarketdataType} value that corresponds to the byte at specified offset is returned.
8771
+ * @throws Exception in case if src is not {@link Int8Array}
8770
8772
  */
8771
8773
 
8772
8774
 
@@ -8780,13 +8782,13 @@ var Qitch = function () {
8780
8782
  throw "Invalid source. Expected: Int8Array";
8781
8783
  };
8782
8784
 
8783
- /**
8784
- * Puts marketdata type value into destination array.
8785
- * @param dst The destination array.
8786
- * @param offset The offset.
8787
- * @param val Marketdatatype value.
8788
- * @returns {Int8Array} destination array.
8789
- * @throws Exception in case if dst is not {@link Int8Array}
8785
+ /**
8786
+ * Puts marketdata type value into destination array.
8787
+ * @param dst The destination array.
8788
+ * @param offset The offset.
8789
+ * @param val Marketdatatype value.
8790
+ * @returns {Int8Array} destination array.
8791
+ * @throws Exception in case if dst is not {@link Int8Array}
8790
8792
  */
8791
8793
 
8792
8794
 
@@ -8798,13 +8800,13 @@ var Qitch = function () {
8798
8800
  throw "Invalid destination. Expected: Int8Array";
8799
8801
  };
8800
8802
 
8801
- /**
8802
- * Gets entitlement type from source byte array at specified offset.
8803
- * @param src The source array.
8804
- * @param offset The offset.
8805
- * @returns {null|String} Returns null in case if offset is out of array index range,
8806
- * otherwise {@link messages.control.StreamEntitlementType} value that corresponds to the byte at specified offset is returned.
8807
- * @throws Exception in case if src is not {@link Int8Array}
8803
+ /**
8804
+ * Gets entitlement type from source byte array at specified offset.
8805
+ * @param src The source array.
8806
+ * @param offset The offset.
8807
+ * @returns {null|String} Returns null in case if offset is out of array index range,
8808
+ * otherwise {@link messages.control.StreamEntitlementType} value that corresponds to the byte at specified offset is returned.
8809
+ * @throws Exception in case if src is not {@link Int8Array}
8808
8810
  */
8809
8811
 
8810
8812
 
@@ -8818,12 +8820,12 @@ var Qitch = function () {
8818
8820
  throw "Invalid source. Expected: Int8Array";
8819
8821
  };
8820
8822
 
8821
- /**
8822
- * Gets stream entitlement entry from source byte array at specified offset.
8823
- * @param src The source array.
8824
- * @param offset The offset.
8825
- * @returns {messages.control.StreamEntitlement}
8826
- * @throws Exception in case if src is not {@link Int8Array}
8823
+ /**
8824
+ * Gets stream entitlement entry from source byte array at specified offset.
8825
+ * @param src The source array.
8826
+ * @param offset The offset.
8827
+ * @returns {messages.control.StreamEntitlement}
8828
+ * @throws Exception in case if src is not {@link Int8Array}
8827
8829
  */
8828
8830
 
8829
8831
 
@@ -8856,8 +8858,8 @@ var _jsbi2 = _interopRequireDefault(_jsbi);
8856
8858
 
8857
8859
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8858
8860
 
8859
- /*
8860
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
8861
+ /*
8862
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
8861
8863
  */
8862
8864
  var ASCII_NULL = exports.ASCII_NULL = 0;
8863
8865
  var ASCIICHAR_NULL = exports.ASCIICHAR_NULL = '0';
@@ -9226,9 +9228,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
9226
9228
 
9227
9229
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9228
9230
 
9229
- /**
9230
- * Decodes a stream of message blocks into messages.
9231
- * This class is stateful and cannot be shared between multiple streams.
9231
+ /**
9232
+ * Decodes a stream of message blocks into messages.
9233
+ * This class is stateful and cannot be shared between multiple streams.
9232
9234
  */
9233
9235
  var BlockDecoder = function () {
9234
9236
  function BlockDecoder(decoders, capacity) {
@@ -9250,9 +9252,9 @@ var BlockDecoder = function () {
9250
9252
  this.doflip = false;
9251
9253
  }
9252
9254
 
9253
- /**
9254
- * The number of messages in the current block.
9255
- * @returns {number} The number of messages or -1 if no block is being decoded
9255
+ /**
9256
+ * The number of messages in the current block.
9257
+ * @returns {number} The number of messages or -1 if no block is being decoded
9256
9258
  */
9257
9259
 
9258
9260
 
@@ -9260,9 +9262,9 @@ var BlockDecoder = function () {
9260
9262
  return this.state.messagecount;
9261
9263
  };
9262
9264
 
9263
- /**
9264
- * Returns the sequence number of the current block.
9265
- * @returns {number} the sequence number of the current block.
9265
+ /**
9266
+ * Returns the sequence number of the current block.
9267
+ * @returns {number} the sequence number of the current block.
9266
9268
  */
9267
9269
 
9268
9270
 
@@ -9270,13 +9272,13 @@ var BlockDecoder = function () {
9270
9272
  return this.state.blocksequencenumber;
9271
9273
  };
9272
9274
 
9273
- /**
9274
- * Adds bytes to internal buffer.
9275
- * Call {@link decode} to decode the buffered data.
9276
- * @param bytes The array from witch bytes are to be added.
9277
- * @param offset The offset within the array of the fist byte to be added.
9278
- * @param length The number of bytes to be added from the given array.
9279
- * @returns {Number} Number of bytes that weren't added due to buffer not having enough space.
9275
+ /**
9276
+ * Adds bytes to internal buffer.
9277
+ * Call {@link decode} to decode the buffered data.
9278
+ * @param bytes The array from witch bytes are to be added.
9279
+ * @param offset The offset within the array of the fist byte to be added.
9280
+ * @param length The number of bytes to be added from the given array.
9281
+ * @returns {Number} Number of bytes that weren't added due to buffer not having enough space.
9280
9282
  */
9281
9283
 
9282
9284
 
@@ -9305,11 +9307,11 @@ var BlockDecoder = function () {
9305
9307
  return numOfLeftoverBytes;
9306
9308
  };
9307
9309
 
9308
- /**
9309
- * Incrementally decodes the data in the internal buffer.
9310
- * Successive calls to this method will return the next decoded message as long enough data is avail
9311
- * If not enough data is available null will be returned until more data is added.
9312
- * @returns {*} The next decoded message or null if not enough data is available.
9310
+ /**
9311
+ * Incrementally decodes the data in the internal buffer.
9312
+ * Successive calls to this method will return the next decoded message as long enough data is avail
9313
+ * If not enough data is available null will be returned until more data is added.
9314
+ * @returns {*} The next decoded message or null if not enough data is available.
9313
9315
  */
9314
9316
 
9315
9317
 
@@ -9668,8 +9670,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
9668
9670
 
9669
9671
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9670
9672
 
9671
- /*
9672
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
9673
+ /*
9674
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
9673
9675
  */
9674
9676
  var QitchDecoder = function () {
9675
9677
  function QitchDecoder(bufferSize) {
@@ -11371,8 +11373,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
11371
11373
 
11372
11374
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11373
11375
 
11374
- /*
11375
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
11376
+ /*
11377
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
11376
11378
  */
11377
11379
  var QitchEncoder = function () {
11378
11380
  function QitchEncoder() {
@@ -11381,12 +11383,12 @@ var QitchEncoder = function () {
11381
11383
  this.encoder = new MessageEncoder();
11382
11384
  }
11383
11385
 
11384
- /**
11385
- * Encodes a message into its binary representation.
11386
- * @param msg Msg {SMessage} the message to encode
11387
- * @param offset The offset used to write message into a buffer
11388
- * @returns {ArrayBuffer} the encoded bytes
11389
- * @throws Throws an error if message cannot be encoded
11386
+ /**
11387
+ * Encodes a message into its binary representation.
11388
+ * @param msg Msg {SMessage} the message to encode
11389
+ * @param offset The offset used to write message into a buffer
11390
+ * @returns {ArrayBuffer} the encoded bytes
11391
+ * @throws Throws an error if message cannot be encoded
11390
11392
  */
11391
11393
 
11392
11394
 
@@ -12608,11 +12610,11 @@ exports["default"] = new function () {
12608
12610
 
12609
12611
  // Generated by CoffeeScript 1.7.1
12610
12612
 
12611
- /*
12612
- Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
12613
-
12614
- Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
12615
- Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
12613
+ /*
12614
+ Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
12615
+
12616
+ Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
12617
+ Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
12616
12618
  */
12617
12619
 
12618
12620
  (function () {
@@ -13461,7 +13463,8 @@ var StompStream = function () {
13461
13463
  subscribed: [],
13462
13464
  rejected: [],
13463
13465
  unentitled: [],
13464
- invalidSymbols: []
13466
+ invalidSymbols: [],
13467
+ messageFilters: []
13465
13468
  }
13466
13469
  };
13467
13470
 
@@ -13908,6 +13911,7 @@ var StompStream = function () {
13908
13911
  }
13909
13912
  if (opts) {
13910
13913
  msg.conflation = opts.conflation;
13914
+ msg.intervalPeriod = opts.intervalPeriod;
13911
13915
  }
13912
13916
  return msg;
13913
13917
  };
@@ -14725,6 +14729,12 @@ var StompStreamingService = function () {
14725
14729
  this.addToHeaderParams('X-Stream-Previous-Connection-Id', connectionId);
14726
14730
  }
14727
14731
 
14732
+ var _intervalPeriod = this.config.intervalPeriod;
14733
+ if (_intervalPeriod != null && _intervalPeriod !== '') {
14734
+ headers['X-Stream-Interval-Period'] = _intervalPeriod;
14735
+ this.addToHeaderParams('X-Stream-Interval-Period', _intervalPeriod);
14736
+ }
14737
+
14728
14738
  var _rejectExcessiveConnection = this.config.rejectExcessiveConnection;
14729
14739
  if (_rejectExcessiveConnection != null && _rejectExcessiveConnection !== '') {
14730
14740
  headers['X-Stream-Reject'] = _rejectExcessiveConnection;
@@ -14876,1160 +14886,1166 @@ exports["default"] = StompStreamingService;
14876
14886
  exports.__esModule = true;
14877
14887
  /* @see http://usejsdoc.org */
14878
14888
 
14879
- /**
14880
- * Streamer api namespace.
14881
- * @namespace
14889
+ /**
14890
+ * Streamer api namespace.
14891
+ * @namespace
14882
14892
  */
14883
14893
 
14884
14894
  var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
14885
- var VERSION = exports.VERSION = "2.40.0";
14895
+ var VERSION = exports.VERSION = "2.41.0";
14886
14896
 
14887
- /**
14888
- * Streamer message api namespace.
14889
- * @namespace
14897
+ /**
14898
+ * Streamer message api namespace.
14899
+ * @namespace
14890
14900
  */
14891
14901
  var messages = exports.messages = {};
14892
14902
 
14893
- /**
14894
- * Streamer control message namespace. * @namespace
14903
+ /**
14904
+ * Streamer control message namespace. * @namespace
14895
14905
  */
14896
14906
  messages.control = {};
14897
14907
 
14898
- /**
14899
- * Streamer market data message namespace.
14900
- * @namespace
14908
+ /**
14909
+ * Streamer market data message namespace.
14910
+ * @namespace
14901
14911
  */
14902
14912
  messages.market = {};
14903
14913
 
14904
14914
  /* ****************************************************************************************************************** */
14905
14915
 
14906
- /**
14907
- *
14908
- * @type {string}
14916
+ /**
14917
+ *
14918
+ * @type {string}
14909
14919
  */
14910
14920
  messages.JSON_TYPE_PROPERTY = '@T';
14911
14921
 
14912
- /**
14913
- * Message type identifiers.<br>
14914
- * Ensure identifiers are unique within this name space.
14915
- * @namespace
14922
+ /**
14923
+ * Message type identifiers.<br>
14924
+ * Ensure identifiers are unique within this name space.
14925
+ * @namespace
14916
14926
  */
14917
14927
  messages.MessageTypeNames = {
14918
- /**
14919
- * Name space for control message type identifiers.
14920
- * @namespace
14921
- */
14922
- ctrl: {
14923
- HEARTBEAT: 'C1',
14924
- SUBSCRIBE: 'C2',
14925
- SUBSCRIBE_RESPONSE: 'C3',
14926
- UNSUBSCRIBE_RESPONSE: 'C4',
14927
- CONNECT_RESPONSE: 'C5',
14928
- CONNECTION_CLOSE: 'C6',
14929
- FLOW: 'C7',
14930
- SLOW_CONNECTION: 'C8',
14931
- INITIAL_DATA_SENT: 'C9',
14932
- RESUBSCRIBE_MESSAGE: 'C10',
14933
- STATS: 'C12',
14934
- STATS_RESPONSE: 'C13',
14935
- EXCHANGE_SUBSCRIBE: 'C14',
14936
- EXCHANGE_RESPONSE: 'C15',
14937
- EXCHANGE_UNSUBSCRIBE_RESPONSE: 'C16',
14938
- NEWS_SUBSCRIBE: 'C17',
14939
- NEWS_SUBSCRIBE_RESPONSE: 'C18',
14940
- ALERTS_SUBUNSUB: 'C19',
14941
- ALERTS_SUBUNSUB_RESPONSE: 'C20',
14942
- TRADE_SUBSCRIBE: 'C21',
14943
- TRADE_SUBSCRIBE_RESPONSE: 'C22',
14944
- NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
14945
- NEWS_COMMAND: 'C24',
14946
- NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
14947
- NEWS_CMD_FILTER_RESPONSE: 'C26',
14948
- AUTHENTICATION: 'C27',
14949
- OPEN_FLOW: 'C28',
14950
- RECONNECT_RESPONSE: 'C29',
14951
- TRADE_UNSUBSCRIBE_RESPONSE: 'C30',
14952
- MISSED_DATA_SENT: 'C31'
14953
- },
14954
- /**
14955
- * Name space for data message type identifiers.<br>
14956
- * Prefix with 'D'.
14957
- * @namespace
14958
- */
14959
- data: {
14960
- QUOTE: 'D1',
14961
- PRICEDATA: 'D2',
14962
- TRADE: 'D3',
14963
- BOOKORDER: 'D4',
14964
- BOOKDELETE: 'D5',
14965
- PURGEBOOK: 'D6',
14966
- MMQUOTE: 'D7',
14967
- INTERVAL: 'D8',
14968
- NETHOUSEPOSITION: 'D9',
14969
- SYMBOLINFO: 'D10',
14970
- SYMBOLSTATUS: 'D11',
14971
- DERIVATIVEINFO: 'D12',
14972
- LASTSALE: 'D13',
14973
- LIMITUPLIMITDOWN: 'D14',
14974
- IVGREEKS: 'D15',
14975
- IMBALANCESTATUS: 'D16',
14976
- ALERT: 'D17',
14977
- NEWS: 'D18',
14978
- TRADENOTIFICATION: 'D19',
14979
- NEWSCMDFILTER: 'D20',
14980
- NEWSERROR: 'D21',
14981
- DIVIDEND: 'D22',
14982
- EARNINGS: 'D23',
14983
- SPLIT: 'D24'
14984
- }
14928
+ /**
14929
+ * Name space for control message type identifiers.
14930
+ * @namespace
14931
+ */
14932
+ ctrl: {
14933
+ HEARTBEAT: 'C1',
14934
+ SUBSCRIBE: 'C2',
14935
+ SUBSCRIBE_RESPONSE: 'C3',
14936
+ UNSUBSCRIBE_RESPONSE: 'C4',
14937
+ CONNECT_RESPONSE: 'C5',
14938
+ CONNECTION_CLOSE: 'C6',
14939
+ FLOW: 'C7',
14940
+ SLOW_CONNECTION: 'C8',
14941
+ INITIAL_DATA_SENT: 'C9',
14942
+ RESUBSCRIBE_MESSAGE: 'C10',
14943
+ STATS: 'C12',
14944
+ STATS_RESPONSE: 'C13',
14945
+ EXCHANGE_SUBSCRIBE: 'C14',
14946
+ EXCHANGE_RESPONSE: 'C15',
14947
+ EXCHANGE_UNSUBSCRIBE_RESPONSE: 'C16',
14948
+ NEWS_SUBSCRIBE: 'C17',
14949
+ NEWS_SUBSCRIBE_RESPONSE: 'C18',
14950
+ ALERTS_SUBUNSUB: 'C19',
14951
+ ALERTS_SUBUNSUB_RESPONSE: 'C20',
14952
+ TRADE_SUBSCRIBE: 'C21',
14953
+ TRADE_SUBSCRIBE_RESPONSE: 'C22',
14954
+ NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
14955
+ NEWS_COMMAND: 'C24',
14956
+ NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
14957
+ NEWS_CMD_FILTER_RESPONSE: 'C26',
14958
+ AUTHENTICATION: 'C27',
14959
+ OPEN_FLOW: 'C28',
14960
+ RECONNECT_RESPONSE: 'C29',
14961
+ TRADE_UNSUBSCRIBE_RESPONSE: 'C30',
14962
+ MISSED_DATA_SENT: 'C31'
14963
+ },
14964
+ /**
14965
+ * Name space for data message type identifiers.<br>
14966
+ * Prefix with 'D'.
14967
+ * @namespace
14968
+ */
14969
+ data: {
14970
+ QUOTE: 'D1',
14971
+ PRICEDATA: 'D2',
14972
+ TRADE: 'D3',
14973
+ BOOKORDER: 'D4',
14974
+ BOOKDELETE: 'D5',
14975
+ PURGEBOOK: 'D6',
14976
+ MMQUOTE: 'D7',
14977
+ INTERVAL: 'D8',
14978
+ NETHOUSEPOSITION: 'D9',
14979
+ SYMBOLINFO: 'D10',
14980
+ SYMBOLSTATUS: 'D11',
14981
+ DERIVATIVEINFO: 'D12',
14982
+ LASTSALE: 'D13',
14983
+ LIMITUPLIMITDOWN: 'D14',
14984
+ IVGREEKS: 'D15',
14985
+ IMBALANCESTATUS: 'D16',
14986
+ ALERT: 'D17',
14987
+ NEWS: 'D18',
14988
+ TRADENOTIFICATION: 'D19',
14989
+ NEWSCMDFILTER: 'D20',
14990
+ NEWSERROR: 'D21',
14991
+ DIVIDEND: 'D22',
14992
+ EARNINGS: 'D23',
14993
+ SPLIT: 'D24'
14994
+ }
14985
14995
  };
14986
14996
 
14987
- /**
14988
- * Super type of all exports.
14989
- * @abstract
14990
- * @constructor
14997
+ /**
14998
+ * Super type of all exports.
14999
+ * @abstract
15000
+ * @constructor
14991
15001
  */
14992
15002
  messages.Message = function () {};
14993
15003
 
14994
15004
  messages.Message.prototype.init = function (typeid) {
14995
- this[messages.JSON_TYPE_PROPERTY] = typeid;
15005
+ this[messages.JSON_TYPE_PROPERTY] = typeid;
14996
15006
  };
14997
15007
 
14998
15008
  /* ****************************************************************************************************************** */
14999
15009
 
15000
- /**
15001
- * Creates a control message base object.
15002
- * @abstract
15003
- * @constructor
15010
+ /**
15011
+ * Creates a control message base object.
15012
+ * @abstract
15013
+ * @constructor
15004
15014
  */
15005
15015
  messages.control.CtrlMessage = function () {};
15006
15016
  messages.control.CtrlMessage.prototype = new messages.Message();
15007
15017
 
15008
- /**
15009
- * Creates a heartbeat message.
15010
- * @constructor
15018
+ /**
15019
+ * Creates a heartbeat message.
15020
+ * @constructor
15011
15021
  */
15012
15022
  messages.control.Heartbeat = function () {
15013
- this.init(messages.MessageTypeNames.ctrl.HEARTBEAT);
15023
+ this.init(messages.MessageTypeNames.ctrl.HEARTBEAT);
15014
15024
 
15015
- /**
15016
- * Timestamp when heartbeat was generated.
15017
- * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15018
- * for connections with QITCH format - {@link JSBI.BigInt}
15019
- */
15020
- this.timestamp = null;
15025
+ /**
15026
+ * Timestamp when heartbeat was generated.
15027
+ * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15028
+ * for connections with QITCH format - {@link JSBI.BigInt}
15029
+ */
15030
+ this.timestamp = null;
15021
15031
  };
15022
15032
  messages.control.Heartbeat.prototype = new messages.control.CtrlMessage();
15023
- /**
15024
- * Creates a stats message.
15025
- * @constructor
15033
+ /**
15034
+ * Creates a stats message.
15035
+ * @constructor
15026
15036
  */
15027
15037
  messages.control.StatsMessage = function () {
15028
- this.init(messages.MessageTypeNames.ctrl.STATS);
15038
+ this.init(messages.MessageTypeNames.ctrl.STATS);
15029
15039
  };
15030
15040
  messages.control.StatsMessage.prototype = new messages.control.CtrlMessage();
15031
15041
 
15032
- /**
15033
- * Creates a subscribe message.
15034
- * @constructor
15042
+ /**
15043
+ * Creates a subscribe message.
15044
+ * @constructor
15035
15045
  */
15036
15046
  messages.control.SubscribeMessage = function () {
15037
- this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
15047
+ this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
15038
15048
 
15039
- /**
15040
- * The action the server will taken when receiving this message.
15041
- * @type {string}
15042
- * @see exports.messages.control.Action
15043
- */
15044
- this.action = null;
15049
+ /**
15050
+ * The action the server will taken when receiving this message.
15051
+ * @type {string}
15052
+ * @see exports.messages.control.Action
15053
+ */
15054
+ this.action = null;
15045
15055
 
15046
- /**
15047
- * List of ticker symbols to subscribe/un-subscribe for.
15048
- * @type {Array.<string>}
15049
- */
15050
- this.symbols = [];
15056
+ /**
15057
+ * List of ticker symbols to subscribe/un-subscribe for.
15058
+ * @type {Array.<string>}
15059
+ */
15060
+ this.symbols = [];
15051
15061
 
15052
- /**
15053
- * List of streaming message types to subscribe each ticker symbol for.
15054
- * @type {Array.<string>}
15055
- * @see exports.messages.control.MarketdataType
15056
- */
15057
- this.types = [];
15062
+ /**
15063
+ * List of streaming message types to subscribe each ticker symbol for.
15064
+ * @type {Array.<string>}
15065
+ * @see exports.messages.control.MarketdataType
15066
+ */
15067
+ this.types = [];
15058
15068
 
15059
- /**
15060
- * Requested message mime-type format.
15061
- * @type {string}
15062
- * @see exports.messages.MimeTypes
15063
- */
15064
- this.mimetype = null;
15069
+ /**
15070
+ * Requested message mime-type format.
15071
+ * @type {string}
15072
+ * @see exports.messages.MimeTypes
15073
+ */
15074
+ this.mimetype = null;
15065
15075
 
15066
- /**
15067
- * Requested conflation. Null indicates using the default conflation.
15068
- * @type {int}
15069
- */
15070
- this.conflation = null;
15076
+ /**
15077
+ * Requested conflation. Null indicates using the default conflation.
15078
+ * @type {int}
15079
+ */
15080
+ this.conflation = null;
15071
15081
  };
15072
15082
  messages.control.SubscribeMessage.prototype = new messages.control.CtrlMessage();
15073
15083
 
15074
- /**
15075
- * Creates an exchange subscribe message.
15076
- * @constructor
15084
+ /**
15085
+ * Creates an exchange subscribe message.
15086
+ * @constructor
15077
15087
  */
15078
15088
  messages.control.ExchangeSubscribeMessage = function () {
15079
- this.init(messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE);
15089
+ this.init(messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE);
15080
15090
 
15081
- /**
15082
- * The action the server will taken when receiving this message.
15083
- * @type {string}
15084
- * @see exports.messages.control.Action
15085
- */
15086
- this.action = null;
15091
+ /**
15092
+ * The action the server will taken when receiving this message.
15093
+ * @type {string}
15094
+ * @see exports.messages.control.Action
15095
+ */
15096
+ this.action = null;
15087
15097
 
15088
- /**
15089
- * The Exchange to subscribe/un-subscribe for.
15090
- * @type {Array.<string>}
15091
- */
15092
- this.exchange = null;
15098
+ /**
15099
+ * The Exchange to subscribe/un-subscribe for.
15100
+ * @type {Array.<string>}
15101
+ */
15102
+ this.exchange = null;
15093
15103
 
15094
- /**
15095
- * Requested message mime-type format.
15096
- * @type {string}
15097
- * @see exports.messages.MimeTypes
15098
- */
15099
- this.mimetype = null;
15104
+ /**
15105
+ * Requested message mime-type format.
15106
+ * @type {string}
15107
+ * @see exports.messages.MimeTypes
15108
+ */
15109
+ this.mimetype = null;
15100
15110
 
15101
- /**
15102
- * Requested conflation. Null indicates using the default conflation.
15103
- * @type {int}
15104
- */
15105
- this.conflation = null;
15111
+ /**
15112
+ * Requested conflation. Null indicates using the default conflation.
15113
+ * @type {int}
15114
+ */
15115
+ this.conflation = null;
15106
15116
  };
15107
15117
  messages.control.ExchangeSubscribeMessage.prototype = new messages.control.CtrlMessage();
15108
15118
 
15109
- /**
15110
- * Creates an news subscribe message.
15111
- * @constructor
15119
+ /**
15120
+ * Creates an news subscribe message.
15121
+ * @constructor
15112
15122
  */
15113
15123
  messages.control.NewsSubscribeMessage = function () {
15114
- this.init(messages.MessageTypeNames.ctrl.NEWS_SUBSCRIBE);
15124
+ this.init(messages.MessageTypeNames.ctrl.NEWS_SUBSCRIBE);
15115
15125
 
15116
- /**
15117
- * The action the server will taken when receiving this message.
15118
- * @type {string}
15119
- * @see exports.messages.control.Action
15120
- */
15121
- this.action = null;
15126
+ /**
15127
+ * The action the server will taken when receiving this message.
15128
+ * @type {string}
15129
+ * @see exports.messages.control.Action
15130
+ */
15131
+ this.action = null;
15122
15132
 
15123
- /**
15124
- * The news filters to subscribe for.
15125
- * @type {Array.<string>}
15126
- */
15127
- this.newsFilters = null;
15133
+ /**
15134
+ * The news filters to subscribe for.
15135
+ * @type {Array.<string>}
15136
+ */
15137
+ this.newsFilters = null;
15128
15138
 
15129
- /**
15130
- * Requested message mime-type format.
15131
- * @type {string}
15132
- * @see exports.messages.MimeTypes
15133
- */
15134
- this.mimetype = null;
15139
+ /**
15140
+ * Requested message mime-type format.
15141
+ * @type {string}
15142
+ * @see exports.messages.MimeTypes
15143
+ */
15144
+ this.mimetype = null;
15135
15145
  };
15136
15146
  messages.control.NewsSubscribeMessage.prototype = new messages.control.CtrlMessage();
15137
15147
 
15138
- /**
15139
- * Creates an news reset message.
15140
- * @constructor
15148
+ /**
15149
+ * Creates an news reset message.
15150
+ * @constructor
15141
15151
  */
15142
15152
  messages.control.NewsCommandMessage = function () {
15143
- this.init(messages.MessageTypeNames.ctrl.NEWS_COMMAND);
15153
+ this.init(messages.MessageTypeNames.ctrl.NEWS_COMMAND);
15144
15154
 
15145
- /**
15146
- * The action the server will taken when receiving this message.
15147
- * @type {string}
15148
- * @see exports.messages.control.Action
15149
- */
15150
- this.newsAction = null;
15155
+ /**
15156
+ * The action the server will taken when receiving this message.
15157
+ * @type {string}
15158
+ * @see exports.messages.control.Action
15159
+ */
15160
+ this.newsAction = null;
15151
15161
 
15152
- /**
15153
- * Requested message mime-type format.
15154
- * @type {string}
15155
- * @see exports.messages.MimeTypes
15156
- */
15157
- this.mimetype = null;
15162
+ /**
15163
+ * Requested message mime-type format.
15164
+ * @type {string}
15165
+ * @see exports.messages.MimeTypes
15166
+ */
15167
+ this.mimetype = null;
15158
15168
  };
15159
15169
  messages.control.NewsCommandMessage.prototype = new messages.control.CtrlMessage();
15160
15170
 
15161
- /**
15162
- * Creates an news subscribe message.
15163
- * @constructor
15171
+ /**
15172
+ * Creates an news subscribe message.
15173
+ * @constructor
15164
15174
  */
15165
15175
  messages.control.AlertsSubUnsubMessage = function () {
15166
- this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB);
15176
+ this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB);
15167
15177
 
15168
- /**
15169
- * sub/unsub for alerts.
15170
- * @type {string}
15171
- */
15172
- this.operation = null;
15178
+ /**
15179
+ * sub/unsub for alerts.
15180
+ * @type {string}
15181
+ */
15182
+ this.operation = null;
15173
15183
 
15174
- /**
15175
- * Requested message mime-type format.
15176
- * @type {string}
15177
- * @see exports.messages.MimeTypes
15178
- */
15179
- this.mimetype = null;
15184
+ /**
15185
+ * Requested message mime-type format.
15186
+ * @type {string}
15187
+ * @see exports.messages.MimeTypes
15188
+ */
15189
+ this.mimetype = null;
15180
15190
  };
15181
15191
  messages.control.AlertsSubUnsubMessage.prototype = new messages.control.CtrlMessage();
15182
15192
 
15183
- /**
15184
- * Creates Trade notification subscribe message.
15185
- * @constructor
15193
+ /**
15194
+ * Creates Trade notification subscribe message.
15195
+ * @constructor
15186
15196
  */
15187
15197
 
15188
15198
  messages.control.TradeSubscribeMessage = function () {
15189
- this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE);
15199
+ this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE);
15190
15200
 
15191
- /**
15192
- * The action the server will taken when receiving this message.
15193
- * @type {string}
15194
- * @see exports.messages.control.Action
15195
- */
15196
- this.action = null;
15201
+ /**
15202
+ * The action the server will taken when receiving this message.
15203
+ * @type {string}
15204
+ * @see exports.messages.control.Action
15205
+ */
15206
+ this.action = null;
15197
15207
 
15198
- /**
15199
- * The subscribe/un-subscribe for trade notifications.
15200
- * @type {Array.<string>}
15201
- */
15202
- this.notificationType = null;
15208
+ /**
15209
+ * The subscribe/un-subscribe for trade notifications.
15210
+ * @type {Array.<string>}
15211
+ */
15212
+ this.notificationType = null;
15203
15213
 
15204
- /**
15205
- * Requested message mime-type format.
15206
- * @type {string}
15207
- * @see exports.messages.MimeTypes
15208
- */
15209
- this.mimetype = null;
15214
+ /**
15215
+ * Requested message mime-type format.
15216
+ * @type {string}
15217
+ * @see exports.messages.MimeTypes
15218
+ */
15219
+ this.mimetype = null;
15210
15220
  };
15211
15221
  messages.control.TradeSubscribeMessage.prototype = new messages.control.CtrlMessage();
15212
15222
 
15213
- /**
15214
- * Base class for response exports.
15215
- * @abstract
15223
+ /**
15224
+ * Base class for response exports.
15225
+ * @abstract
15216
15226
  */
15217
15227
  messages.control.BaseResponse = function () {
15218
- /**
15219
- * The response code.
15220
- * @type {number}
15221
- * @see {@link messages.control.ResponseCodes}
15222
- */
15223
- this.code = null;
15228
+ /**
15229
+ * The response code.
15230
+ * @type {number}
15231
+ * @see {@link messages.control.ResponseCodes}
15232
+ */
15233
+ this.code = null;
15224
15234
 
15225
- /**
15226
- * The response reason.
15227
- * @type {string}
15228
- * @see {@link messages.control.ResponseCodes}
15229
- */
15230
- this.reason = null;
15235
+ /**
15236
+ * The response reason.
15237
+ * @type {string}
15238
+ * @see {@link messages.control.ResponseCodes}
15239
+ */
15240
+ this.reason = null;
15231
15241
  };
15232
15242
  messages.control.BaseResponse.prototype = new messages.control.CtrlMessage();
15233
15243
 
15234
- /**
15235
- * Creates a subscribe response message.
15236
- * @constructor
15244
+ /**
15245
+ * Creates a subscribe response message.
15246
+ * @constructor
15237
15247
  */
15238
15248
  messages.control.SubscribeResponse = function () {
15239
- this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE);
15249
+ this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE);
15240
15250
 
15241
- /**
15242
- *
15243
- * @type {Array.<messages.control.StreamEntitlement>}
15244
- */
15245
- this.entitlements = null;
15251
+ /**
15252
+ *
15253
+ * @type {Array.<messages.control.StreamEntitlement>}
15254
+ */
15255
+ this.entitlements = null;
15246
15256
 
15247
- /**
15248
- *
15249
- * @type {Array.<string>}
15250
- */
15251
- this.invalidsymbols = null;
15257
+ /**
15258
+ *
15259
+ * @type {Array.<string>}
15260
+ */
15261
+ this.invalidsymbols = null;
15252
15262
 
15253
- /**
15254
- *
15255
- * @type {Array.<string>}
15256
- */
15257
- this.rejectedsymbols = null;
15263
+ /**
15264
+ *
15265
+ * @type {Array.<string>}
15266
+ */
15267
+ this.rejectedsymbols = null;
15268
+
15269
+ /**
15270
+ *
15271
+ * @type {Array.<string>}
15272
+ */
15273
+ this.messagefilters = null;
15258
15274
  };
15259
15275
  messages.control.SubscribeResponse.prototype = new messages.control.BaseResponse();
15260
15276
 
15261
- /**
15262
- * Creates an exchange subscribe response message.
15263
- * @constructor
15277
+ /**
15278
+ * Creates an exchange subscribe response message.
15279
+ * @constructor
15264
15280
  */
15265
15281
  messages.control.ExchangeSubscribeResponse = function () {
15266
- this.init(messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE);
15282
+ this.init(messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE);
15267
15283
  };
15268
15284
 
15269
15285
  messages.control.ExchangeSubscribeResponse.prototype = new messages.control.BaseResponse();
15270
15286
 
15271
- /**
15272
- * Creates an Alert un-subscribe response message.
15273
- * @constructor
15287
+ /**
15288
+ * Creates an Alert un-subscribe response message.
15289
+ * @constructor
15274
15290
  */
15275
15291
  messages.control.AlertSubUnsubResponse = function () {
15276
- this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB_RESPONSE);
15292
+ this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB_RESPONSE);
15277
15293
  };
15278
15294
  messages.control.AlertSubUnsubResponse.prototype = new messages.control.BaseResponse();
15279
15295
 
15280
- /**
15281
- * Creates Trade notification subscribe response message.
15282
- * @constructor
15296
+ /**
15297
+ * Creates Trade notification subscribe response message.
15298
+ * @constructor
15283
15299
  */
15284
15300
  messages.control.TradeSubscribeResponse = function () {
15285
- this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE_RESPONSE);
15301
+ this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE_RESPONSE);
15286
15302
  };
15287
15303
 
15288
15304
  messages.control.TradeSubscribeResponse.prototype = new messages.control.BaseResponse();
15289
15305
 
15290
- /**
15291
- * Creates an un-subscribe response message.
15292
- * @constructor
15306
+ /**
15307
+ * Creates an un-subscribe response message.
15308
+ * @constructor
15293
15309
  */
15294
15310
  messages.control.UnsubscribeResponse = function () {
15295
- this.init(messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE);
15311
+ this.init(messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE);
15296
15312
 
15297
- /**
15298
- *
15299
- * @type {Array.<messages.control.StreamEntitlement>}
15300
- */
15301
- this.unsubscribed = null;
15313
+ /**
15314
+ *
15315
+ * @type {Array.<messages.control.StreamEntitlement>}
15316
+ */
15317
+ this.unsubscribed = null;
15302
15318
  };
15303
15319
  messages.control.UnsubscribeResponse.prototype = new messages.control.BaseResponse();
15304
15320
 
15305
- /**
15306
- * Creates an exchange unsubscribe response message.
15307
- * @constructor
15321
+ /**
15322
+ * Creates an exchange unsubscribe response message.
15323
+ * @constructor
15308
15324
  */
15309
15325
  messages.control.ExchangeUnsubscribeResponse = function () {
15310
- this.init(messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE);
15326
+ this.init(messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE);
15311
15327
  };
15312
15328
 
15313
15329
  messages.control.ExchangeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
15314
15330
 
15315
- /**
15316
- * Creates an news un-subscribe response message.
15317
- * @constructor
15331
+ /**
15332
+ * Creates an news un-subscribe response message.
15333
+ * @constructor
15318
15334
  */
15319
15335
  messages.control.NewsUnsubscribeResponse = function () {
15320
- this.init(messages.MessageTypeNames.ctrl.NEWS_UNSUBSCRIBE_RESPONSE);
15336
+ this.init(messages.MessageTypeNames.ctrl.NEWS_UNSUBSCRIBE_RESPONSE);
15321
15337
 
15322
- /**
15323
- *
15324
- * @type {Array.<messages.control.StreamEntitlement>}
15325
- */
15326
- this.unsubscribed = null;
15338
+ /**
15339
+ *
15340
+ * @type {Array.<messages.control.StreamEntitlement>}
15341
+ */
15342
+ this.unsubscribed = null;
15327
15343
  };
15328
15344
  messages.control.NewsUnsubscribeResponse.prototype = new messages.control.BaseResponse();
15329
15345
 
15330
- /**
15331
- * Creates Trade notification subscribe response message.
15332
- * @constructor
15346
+ /**
15347
+ * Creates Trade notification subscribe response message.
15348
+ * @constructor
15333
15349
  */
15334
15350
  messages.control.TradeUnsubscribeResponse = function () {
15335
- this.init(messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE);
15351
+ this.init(messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE);
15336
15352
  };
15337
15353
 
15338
15354
  messages.control.TradeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
15339
- /**
15340
- * Creates a stream entitlement info.
15341
- * @constructor
15355
+ /**
15356
+ * Creates a stream entitlement info.
15357
+ * @constructor
15342
15358
  */
15343
15359
  messages.control.StreamEntitlement = function () {
15344
- /**
15345
- * The symbol the entitlement is for.
15346
- * @type {string}
15347
- */
15348
- this.symbol = null;
15360
+ /**
15361
+ * The symbol the entitlement is for.
15362
+ * @type {string}
15363
+ */
15364
+ this.symbol = null;
15349
15365
 
15350
- /**
15351
- * The market data type the entitlement is for.
15352
- * @type {string}
15353
- * @see messages.control.MarketdataType
15354
- */
15355
- this.marketdatatype = null;
15366
+ /**
15367
+ * The market data type the entitlement is for.
15368
+ * @type {string}
15369
+ * @see messages.control.MarketdataType
15370
+ */
15371
+ this.marketdatatype = null;
15356
15372
 
15357
- /**
15358
- *
15359
- * @type {string}
15360
- * @see messages.control.StreamEntitlementType
15361
- */
15362
- this.entitlement = null;
15373
+ /**
15374
+ *
15375
+ * @type {string}
15376
+ * @see messages.control.StreamEntitlementType
15377
+ */
15378
+ this.entitlement = null;
15363
15379
  };
15364
15380
 
15365
- /**
15366
- * Creates a new connect response message.
15367
- * @constructor
15381
+ /**
15382
+ * Creates a new connect response message.
15383
+ * @constructor
15368
15384
  */
15369
15385
  messages.control.ConnectResponse = function () {
15370
- this.init(messages.MessageTypeNames.ctrl.CONNECT_RESPONSE);
15386
+ this.init(messages.MessageTypeNames.ctrl.CONNECT_RESPONSE);
15371
15387
 
15372
- /**
15373
- * The server version.
15374
- * @type {string}
15375
- */
15376
- this.version = null;
15388
+ /**
15389
+ * The server version.
15390
+ * @type {string}
15391
+ */
15392
+ this.version = null;
15377
15393
 
15378
- /**
15379
- * The flow control check interval.
15380
- * @type {number}
15381
- */
15382
- this.flowControlCheckInterval = null;
15394
+ /**
15395
+ * The flow control check interval.
15396
+ * @type {number}
15397
+ */
15398
+ this.flowControlCheckInterval = null;
15383
15399
 
15384
- /**
15385
- * The server instance connected to.
15386
- * @type {string}
15387
- */
15388
- this.serverInstance = null;
15400
+ /**
15401
+ * The server instance connected to.
15402
+ * @type {string}
15403
+ */
15404
+ this.serverInstance = null;
15389
15405
 
15390
- /**
15391
- * The conflation rate in milliseconds.
15392
- * @type {number}
15393
- */
15394
- this.conflationMs = null;
15406
+ /**
15407
+ * The conflation rate in milliseconds.
15408
+ * @type {number}
15409
+ */
15410
+ this.conflationMs = null;
15395
15411
  };
15396
15412
  messages.control.ConnectResponse.prototype = new messages.control.BaseResponse();
15397
15413
 
15398
- /**
15399
- * Creates a new reconnect response message
15400
- * @constructor
15414
+ /**
15415
+ * Creates a new reconnect response message
15416
+ * @constructor
15401
15417
  */
15402
15418
  messages.control.ReconnectResponse = function () {
15403
- undefined.init(messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE);
15419
+ undefined.init(messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE);
15404
15420
 
15405
- /**
15406
- * The server version.
15407
- * @type {string}
15408
- */
15409
- undefined.version = null;
15421
+ /**
15422
+ * The server version.
15423
+ * @type {string}
15424
+ */
15425
+ undefined.version = null;
15410
15426
 
15411
- /**
15412
- * The flow control check interval.
15413
- * @type {number}
15414
- */
15415
- undefined.flowControlCheckInterval = null;
15427
+ /**
15428
+ * The flow control check interval.
15429
+ * @type {number}
15430
+ */
15431
+ undefined.flowControlCheckInterval = null;
15416
15432
 
15417
- /**
15418
- * The server instance connected to.
15419
- * @type {string}
15420
- */
15421
- undefined.serverInstance = null;
15433
+ /**
15434
+ * The server instance connected to.
15435
+ * @type {string}
15436
+ */
15437
+ undefined.serverInstance = null;
15422
15438
 
15423
- /**
15424
- * The conflation rate in milliseconds.
15425
- * @type {number}
15426
- */
15427
- undefined.conflationMs = null;
15439
+ /**
15440
+ * The conflation rate in milliseconds.
15441
+ * @type {number}
15442
+ */
15443
+ undefined.conflationMs = null;
15428
15444
 
15429
- /**
15430
- * The previous subscriptions
15431
- * @type {Array.<messages.control.StreamEntitlement>}
15432
- */
15433
- undefined.previousSubscriptions = null;
15445
+ /**
15446
+ * The previous subscriptions
15447
+ * @type {Array.<messages.control.StreamEntitlement>}
15448
+ */
15449
+ undefined.previousSubscriptions = null;
15434
15450
  };
15435
15451
 
15436
- /**
15437
- * Creates a connection response message.
15438
- * @constructor
15452
+ /**
15453
+ * Creates a connection response message.
15454
+ * @constructor
15439
15455
  */
15440
15456
  messages.control.ConnectionClose = function () {
15441
- this.init(messages.MessageTypeNames.ctrl.CONNECTION_CLOSE);
15457
+ this.init(messages.MessageTypeNames.ctrl.CONNECTION_CLOSE);
15442
15458
 
15443
- /**
15444
- * The connection close reason code.
15445
- * @type {number}
15446
- * @see {@link messages.control.ResponseCodes}
15447
- */
15448
- this.code = null;
15459
+ /**
15460
+ * The connection close reason code.
15461
+ * @type {number}
15462
+ * @see {@link messages.control.ResponseCodes}
15463
+ */
15464
+ this.code = null;
15449
15465
 
15450
- /**
15451
- * The connection close reason message.
15452
- * @type {string}
15453
- * @see {@link messages.control.ResponseCodes}
15454
- */
15455
- this.reason = null;
15466
+ /**
15467
+ * The connection close reason message.
15468
+ * @type {string}
15469
+ * @see {@link messages.control.ResponseCodes}
15470
+ */
15471
+ this.reason = null;
15456
15472
  };
15457
15473
  messages.control.ConnectionClose.prototype = new messages.control.CtrlMessage();
15458
15474
 
15459
- /**
15460
- * Creates a slow connection response message.
15461
- * @constructor
15475
+ /**
15476
+ * Creates a slow connection response message.
15477
+ * @constructor
15462
15478
  */
15463
15479
  messages.control.SlowConnection = function () {
15464
- this.init(messages.MessageTypeNames.ctrl.SLOW_CONNECTION);
15480
+ this.init(messages.MessageTypeNames.ctrl.SLOW_CONNECTION);
15465
15481
 
15466
- /**
15467
- * The number of times that the connection has exceeded already.
15468
- * @type {number}
15469
- */
15470
- this.timesExceeded = null;
15482
+ /**
15483
+ * The number of times that the connection has exceeded already.
15484
+ * @type {number}
15485
+ */
15486
+ this.timesExceeded = null;
15471
15487
 
15472
- /**
15473
- * The max number allowed. The connection may close after reaching this number.
15474
- * @type {number}
15475
- */
15476
- this.maxExceed = null;
15488
+ /**
15489
+ * The max number allowed. The connection may close after reaching this number.
15490
+ * @type {number}
15491
+ */
15492
+ this.maxExceed = null;
15477
15493
  };
15478
15494
  messages.control.SlowConnection.prototype = new messages.control.CtrlMessage();
15479
15495
 
15480
- /**
15481
- * Creates a flow control message.
15482
- * @constructor
15496
+ /**
15497
+ * Creates a flow control message.
15498
+ * @constructor
15483
15499
  */
15484
15500
  messages.control.FlowMessage = function () {
15485
- this.init(messages.MessageTypeNames.ctrl.FLOW);
15501
+ this.init(messages.MessageTypeNames.ctrl.FLOW);
15486
15502
 
15487
- /**
15488
- * Last received sequence number.
15489
- * @type {number}
15490
- * @see {@link messages.LongSequence}
15491
- */
15492
- this.sequence = null;
15503
+ /**
15504
+ * Last received sequence number.
15505
+ * @type {number}
15506
+ * @see {@link messages.LongSequence}
15507
+ */
15508
+ this.sequence = null;
15493
15509
  };
15494
15510
  messages.control.FlowMessage.prototype = new messages.control.CtrlMessage();
15495
15511
 
15496
- /**
15497
- * Creates an Auth message for Stomp connection Auth verification.
15498
- * @constructor
15512
+ /**
15513
+ * Creates an Auth message for Stomp connection Auth verification.
15514
+ * @constructor
15499
15515
  */
15500
15516
  messages.control.AuthenticationMessage = function () {
15501
- this.init(messages.MessageTypeNames.ctrl.AUTHENTICATION);
15517
+ this.init(messages.MessageTypeNames.ctrl.AUTHENTICATION);
15502
15518
 
15503
- /**
15504
- * Auth method.
15505
- * @type {String}
15506
- */
15507
- this.authenticationMethod = null;
15519
+ /**
15520
+ * Auth method.
15521
+ * @type {String}
15522
+ */
15523
+ this.authenticationMethod = null;
15508
15524
 
15509
- /**
15510
- * Auth WMID if using enterprise token auth method we need to have both wmid and authorization.
15511
- * @type {String}
15512
- */
15513
- this.wmid = null;
15525
+ /**
15526
+ * Auth WMID if using enterprise token auth method we need to have both wmid and authorization.
15527
+ * @type {String}
15528
+ */
15529
+ this.wmid = null;
15514
15530
 
15515
- /**
15516
- * Auth token.
15517
- * @type {String}
15518
- */
15519
- this.authorization = null;
15531
+ /**
15532
+ * Auth token.
15533
+ * @type {String}
15534
+ */
15535
+ this.authorization = null;
15520
15536
 
15521
- /**
15522
- * Requested conflation. Null indicates using the default conflation.
15523
- * @type {number}
15524
- */
15525
- this.conflation = 150;
15537
+ /**
15538
+ * Requested conflation. Null indicates using the default conflation.
15539
+ * @type {number}
15540
+ */
15541
+ this.conflation = 150;
15526
15542
 
15527
- /**
15528
- *
15529
- * @type {Boolean}
15530
- */
15531
- this.rejectExcessiveConnection = false;
15543
+ /**
15544
+ *
15545
+ * @type {Boolean}
15546
+ */
15547
+ this.rejectExcessiveConnection = false;
15532
15548
  };
15533
15549
  messages.control.AuthenticationMessage.prototype = new messages.control.CtrlMessage();
15534
15550
 
15535
- /**
15536
- * Creates a stats response message.
15537
- * @constructor
15551
+ /**
15552
+ * Creates a stats response message.
15553
+ * @constructor
15538
15554
  */
15539
15555
  messages.control.StatsResponse = function () {
15540
- this.init(messages.MessageTypeNames.ctrl.STATS_RESPONSE);
15556
+ this.init(messages.MessageTypeNames.ctrl.STATS_RESPONSE);
15541
15557
 
15542
- /**
15543
- *
15544
- * @type {number}
15545
- */
15546
- this.numberOfSubscribedSymbolsL1 = null;
15547
- /**
15548
- *
15549
- * @type {number}
15550
- */
15551
- this.numberOfAvailableSymbolsL1 = null;
15552
- /**
15553
- *
15554
- * @type {number}
15555
- */
15556
- this.numberOfSubscribedSymbolsL2 = null;
15557
- /**
15558
- *
15559
- * @type {number}
15560
- */
15561
- this.numberOfAvailableSymbolsL2 = null;
15562
- /**
15563
- *
15564
- * @type {number}
15565
- */
15566
- this.numberOfOpenedConnections = null;
15567
- /**
15568
- *
15569
- * @type {number}
15570
- */
15571
- this.numberOfAvailableConnections = null;
15572
- /**
15573
- *
15574
- * @type {number}
15575
- */
15576
- this.numberOfSubscribedExchanges = null;
15577
- /**
15578
- *
15579
- * @type {number}
15580
- */
15581
- this.numberOfSubscribedTrades = null;
15558
+ /**
15559
+ *
15560
+ * @type {number}
15561
+ */
15562
+ this.numberOfSubscribedSymbolsL1 = null;
15563
+ /**
15564
+ *
15565
+ * @type {number}
15566
+ */
15567
+ this.numberOfAvailableSymbolsL1 = null;
15568
+ /**
15569
+ *
15570
+ * @type {number}
15571
+ */
15572
+ this.numberOfSubscribedSymbolsL2 = null;
15573
+ /**
15574
+ *
15575
+ * @type {number}
15576
+ */
15577
+ this.numberOfAvailableSymbolsL2 = null;
15578
+ /**
15579
+ *
15580
+ * @type {number}
15581
+ */
15582
+ this.numberOfOpenedConnections = null;
15583
+ /**
15584
+ *
15585
+ * @type {number}
15586
+ */
15587
+ this.numberOfAvailableConnections = null;
15588
+ /**
15589
+ *
15590
+ * @type {number}
15591
+ */
15592
+ this.numberOfSubscribedExchanges = null;
15593
+ /**
15594
+ *
15595
+ * @type {number}
15596
+ */
15597
+ this.numberOfSubscribedTrades = null;
15582
15598
  };
15583
15599
  messages.control.StatsResponse.prototype = new messages.control.BaseResponse();
15584
15600
 
15585
- /**
15586
- * Creates a Initial Data Sent response message.
15587
- * @constructor
15601
+ /**
15602
+ * Creates a Initial Data Sent response message.
15603
+ * @constructor
15588
15604
  */
15589
15605
  messages.control.InitialDataSent = function () {
15590
- this.init(messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT);
15606
+ this.init(messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT);
15591
15607
 
15592
- /**
15593
- * The timestamp of message creation.
15594
- * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15595
- * for connections with QITCH format - {@link JSBI.BigInt}
15596
- */
15597
- this.timestamp = null;
15608
+ /**
15609
+ * The timestamp of message creation.
15610
+ * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15611
+ * for connections with QITCH format - {@link JSBI.BigInt}
15612
+ */
15613
+ this.timestamp = null;
15598
15614
  };
15599
15615
  messages.control.InitialDataSent.prototype = new messages.control.CtrlMessage();
15600
15616
 
15601
- /**
15602
- * Creates a Resubscribe message.
15603
- * @constructor
15617
+ /**
15618
+ * Creates a Resubscribe message.
15619
+ * @constructor
15604
15620
  */
15605
15621
  messages.control.ResubscribeMessage = function () {
15606
- this.init(messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE);
15622
+ this.init(messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE);
15607
15623
 
15608
- /**
15609
- * The timestamp of message creation.
15610
- * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15611
- * for connections with QITCH format - {@link JSBI.BigInt}
15612
- */
15613
- this.timestamp = null;
15624
+ /**
15625
+ * The timestamp of message creation.
15626
+ * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15627
+ * for connections with QITCH format - {@link JSBI.BigInt}
15628
+ */
15629
+ this.timestamp = null;
15614
15630
  };
15615
15631
  messages.control.ResubscribeMessage.prototype = new messages.control.CtrlMessage();
15616
15632
 
15617
- /**
15618
- * Creates a Missed Data Sent response message.
15619
- * @constructor
15633
+ /**
15634
+ * Creates a Missed Data Sent response message.
15635
+ * @constructor
15620
15636
  */
15621
15637
  messages.control.MissedDataSent = function () {
15622
- this.init(messages.MessageTypeNames.ctrl.MISSED_DATA_SENT);
15638
+ this.init(messages.MessageTypeNames.ctrl.MISSED_DATA_SENT);
15623
15639
 
15624
- /**
15625
- * The timestamp of message creation.
15626
- * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15627
- * for connections with QITCH format - {@link JSBI.BigInt}
15628
- */
15629
- this.timestamp = null;
15640
+ /**
15641
+ * The timestamp of message creation.
15642
+ * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
15643
+ * for connections with QITCH format - {@link JSBI.BigInt}
15644
+ */
15645
+ this.timestamp = null;
15630
15646
  };
15631
15647
  messages.control.MissedDataSent.prototype = new messages.control.CtrlMessage();
15632
15648
 
15633
- /**
15634
- * Stream entitlement types.
15635
- * @enum
15636
- * @readonly
15649
+ /**
15650
+ * Stream entitlement types.
15651
+ * @enum
15652
+ * @readonly
15637
15653
  */
15638
15654
  messages.control.StreamEntitlementType = {
15639
- RT: "Realtime",
15640
- RTO: "Realtime CBOE ONE",
15641
- RTN: "Realtime NASDAQ",
15642
- RTB: "Realtime BATS",
15643
- DL: "Delayed",
15644
- DLO: "Delayed CBOE One",
15645
- DLN: "Delayed NASDAQ",
15646
- NA: "Not Entitled"
15655
+ RT: "Realtime",
15656
+ RTO: "Realtime CBOE ONE",
15657
+ RTN: "Realtime NASDAQ",
15658
+ RTB: "Realtime BATS",
15659
+ DL: "Delayed",
15660
+ DLO: "Delayed CBOE One",
15661
+ DLN: "Delayed NASDAQ",
15662
+ NA: "Not Entitled"
15647
15663
  };
15648
15664
 
15649
- /**
15650
- * Enumeration for subscription actions.
15651
- * @enum
15652
- * @readonly
15665
+ /**
15666
+ * Enumeration for subscription actions.
15667
+ * @enum
15668
+ * @readonly
15653
15669
  */
15654
15670
  messages.control.Action = {
15655
- SUBSCRIBE: "SUBSCRIBE",
15656
- UNSUBSCRIBE: "UNSUBSCRIBE"
15671
+ SUBSCRIBE: "SUBSCRIBE",
15672
+ UNSUBSCRIBE: "UNSUBSCRIBE"
15657
15673
  };
15658
15674
 
15659
- /**
15660
- * Enumeration for associations.
15661
- * @enum
15662
- * @readonly
15675
+ /**
15676
+ * Enumeration for associations.
15677
+ * @enum
15678
+ * @readonly
15663
15679
  */
15664
15680
  messages.control.Association = {
15665
- AND: "AND",
15666
- OR: "OR",
15667
- NOT: "NOT"
15681
+ AND: "AND",
15682
+ OR: "OR",
15683
+ NOT: "NOT"
15668
15684
  };
15669
15685
 
15670
- /**
15671
- * Enumeration for streaming message types.
15672
- * @enum
15673
- * @readonly
15674
- * @deprecated Use the messages.market.SubscriptionTypes along with messages.market.MarketDataResponseTypes
15686
+ /**
15687
+ * Enumeration for streaming message types.
15688
+ * @enum
15689
+ * @readonly
15690
+ * @deprecated Use the messages.market.SubscriptionTypes along with messages.market.MarketDataResponseTypes
15675
15691
  */
15676
15692
  messages.control.MarketdataType = {
15677
- QUOTE: "QUOTE",
15678
- PRICEDATA: "PRICEDATA",
15679
- TRADE: "TRADE",
15680
- MMQUOTE: "MMQUOTE",
15681
- ORDERBOOK: "ORDERBOOK",
15682
- INTERVAL: "INTERVAL",
15683
- NETHOUSEPOSITION: "NETHOUSEPOSITION",
15684
- LASTSALE: "LASTSALE",
15685
- BOOKORDER: "BOOKORDER",
15686
- BOOKDELETE: "BOOKDELETE",
15687
- PURGEBOOK: "PURGEBOOK",
15688
- LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15689
- IVGREEKS: "IVGREEKS",
15690
- IMBALANCESTATUS: "IMBALANCESTATUS"
15693
+ QUOTE: "QUOTE",
15694
+ PRICEDATA: "PRICEDATA",
15695
+ TRADE: "TRADE",
15696
+ MMQUOTE: "MMQUOTE",
15697
+ ORDERBOOK: "ORDERBOOK",
15698
+ INTERVAL: "INTERVAL",
15699
+ NETHOUSEPOSITION: "NETHOUSEPOSITION",
15700
+ LASTSALE: "LASTSALE",
15701
+ BOOKORDER: "BOOKORDER",
15702
+ BOOKDELETE: "BOOKDELETE",
15703
+ PURGEBOOK: "PURGEBOOK",
15704
+ LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15705
+ IVGREEKS: "IVGREEKS",
15706
+ IMBALANCESTATUS: "IMBALANCESTATUS"
15691
15707
  };
15692
15708
 
15693
- /**
15694
- * Enum for the allowed subscription types
15695
- * @enum
15696
- * @readonly
15709
+ /**
15710
+ * Enum for the allowed subscription types
15711
+ * @enum
15712
+ * @readonly
15697
15713
  */
15698
15714
  messages.market.SubscriptionTypes = {
15699
- QUOTE: "QUOTE",
15700
- PRICEDATA: "PRICEDATA",
15701
- TRADE: "TRADE",
15702
- MMQUOTE: "MMQUOTE",
15703
- ORDERBOOK: "ORDERBOOK",
15704
- INTERVAL: "INTERVAL",
15705
- NETHOUSEPOSITION: "NETHOUSEPOSITION",
15706
- LASTSALE: "LASTSALE",
15707
- LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15708
- IVGREEKS: "IVGREEKS",
15709
- IMBALANCESTATUS: "IMBALANCESTATUS"
15715
+ QUOTE: "QUOTE",
15716
+ PRICEDATA: "PRICEDATA",
15717
+ TRADE: "TRADE",
15718
+ MMQUOTE: "MMQUOTE",
15719
+ ORDERBOOK: "ORDERBOOK",
15720
+ INTERVAL: "INTERVAL",
15721
+ NETHOUSEPOSITION: "NETHOUSEPOSITION",
15722
+ LASTSALE: "LASTSALE",
15723
+ LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15724
+ IVGREEKS: "IVGREEKS",
15725
+ IMBALANCESTATUS: "IMBALANCESTATUS"
15710
15726
 
15711
- /**
15712
- * Enum for streamer responses from server
15713
- * @enum
15714
- * @readonly
15715
- */
15727
+ /**
15728
+ * Enum for streamer responses from server
15729
+ * @enum
15730
+ * @readonly
15731
+ */
15716
15732
  };messages.market.MarketDataResponseTypes = {
15717
- QUOTE: "QUOTE",
15718
- PRICEDATA: "PRICEDATA",
15719
- TRADE: "TRADE",
15720
- INTERVAL: "INTERVAL",
15721
- NETHOUSEPOSITION: "NETHOUSEPOSITION",
15722
- MMQUOTE: "MMQUOTE",
15723
- BOOKORDER: "BOOKORDER",
15724
- PURGEBOOK: "PURGEBOOK",
15725
- BOOKDELETE: "BOOKDELETE",
15726
- SYMBOLINFO: "SYMBOLINFO",
15727
- SYMBOLSTATUS: "SYMBOLSTATUS",
15728
- DERIVATIVEINFO: "DERIVATIVEINFO",
15729
- LASTSALE: "LASTSALE",
15730
- LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15731
- IVGREEKS: "IVGREEKS",
15732
- IMBALANCESTATUS: "IMBALANCESTATUS",
15733
- ALERT: "ALERT",
15734
- NEWS: "NEWS",
15735
- TRADENOTIFICATION: "TRADENOTIFICATION",
15736
- NEWSCMDFILTER: "NEWSCMDFILTER",
15737
- NEWSERROR: "NEWSERROR",
15738
- DIVIDEND: "DIVIDEND"
15733
+ QUOTE: "QUOTE",
15734
+ PRICEDATA: "PRICEDATA",
15735
+ TRADE: "TRADE",
15736
+ INTERVAL: "INTERVAL",
15737
+ NETHOUSEPOSITION: "NETHOUSEPOSITION",
15738
+ MMQUOTE: "MMQUOTE",
15739
+ BOOKORDER: "BOOKORDER",
15740
+ PURGEBOOK: "PURGEBOOK",
15741
+ BOOKDELETE: "BOOKDELETE",
15742
+ SYMBOLINFO: "SYMBOLINFO",
15743
+ SYMBOLSTATUS: "SYMBOLSTATUS",
15744
+ DERIVATIVEINFO: "DERIVATIVEINFO",
15745
+ LASTSALE: "LASTSALE",
15746
+ LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
15747
+ IVGREEKS: "IVGREEKS",
15748
+ IMBALANCESTATUS: "IMBALANCESTATUS",
15749
+ ALERT: "ALERT",
15750
+ NEWS: "NEWS",
15751
+ TRADENOTIFICATION: "TRADENOTIFICATION",
15752
+ NEWSCMDFILTER: "NEWSCMDFILTER",
15753
+ NEWSERROR: "NEWSERROR",
15754
+ DIVIDEND: "DIVIDEND"
15739
15755
 
15740
- /**
15741
- * Response codes and reasons.
15742
- * @enum
15743
- * @readonly
15744
- */
15756
+ /**
15757
+ * Response codes and reasons.
15758
+ * @enum
15759
+ * @readonly
15760
+ */
15745
15761
  };messages.control.ResponseCodes = {
15746
- OK_CODE: 200,
15747
- OK_REASON: "OK",
15762
+ OK_CODE: 200,
15763
+ OK_REASON: "OK",
15748
15764
 
15749
- BADREQUEST_CODE: 400,
15750
- BADREQUEST_REASON: "Bad Request",
15765
+ BADREQUEST_CODE: 400,
15766
+ BADREQUEST_REASON: "Bad Request",
15751
15767
 
15752
- UNAUTHORIZED_CODE: 401,
15753
- UNAUTHORIZED_REASON: "Unauthorized",
15768
+ UNAUTHORIZED_CODE: 401,
15769
+ UNAUTHORIZED_REASON: "Unauthorized",
15754
15770
 
15755
- TOOSLOW_CODE: 450,
15756
- TOOSLOW_REASON: "Too slow",
15771
+ TOOSLOW_CODE: 450,
15772
+ TOOSLOW_REASON: "Too slow",
15757
15773
 
15758
- DATA_SOURCE_RESET: 454,
15759
- DATA_SOURCE_RESET_REASON: "Data Source Was Reset",
15774
+ DATA_SOURCE_RESET: 454,
15775
+ DATA_SOURCE_RESET_REASON: "Data Source Was Reset",
15760
15776
 
15761
- CONNECTION_LIMIT_EXCEEDED_CODE: 452,
15762
- CONNECTION_LIMIT_EXCEEDED_REASON: "Connection Limit Exceeded",
15777
+ CONNECTION_LIMIT_EXCEEDED_CODE: 452,
15778
+ CONNECTION_LIMIT_EXCEEDED_REASON: "Connection Limit Exceeded",
15763
15779
 
15764
- INTERNALSERVERERROR_CODE: 500,
15765
- INTERNALSERVERERROR_REASON: "Internal Server Error"
15780
+ INTERNALSERVERERROR_CODE: 500,
15781
+ INTERNALSERVERERROR_REASON: "Internal Server Error"
15766
15782
  };
15767
15783
 
15768
15784
  /* ****************************************************************************************************************** */
15769
15785
 
15770
- /**
15771
- * Base type for all market data exports.
15772
- * @constructor
15773
- * @abstract
15786
+ /**
15787
+ * Base type for all market data exports.
15788
+ * @constructor
15789
+ * @abstract
15774
15790
  */
15775
15791
  messages.market.DataMessage = function () {
15776
- /**
15777
- * The message type.
15778
- * @type {number}
15779
- * @see messages.MessageTypeNames_0.data
15780
- */
15781
- this.messageType = null;
15792
+ /**
15793
+ * The message type.
15794
+ * @type {number}
15795
+ * @see messages.MessageTypeNames_0.data
15796
+ */
15797
+ this.messageType = null;
15782
15798
  };
15783
15799
  messages.market.DataMessage.prototype = new messages.Message();
15784
15800
 
15785
- /**
15786
- *
15787
- * @constructor
15801
+ /**
15802
+ *
15803
+ * @constructor
15788
15804
  */
15789
15805
  messages.market.Quote = function () {
15790
- this.init(messages.MessageTypeNames.data.QUOTE);
15806
+ this.init(messages.MessageTypeNames.data.QUOTE);
15791
15807
 
15792
- // TODO properties
15808
+ // TODO properties
15793
15809
  };
15794
15810
  messages.market.Quote.prototype = new messages.market.DataMessage();
15795
15811
 
15796
- /**
15797
- *
15798
- * @constructor
15812
+ /**
15813
+ *
15814
+ * @constructor
15799
15815
  */
15800
15816
  messages.market.PriceData = function () {
15801
- this.init(messages.MessageTypeNames.data.PRICEDATA);
15817
+ this.init(messages.MessageTypeNames.data.PRICEDATA);
15802
15818
 
15803
- // TODO properties
15819
+ // TODO properties
15804
15820
  };
15805
15821
  messages.market.PriceData.prototype = new messages.market.DataMessage();
15806
15822
 
15807
- /**
15808
- *
15809
- * @constructor
15823
+ /**
15824
+ *
15825
+ * @constructor
15810
15826
  */
15811
15827
  messages.market.Trade = function () {
15812
- this.init(messages.MessageTypeNames.data.TRADE);
15828
+ this.init(messages.MessageTypeNames.data.TRADE);
15813
15829
 
15814
- // TODO properties
15830
+ // TODO properties
15815
15831
  };
15816
15832
  messages.market.Trade.prototype = new messages.market.DataMessage();
15817
15833
 
15818
- /**
15819
- *
15820
- * @constructor
15834
+ /**
15835
+ *
15836
+ * @constructor
15821
15837
  */
15822
15838
  messages.market.MMQuote = function () {
15823
- this.init(messages.MessageTypeNames.data.MMQUOTE);
15839
+ this.init(messages.MessageTypeNames.data.MMQUOTE);
15824
15840
 
15825
- // TODO properties
15841
+ // TODO properties
15826
15842
  };
15827
15843
  messages.market.MMQuote.prototype = new messages.market.DataMessage();
15828
15844
 
15829
- /**
15830
- *
15831
- * @constructor
15845
+ /**
15846
+ *
15847
+ * @constructor
15832
15848
  */
15833
15849
  messages.market.PurgeBook = function () {
15834
- this.init(messages.MessageTypeNames.data.PURGEBOOK);
15850
+ this.init(messages.MessageTypeNames.data.PURGEBOOK);
15835
15851
 
15836
- // TODO properties
15852
+ // TODO properties
15837
15853
  };
15838
15854
  messages.market.PurgeBook.prototype = new messages.market.DataMessage();
15839
15855
 
15840
- /**
15841
- *
15842
- * @constructor
15856
+ /**
15857
+ *
15858
+ * @constructor
15843
15859
  */
15844
15860
  messages.market.BookOrder = function () {
15845
- this.init(messages.MessageTypeNames.data.BOOKORDER);
15861
+ this.init(messages.MessageTypeNames.data.BOOKORDER);
15846
15862
 
15847
- // TODO properties
15863
+ // TODO properties
15848
15864
  };
15849
15865
  messages.market.BookOrder.prototype = new messages.market.DataMessage();
15850
15866
 
15851
- /**
15852
- *
15853
- * @constructor
15867
+ /**
15868
+ *
15869
+ * @constructor
15854
15870
  */
15855
15871
  messages.market.BookDelete = function () {
15856
- this.init(messages.MessageTypeNames.data.BOOKDELETE);
15872
+ this.init(messages.MessageTypeNames.data.BOOKDELETE);
15857
15873
 
15858
- // TODO properties
15874
+ // TODO properties
15859
15875
  };
15860
15876
  messages.market.BookDelete.prototype = new messages.market.DataMessage();
15861
15877
 
15862
- /**
15863
- *
15864
- * @constructor
15878
+ /**
15879
+ *
15880
+ * @constructor
15865
15881
  */
15866
15882
  messages.market.Interval = function () {
15867
- this.init(messages.MessageTypeNames.data.INTERVAL);
15883
+ this.init(messages.MessageTypeNames.data.INTERVAL);
15868
15884
 
15869
- // TODO properties
15885
+ // TODO properties
15870
15886
  };
15871
15887
  messages.market.Interval.prototype = new messages.market.DataMessage();
15872
15888
 
15873
- /**
15874
- *
15875
- * @constructor
15889
+ /**
15890
+ *
15891
+ * @constructor
15876
15892
  */
15877
15893
  messages.market.NethousePosition = function () {
15878
- this.init(messages.MessageTypeNames.data.NETHOUSEPOSITION);
15894
+ this.init(messages.MessageTypeNames.data.NETHOUSEPOSITION);
15879
15895
 
15880
- // TODO properties
15896
+ // TODO properties
15881
15897
  };
15882
15898
  messages.market.NethousePosition.prototype = new messages.market.DataMessage();
15883
15899
 
15884
- /**
15885
- *
15886
- * @constructor
15900
+ /**
15901
+ *
15902
+ * @constructor
15887
15903
  */
15888
15904
  messages.market.SymbolInfo = function () {
15889
- this.init(messages.MessageTypeNames.data.SYMBOLINFO);
15905
+ this.init(messages.MessageTypeNames.data.SYMBOLINFO);
15890
15906
 
15891
- // TODO properties
15907
+ // TODO properties
15892
15908
  };
15893
15909
  messages.market.SymbolInfo.prototype = new messages.market.DataMessage();
15894
15910
 
15895
- /**
15896
- *
15897
- * @constructor
15911
+ /**
15912
+ *
15913
+ * @constructor
15898
15914
  */
15899
15915
  messages.market.SymbolStatus = function () {
15900
- this.init(messages.MessageTypeNames.data.SYMBOLSTATUS);
15916
+ this.init(messages.MessageTypeNames.data.SYMBOLSTATUS);
15901
15917
 
15902
- // TODO properties
15918
+ // TODO properties
15903
15919
  };
15904
15920
  messages.market.SymbolStatus.prototype = new messages.market.DataMessage();
15905
15921
 
15906
- /**
15907
- *
15908
- * @constructor
15922
+ /**
15923
+ *
15924
+ * @constructor
15909
15925
  */
15910
15926
  messages.market.DerivativeInfo = function () {
15911
- this.init(messages.MessageTypeNames.data.DERIVATIVEINFO);
15927
+ this.init(messages.MessageTypeNames.data.DERIVATIVEINFO);
15912
15928
 
15913
- // TODO properties
15929
+ // TODO properties
15914
15930
  };
15915
15931
  messages.market.DerivativeInfo.prototype = new messages.market.DataMessage();
15916
15932
 
15917
- /**
15918
- *
15919
- * @constructor
15933
+ /**
15934
+ *
15935
+ * @constructor
15920
15936
  */
15921
15937
  messages.market.IVGreeks = function () {
15922
- this.init(messages.MessageTypeNames.data.IVGREEKS);
15938
+ this.init(messages.MessageTypeNames.data.IVGREEKS);
15923
15939
 
15924
- // TODO properties
15940
+ // TODO properties
15925
15941
  };
15926
15942
  messages.market.IVGreeks.prototype = new messages.market.DataMessage();
15927
15943
 
15928
- /**
15929
- *
15930
- * @constructor
15944
+ /**
15945
+ *
15946
+ * @constructor
15931
15947
  */
15932
15948
  messages.market.LastSale = function () {
15933
- this.init(messages.MessageTypeNames.data.LASTSALE);
15949
+ this.init(messages.MessageTypeNames.data.LASTSALE);
15934
15950
 
15935
- // TODO properties
15951
+ // TODO properties
15936
15952
  };
15937
15953
  messages.market.LastSale.prototype = new messages.market.DataMessage();
15938
15954
 
15939
- /**
15940
- *
15941
- * @constructor
15955
+ /**
15956
+ *
15957
+ * @constructor
15942
15958
  */
15943
15959
  messages.market.LimitUpLimitDown = function () {
15944
- this.init(messages.MessageTypeNames.data.LIMITUPLIMITDOWN);
15960
+ this.init(messages.MessageTypeNames.data.LIMITUPLIMITDOWN);
15945
15961
 
15946
- // TODO properties
15962
+ // TODO properties
15947
15963
  };
15948
15964
  messages.market.LimitUpLimitDown.prototype = new messages.market.DataMessage();
15949
15965
 
15950
- /**
15951
- *
15952
- * @constructor
15966
+ /**
15967
+ *
15968
+ * @constructor
15953
15969
  */
15954
15970
  messages.market.ImbalanceStatus = function () {
15955
- this.init(messages.MessageTypeNames.data.IMBALANCESTATUS);
15971
+ this.init(messages.MessageTypeNames.data.IMBALANCESTATUS);
15956
15972
 
15957
- // TODO properties
15973
+ // TODO properties
15958
15974
  };
15959
15975
  messages.market.ImbalanceStatus.prototype = new messages.market.DataMessage();
15960
15976
 
15961
15977
  messages.market.Alert = function () {
15962
- this.init(messages.MessageTypeNames.data.ALERT);
15978
+ this.init(messages.MessageTypeNames.data.ALERT);
15963
15979
 
15964
- // TODO properties
15980
+ // TODO properties
15965
15981
  };
15966
15982
  messages.market.Alert.prototype = new messages.market.DataMessage();
15967
15983
 
15968
- /**
15969
- * Enumeration for instrument types.
15970
- * @enum
15971
- * @readonly
15984
+ /**
15985
+ * Enumeration for instrument types.
15986
+ * @enum
15987
+ * @readonly
15972
15988
  */
15973
15989
  messages.market.InstrumentType = {
15974
- 1: "CASH",
15975
- 2: "BOND",
15976
- 3: "COMPOSITE",
15977
- 4: "FUTURE",
15978
- 5: "FUTURE_OPTION",
15979
- 6: "FOREX",
15980
- 7: "INDEX",
15981
- 8: "MUTUAL_FUND",
15982
- 9: "MONEY_MARKET_FUND",
15983
- 10: "MARKET_STAT",
15984
- 11: "EQUITY",
15985
- 12: "EQUITY_OPTION",
15986
- 13: "GOVT_BOND",
15987
- 14: "MUNI_BOND",
15988
- 15: "CORP_BOND",
15989
- 16: "ETF",
15990
- 17: "FUTURE_SPREAD",
15991
- 97: "OPTION_ROOT",
15992
- 98: "UNKNOWN",
15993
- 99: "RATE"
15990
+ 1: "CASH",
15991
+ 2: "BOND",
15992
+ 3: "COMPOSITE",
15993
+ 4: "FUTURE",
15994
+ 5: "FUTURE_OPTION",
15995
+ 6: "FOREX",
15996
+ 7: "INDEX",
15997
+ 8: "MUTUAL_FUND",
15998
+ 9: "MONEY_MARKET_FUND",
15999
+ 10: "MARKET_STAT",
16000
+ 11: "EQUITY",
16001
+ 12: "EQUITY_OPTION",
16002
+ 13: "GOVT_BOND",
16003
+ 14: "MUNI_BOND",
16004
+ 15: "CORP_BOND",
16005
+ 16: "ETF",
16006
+ 17: "FUTURE_SPREAD",
16007
+ 97: "OPTION_ROOT",
16008
+ 98: "UNKNOWN",
16009
+ 99: "RATE"
15994
16010
  };
15995
16011
 
15996
- /**
15997
- * Enumeration vor order side.
15998
- * @enum
15999
- * @readonly
16012
+ /**
16013
+ * Enumeration vor order side.
16014
+ * @enum
16015
+ * @readonly
16000
16016
  */
16001
16017
  messages.market.OrderSide = {
16002
- BUYSIDE: 'B',
16003
- SELLSIDE: 'S'
16018
+ BUYSIDE: 'B',
16019
+ SELLSIDE: 'S'
16004
16020
  };
16005
16021
 
16006
- /**
16007
- * Enumeration for imbalance types.
16008
- * @enum
16009
- * @readonly
16022
+ /**
16023
+ * Enumeration for imbalance types.
16024
+ * @enum
16025
+ * @readonly
16010
16026
  */
16011
16027
  messages.market.ImbalanceType = {
16012
- 0: "NONE",
16013
- 1: "MARKET",
16014
- 2: "MOC",
16015
- 3: "REGULATORY_IMBALANCE",
16016
- 4: "OPENING_IMBALANCE",
16017
- 5: "CLOSING_IMBALANCE",
16018
- 6: "IPO_IMBALANCE",
16019
- 7: "HALT_IMBALANCE",
16020
- 8: "EQUILIBRIUM"
16028
+ 0: "NONE",
16029
+ 1: "MARKET",
16030
+ 2: "MOC",
16031
+ 3: "REGULATORY_IMBALANCE",
16032
+ 4: "OPENING_IMBALANCE",
16033
+ 5: "CLOSING_IMBALANCE",
16034
+ 6: "IPO_IMBALANCE",
16035
+ 7: "HALT_IMBALANCE",
16036
+ 8: "EQUILIBRIUM"
16021
16037
  };
16022
16038
 
16023
- /**
16024
- * Enumeration for book order change types.
16025
- * @enum
16026
- * @readonly
16039
+ /**
16040
+ * Enumeration for book order change types.
16041
+ * @enum
16042
+ * @readonly
16027
16043
  */
16028
16044
  messages.market.OrderChangeType = {
16029
- 'A': "ADD",
16030
- 'M': "MODIFY",
16031
- 'C': "CANCEL",
16032
- 'E': "EXECUTE"
16045
+ 'A': "ADD",
16046
+ 'M': "MODIFY",
16047
+ 'C': "CANCEL",
16048
+ 'E': "EXECUTE"
16033
16049
  };
16034
16050
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/streamer-api.js","/lib")
16035
16051
  },{"_process":131,"buffer":121,"timers":152}],109:[function(require,module,exports){
@@ -16358,8 +16374,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
16358
16374
 
16359
16375
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16360
16376
 
16361
- /*
16362
- Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
16377
+ /*
16378
+ Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
16363
16379
  */
16364
16380
  var QitchTransmitter = function () {
16365
16381
  function QitchTransmitter(socket, encoder, log) {