@quotemedia.com/streamer 2.33.0 → 2.36.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.
- package/README.md +157 -133
- package/examples/enduser-example.html +198 -198
- package/examples/enterprise-token-example.html +177 -177
- package/examples/reconnect-example.html +278 -278
- package/examples/stomp-3rd-party-library-example.html +682 -0
- package/examples/subscription-example.html +252 -252
- package/examples/wmid-example.html +176 -176
- package/package.json +38 -38
- package/{qmci-streamer-2.33.0.js → qmci-streamer-2.36.0.js} +1459 -1379
- package/{qmci-streamer-2.33.0.min.js → qmci-streamer-2.36.0.min.js} +7 -7
- package/examples/user-access-token-example.html +0 -177
|
@@ -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
|
};
|
|
@@ -2171,38 +2171,38 @@ exports["default"] = UShortId;
|
|
|
2171
2171
|
|
|
2172
2172
|
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; };
|
|
2173
2173
|
|
|
2174
|
-
/*
|
|
2175
|
-
* Copyright 2015 Async-IO.org
|
|
2176
|
-
*
|
|
2177
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2178
|
-
* you may not use this file except in compliance with the License.
|
|
2179
|
-
* You may obtain a copy of the License at
|
|
2180
|
-
*
|
|
2181
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2182
|
-
*
|
|
2183
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2184
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2185
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2186
|
-
* See the License for the specific language governing permissions and
|
|
2187
|
-
* limitations under the License.
|
|
2174
|
+
/*
|
|
2175
|
+
* Copyright 2015 Async-IO.org
|
|
2176
|
+
*
|
|
2177
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2178
|
+
* you may not use this file except in compliance with the License.
|
|
2179
|
+
* You may obtain a copy of the License at
|
|
2180
|
+
*
|
|
2181
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2182
|
+
*
|
|
2183
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2184
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2185
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2186
|
+
* See the License for the specific language governing permissions and
|
|
2187
|
+
* limitations under the License.
|
|
2188
2188
|
*/
|
|
2189
|
-
/**
|
|
2190
|
-
* Added binary message processing that reads from the blob.
|
|
2191
|
-
* Tweaked implementation to support binary messages with streaming protocol:
|
|
2192
|
-
* - edited message calculation logic to support multiple messages that could be read from stream at once
|
|
2193
|
-
* without message size being pre-appended;
|
|
2194
|
-
* - override mimetype to be able to retrieve original byte array;
|
|
2195
|
-
* - don't trim string representation of binary messages.
|
|
2189
|
+
/**
|
|
2190
|
+
* Added binary message processing that reads from the blob.
|
|
2191
|
+
* Tweaked implementation to support binary messages with streaming protocol:
|
|
2192
|
+
* - edited message calculation logic to support multiple messages that could be read from stream at once
|
|
2193
|
+
* without message size being pre-appended;
|
|
2194
|
+
* - override mimetype to be able to retrieve original byte array;
|
|
2195
|
+
* - don't trim string representation of binary messages.
|
|
2196
2196
|
*/
|
|
2197
|
-
/**
|
|
2198
|
-
* Atmosphere.js
|
|
2199
|
-
* https://github.com/Atmosphere/atmosphere-javascript
|
|
2200
|
-
*
|
|
2201
|
-
* API reference
|
|
2202
|
-
* https://github.com/Atmosphere/atmosphere/wiki/jQuery.atmosphere.js-API
|
|
2203
|
-
*
|
|
2204
|
-
* Highly inspired by
|
|
2205
|
-
* - Portal by Donghwan Kim http://flowersinthesand.github.io/portal/
|
|
2197
|
+
/**
|
|
2198
|
+
* Atmosphere.js
|
|
2199
|
+
* https://github.com/Atmosphere/atmosphere-javascript
|
|
2200
|
+
*
|
|
2201
|
+
* API reference
|
|
2202
|
+
* https://github.com/Atmosphere/atmosphere/wiki/jQuery.atmosphere.js-API
|
|
2203
|
+
*
|
|
2204
|
+
* Highly inspired by
|
|
2205
|
+
* - Portal by Donghwan Kim http://flowersinthesand.github.io/portal/
|
|
2206
2206
|
*/
|
|
2207
2207
|
(function (root, factory) {
|
|
2208
2208
|
if (typeof define === "function" && define.amd) {
|
|
@@ -2242,41 +2242,41 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2242
2242
|
onClientTimeout: function onClientTimeout(request) {},
|
|
2243
2243
|
onOpenAfterResume: function onOpenAfterResume(request) {},
|
|
2244
2244
|
|
|
2245
|
-
/**
|
|
2246
|
-
* Creates an object based on an atmosphere subscription that exposes functions defined by the Websocket interface.
|
|
2247
|
-
*
|
|
2248
|
-
* @class WebsocketApiAdapter
|
|
2249
|
-
* @param {Object} request the request object to build the underlying subscription
|
|
2250
|
-
* @constructor
|
|
2245
|
+
/**
|
|
2246
|
+
* Creates an object based on an atmosphere subscription that exposes functions defined by the Websocket interface.
|
|
2247
|
+
*
|
|
2248
|
+
* @class WebsocketApiAdapter
|
|
2249
|
+
* @param {Object} request the request object to build the underlying subscription
|
|
2250
|
+
* @constructor
|
|
2251
2251
|
*/
|
|
2252
2252
|
WebsocketApiAdapter: function WebsocketApiAdapter(request) {
|
|
2253
2253
|
var _socket, _adapter;
|
|
2254
2254
|
|
|
2255
|
-
/**
|
|
2256
|
-
* Overrides the onMessage callback in given request.
|
|
2257
|
-
*
|
|
2258
|
-
* @method onMessage
|
|
2259
|
-
* @param {Object} e the event object
|
|
2255
|
+
/**
|
|
2256
|
+
* Overrides the onMessage callback in given request.
|
|
2257
|
+
*
|
|
2258
|
+
* @method onMessage
|
|
2259
|
+
* @param {Object} e the event object
|
|
2260
2260
|
*/
|
|
2261
2261
|
request.onMessage = function (e) {
|
|
2262
2262
|
_adapter.onmessage({ data: e.responseBody });
|
|
2263
2263
|
};
|
|
2264
2264
|
|
|
2265
|
-
/**
|
|
2266
|
-
* Overrides the onMessagePublished callback in given request.
|
|
2267
|
-
*
|
|
2268
|
-
* @method onMessagePublished
|
|
2269
|
-
* @param {Object} e the event object
|
|
2265
|
+
/**
|
|
2266
|
+
* Overrides the onMessagePublished callback in given request.
|
|
2267
|
+
*
|
|
2268
|
+
* @method onMessagePublished
|
|
2269
|
+
* @param {Object} e the event object
|
|
2270
2270
|
*/
|
|
2271
2271
|
request.onMessagePublished = function (e) {
|
|
2272
2272
|
_adapter.onmessage({ data: e.responseBody });
|
|
2273
2273
|
};
|
|
2274
2274
|
|
|
2275
|
-
/**
|
|
2276
|
-
* Overrides the onOpen callback in given request to proxy the event to the adapter.
|
|
2277
|
-
*
|
|
2278
|
-
* @method onOpen
|
|
2279
|
-
* @param {Object} e the event object
|
|
2275
|
+
/**
|
|
2276
|
+
* Overrides the onOpen callback in given request to proxy the event to the adapter.
|
|
2277
|
+
*
|
|
2278
|
+
* @method onOpen
|
|
2279
|
+
* @param {Object} e the event object
|
|
2280
2280
|
*/
|
|
2281
2281
|
request.onOpen = function (e) {
|
|
2282
2282
|
_adapter.onopen(e);
|
|
@@ -2306,10 +2306,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2306
2306
|
|
|
2307
2307
|
AtmosphereRequest: function AtmosphereRequest(options) {
|
|
2308
2308
|
|
|
2309
|
-
/**
|
|
2310
|
-
* {Object} Request parameters.
|
|
2311
|
-
*
|
|
2312
|
-
* @private
|
|
2309
|
+
/**
|
|
2310
|
+
* {Object} Request parameters.
|
|
2311
|
+
*
|
|
2312
|
+
* @private
|
|
2313
2313
|
*/
|
|
2314
2314
|
var _request = {
|
|
2315
2315
|
timeout: 300000,
|
|
@@ -2374,10 +2374,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2374
2374
|
onOpenAfterResume: function onOpenAfterResume(request) {}
|
|
2375
2375
|
};
|
|
2376
2376
|
|
|
2377
|
-
/**
|
|
2378
|
-
* {Object} Request's last response.
|
|
2379
|
-
*
|
|
2380
|
-
* @private
|
|
2377
|
+
/**
|
|
2378
|
+
* {Object} Request's last response.
|
|
2379
|
+
*
|
|
2380
|
+
* @private
|
|
2381
2381
|
*/
|
|
2382
2382
|
var _response = {
|
|
2383
2383
|
status: 200,
|
|
@@ -2395,101 +2395,101 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2395
2395
|
ffTryingReconnect: false
|
|
2396
2396
|
};
|
|
2397
2397
|
|
|
2398
|
-
/**
|
|
2399
|
-
* {websocket} Opened web socket.
|
|
2400
|
-
*
|
|
2401
|
-
* @private
|
|
2398
|
+
/**
|
|
2399
|
+
* {websocket} Opened web socket.
|
|
2400
|
+
*
|
|
2401
|
+
* @private
|
|
2402
2402
|
*/
|
|
2403
2403
|
var _websocket = null;
|
|
2404
2404
|
|
|
2405
|
-
/**
|
|
2406
|
-
* {SSE} Opened SSE.
|
|
2407
|
-
*
|
|
2408
|
-
* @private
|
|
2405
|
+
/**
|
|
2406
|
+
* {SSE} Opened SSE.
|
|
2407
|
+
*
|
|
2408
|
+
* @private
|
|
2409
2409
|
*/
|
|
2410
2410
|
var _sse = null;
|
|
2411
2411
|
|
|
2412
|
-
/**
|
|
2413
|
-
* {XMLHttpRequest, ActiveXObject} Opened ajax request (in case of http-streaming or long-polling)
|
|
2414
|
-
*
|
|
2415
|
-
* @private
|
|
2412
|
+
/**
|
|
2413
|
+
* {XMLHttpRequest, ActiveXObject} Opened ajax request (in case of http-streaming or long-polling)
|
|
2414
|
+
*
|
|
2415
|
+
* @private
|
|
2416
2416
|
*/
|
|
2417
2417
|
var _activeRequest = null;
|
|
2418
2418
|
|
|
2419
|
-
/**
|
|
2420
|
-
* {Object} Object use for streaming with IE.
|
|
2421
|
-
*
|
|
2422
|
-
* @private
|
|
2419
|
+
/**
|
|
2420
|
+
* {Object} Object use for streaming with IE.
|
|
2421
|
+
*
|
|
2422
|
+
* @private
|
|
2423
2423
|
*/
|
|
2424
2424
|
var _ieStream = null;
|
|
2425
2425
|
|
|
2426
|
-
/**
|
|
2427
|
-
* {Object} Object use for jsonp transport.
|
|
2428
|
-
*
|
|
2429
|
-
* @private
|
|
2426
|
+
/**
|
|
2427
|
+
* {Object} Object use for jsonp transport.
|
|
2428
|
+
*
|
|
2429
|
+
* @private
|
|
2430
2430
|
*/
|
|
2431
2431
|
var _jqxhr = null;
|
|
2432
2432
|
|
|
2433
|
-
/**
|
|
2434
|
-
* {boolean} If request has been subscribed or not.
|
|
2435
|
-
*
|
|
2436
|
-
* @private
|
|
2433
|
+
/**
|
|
2434
|
+
* {boolean} If request has been subscribed or not.
|
|
2435
|
+
*
|
|
2436
|
+
* @private
|
|
2437
2437
|
*/
|
|
2438
2438
|
var _subscribed = true;
|
|
2439
2439
|
|
|
2440
|
-
/**
|
|
2441
|
-
* {number} Number of test reconnection.
|
|
2442
|
-
*
|
|
2443
|
-
* @private
|
|
2440
|
+
/**
|
|
2441
|
+
* {number} Number of test reconnection.
|
|
2442
|
+
*
|
|
2443
|
+
* @private
|
|
2444
2444
|
*/
|
|
2445
2445
|
var _requestCount = 0;
|
|
2446
2446
|
|
|
2447
|
-
/**
|
|
2448
|
-
* The Heartbeat interval send by the server.
|
|
2449
|
-
* @type {int}
|
|
2450
|
-
* @private
|
|
2447
|
+
/**
|
|
2448
|
+
* The Heartbeat interval send by the server.
|
|
2449
|
+
* @type {int}
|
|
2450
|
+
* @private
|
|
2451
2451
|
*/
|
|
2452
2452
|
var _heartbeatInterval = 0;
|
|
2453
2453
|
|
|
2454
|
-
/**
|
|
2455
|
-
* The Heartbeat bytes send by the server.
|
|
2456
|
-
* @type {string}
|
|
2457
|
-
* @private
|
|
2454
|
+
/**
|
|
2455
|
+
* The Heartbeat bytes send by the server.
|
|
2456
|
+
* @type {string}
|
|
2457
|
+
* @private
|
|
2458
2458
|
*/
|
|
2459
2459
|
var _heartbeatPadding = 'X';
|
|
2460
2460
|
|
|
2461
|
-
/**
|
|
2462
|
-
* {boolean} If request is currently aborted.
|
|
2463
|
-
*
|
|
2464
|
-
* @private
|
|
2461
|
+
/**
|
|
2462
|
+
* {boolean} If request is currently aborted.
|
|
2463
|
+
*
|
|
2464
|
+
* @private
|
|
2465
2465
|
*/
|
|
2466
2466
|
var _abortingConnection = false;
|
|
2467
2467
|
|
|
2468
|
-
/**
|
|
2469
|
-
* A local "channel' of communication.
|
|
2470
|
-
*
|
|
2471
|
-
* @private
|
|
2468
|
+
/**
|
|
2469
|
+
* A local "channel' of communication.
|
|
2470
|
+
*
|
|
2471
|
+
* @private
|
|
2472
2472
|
*/
|
|
2473
2473
|
var _localSocketF = null;
|
|
2474
2474
|
|
|
2475
|
-
/**
|
|
2476
|
-
* The storage used.
|
|
2477
|
-
*
|
|
2478
|
-
* @private
|
|
2475
|
+
/**
|
|
2476
|
+
* The storage used.
|
|
2477
|
+
*
|
|
2478
|
+
* @private
|
|
2479
2479
|
*/
|
|
2480
2480
|
var _storageService;
|
|
2481
2481
|
|
|
2482
|
-
/**
|
|
2483
|
-
* Local communication
|
|
2484
|
-
*
|
|
2485
|
-
* @private
|
|
2482
|
+
/**
|
|
2483
|
+
* Local communication
|
|
2484
|
+
*
|
|
2485
|
+
* @private
|
|
2486
2486
|
*/
|
|
2487
2487
|
var _localStorageService = null;
|
|
2488
2488
|
|
|
2489
|
-
/**
|
|
2490
|
-
* A Unique ID
|
|
2491
|
-
*
|
|
2492
|
-
* @private
|
|
2489
|
+
/**
|
|
2490
|
+
* A Unique ID
|
|
2491
|
+
*
|
|
2492
|
+
* @private
|
|
2493
2493
|
*/
|
|
2494
2494
|
var guid = atmosphere.util.now();
|
|
2495
2495
|
|
|
@@ -2499,21 +2499,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2499
2499
|
/** Key for connection sharing */
|
|
2500
2500
|
var _sharingKey;
|
|
2501
2501
|
|
|
2502
|
-
/**
|
|
2503
|
-
* {boolean} If window beforeUnload event has been called.
|
|
2504
|
-
* Flag will be reset after 5000 ms
|
|
2505
|
-
*
|
|
2506
|
-
* @private
|
|
2502
|
+
/**
|
|
2503
|
+
* {boolean} If window beforeUnload event has been called.
|
|
2504
|
+
* Flag will be reset after 5000 ms
|
|
2505
|
+
*
|
|
2506
|
+
* @private
|
|
2507
2507
|
*/
|
|
2508
2508
|
var _beforeUnloadState = false;
|
|
2509
2509
|
|
|
2510
2510
|
// Automatic call to subscribe
|
|
2511
2511
|
_subscribe(options);
|
|
2512
2512
|
|
|
2513
|
-
/**
|
|
2514
|
-
* Initialize atmosphere request object.
|
|
2515
|
-
*
|
|
2516
|
-
* @private
|
|
2513
|
+
/**
|
|
2514
|
+
* Initialize atmosphere request object.
|
|
2515
|
+
*
|
|
2516
|
+
* @private
|
|
2517
2517
|
*/
|
|
2518
2518
|
function _init() {
|
|
2519
2519
|
_subscribed = true;
|
|
@@ -2526,20 +2526,20 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2526
2526
|
_ieStream = null;
|
|
2527
2527
|
}
|
|
2528
2528
|
|
|
2529
|
-
/**
|
|
2530
|
-
* Re-initialize atmosphere object.
|
|
2531
|
-
*
|
|
2532
|
-
* @private
|
|
2529
|
+
/**
|
|
2530
|
+
* Re-initialize atmosphere object.
|
|
2531
|
+
*
|
|
2532
|
+
* @private
|
|
2533
2533
|
*/
|
|
2534
2534
|
function _reinit() {
|
|
2535
2535
|
_clearState();
|
|
2536
2536
|
_init();
|
|
2537
2537
|
}
|
|
2538
2538
|
|
|
2539
|
-
/**
|
|
2540
|
-
* Returns true if the given level is equal or above the configured log level.
|
|
2541
|
-
*
|
|
2542
|
-
* @private
|
|
2539
|
+
/**
|
|
2540
|
+
* Returns true if the given level is equal or above the configured log level.
|
|
2541
|
+
*
|
|
2542
|
+
* @private
|
|
2543
2543
|
*/
|
|
2544
2544
|
function _canLog(level) {
|
|
2545
2545
|
if (level == 'debug') {
|
|
@@ -2561,9 +2561,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
2563
|
|
|
2564
|
-
/**
|
|
2565
|
-
*
|
|
2566
|
-
* @private
|
|
2564
|
+
/**
|
|
2565
|
+
*
|
|
2566
|
+
* @private
|
|
2567
2567
|
*/
|
|
2568
2568
|
function _verifyStreamingLength(ajaxRequest, rq) {
|
|
2569
2569
|
// Wait to be sure we have the full message before closing.
|
|
@@ -2573,10 +2573,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2573
2573
|
return false;
|
|
2574
2574
|
}
|
|
2575
2575
|
|
|
2576
|
-
/**
|
|
2577
|
-
* Disconnect
|
|
2578
|
-
*
|
|
2579
|
-
* @private
|
|
2576
|
+
/**
|
|
2577
|
+
* Disconnect
|
|
2578
|
+
*
|
|
2579
|
+
* @private
|
|
2580
2580
|
*/
|
|
2581
2581
|
function _disconnect() {
|
|
2582
2582
|
if (_request.enableProtocol && !_request.disableDisconnect && !_request.firstMessage) {
|
|
@@ -2613,10 +2613,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2613
2613
|
}
|
|
2614
2614
|
}
|
|
2615
2615
|
|
|
2616
|
-
/**
|
|
2617
|
-
* Close request.
|
|
2618
|
-
*
|
|
2619
|
-
* @private
|
|
2616
|
+
/**
|
|
2617
|
+
* Close request.
|
|
2618
|
+
*
|
|
2619
|
+
* @private
|
|
2620
2620
|
*/
|
|
2621
2621
|
function _close() {
|
|
2622
2622
|
_debug("Closing (AtmosphereRequest._close() called)");
|
|
@@ -2703,12 +2703,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
2705
|
|
|
2706
|
-
/**
|
|
2707
|
-
* Subscribe request using request transport. <br>
|
|
2708
|
-
* If request is currently opened, this one will be closed.
|
|
2709
|
-
*
|
|
2710
|
-
* @param {Object} Request parameters.
|
|
2711
|
-
* @private
|
|
2706
|
+
/**
|
|
2707
|
+
* Subscribe request using request transport. <br>
|
|
2708
|
+
* If request is currently opened, this one will be closed.
|
|
2709
|
+
*
|
|
2710
|
+
* @param {Object} Request parameters.
|
|
2711
|
+
* @private
|
|
2712
2712
|
*/
|
|
2713
2713
|
function _subscribe(options) {
|
|
2714
2714
|
_reinit();
|
|
@@ -2721,21 +2721,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2721
2721
|
}
|
|
2722
2722
|
}
|
|
2723
2723
|
|
|
2724
|
-
/**
|
|
2725
|
-
* Check if web socket is supported (check for custom implementation provided by request object or browser implementation).
|
|
2726
|
-
*
|
|
2727
|
-
* @returns {boolean} True if web socket is supported, false otherwise.
|
|
2728
|
-
* @private
|
|
2724
|
+
/**
|
|
2725
|
+
* Check if web socket is supported (check for custom implementation provided by request object or browser implementation).
|
|
2726
|
+
*
|
|
2727
|
+
* @returns {boolean} True if web socket is supported, false otherwise.
|
|
2728
|
+
* @private
|
|
2729
2729
|
*/
|
|
2730
2730
|
function _supportWebsocket() {
|
|
2731
2731
|
return _request.webSocketImpl != null || window.WebSocket || window.MozWebSocket;
|
|
2732
2732
|
}
|
|
2733
2733
|
|
|
2734
|
-
/**
|
|
2735
|
-
* Check if server side events (SSE) is supported (check for custom implementation provided by request object or browser implementation).
|
|
2736
|
-
*
|
|
2737
|
-
* @returns {boolean} True if web socket is supported, false otherwise.
|
|
2738
|
-
* @private
|
|
2734
|
+
/**
|
|
2735
|
+
* Check if server side events (SSE) is supported (check for custom implementation provided by request object or browser implementation).
|
|
2736
|
+
*
|
|
2737
|
+
* @returns {boolean} True if web socket is supported, false otherwise.
|
|
2738
|
+
* @private
|
|
2739
2739
|
*/
|
|
2740
2740
|
function _supportSSE() {
|
|
2741
2741
|
// Origin parts
|
|
@@ -2751,11 +2751,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2751
2751
|
return window.EventSource && (!crossOrigin || !atmosphere.util.browser.safari || atmosphere.util.browser.vmajor >= 7);
|
|
2752
2752
|
}
|
|
2753
2753
|
|
|
2754
|
-
/**
|
|
2755
|
-
* Open request using request transport. <br>
|
|
2756
|
-
* If request transport is 'websocket' but websocket can't be opened, request will automatically reconnect using fallback transport.
|
|
2757
|
-
*
|
|
2758
|
-
* @private
|
|
2754
|
+
/**
|
|
2755
|
+
* Open request using request transport. <br>
|
|
2756
|
+
* If request transport is 'websocket' but websocket can't be opened, request will automatically reconnect using fallback transport.
|
|
2757
|
+
*
|
|
2758
|
+
* @private
|
|
2759
2759
|
*/
|
|
2760
2760
|
function _execute() {
|
|
2761
2761
|
// Shared across multiple tabs/windows.
|
|
@@ -3169,8 +3169,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3169
3169
|
_storageService = storageService;
|
|
3170
3170
|
}
|
|
3171
3171
|
|
|
3172
|
-
/**
|
|
3173
|
-
* @private
|
|
3172
|
+
/**
|
|
3173
|
+
* @private
|
|
3174
3174
|
*/
|
|
3175
3175
|
function _open(state, transport, request) {
|
|
3176
3176
|
if (_request.shared && transport !== 'local') {
|
|
@@ -3204,11 +3204,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3204
3204
|
}
|
|
3205
3205
|
}
|
|
3206
3206
|
|
|
3207
|
-
/**
|
|
3208
|
-
* Execute request using jsonp transport.
|
|
3209
|
-
*
|
|
3210
|
-
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
3211
|
-
* @private
|
|
3207
|
+
/**
|
|
3208
|
+
* Execute request using jsonp transport.
|
|
3209
|
+
*
|
|
3210
|
+
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
3211
|
+
* @private
|
|
3212
3212
|
*/
|
|
3213
3213
|
function _jsonp(request) {
|
|
3214
3214
|
// When CORS is enabled, make sure we force the proper transport.
|
|
@@ -3338,12 +3338,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3338
3338
|
_jqxhr.open();
|
|
3339
3339
|
}
|
|
3340
3340
|
|
|
3341
|
-
/**
|
|
3342
|
-
* Build websocket object.
|
|
3343
|
-
*
|
|
3344
|
-
* @param location {string} Web socket url.
|
|
3345
|
-
* @returns {websocket} Web socket object.
|
|
3346
|
-
* @private
|
|
3341
|
+
/**
|
|
3342
|
+
* Build websocket object.
|
|
3343
|
+
*
|
|
3344
|
+
* @param location {string} Web socket url.
|
|
3345
|
+
* @returns {websocket} Web socket object.
|
|
3346
|
+
* @private
|
|
3347
3347
|
*/
|
|
3348
3348
|
function _getWebSocket(location) {
|
|
3349
3349
|
if (_request.webSocketImpl != null) {
|
|
@@ -3359,32 +3359,32 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3359
3359
|
}
|
|
3360
3360
|
}
|
|
3361
3361
|
|
|
3362
|
-
/**
|
|
3363
|
-
* Build web socket url from request url.
|
|
3364
|
-
*
|
|
3365
|
-
* @return {string} Web socket url (start with "ws" or "wss" for secure web socket).
|
|
3366
|
-
* @private
|
|
3362
|
+
/**
|
|
3363
|
+
* Build web socket url from request url.
|
|
3364
|
+
*
|
|
3365
|
+
* @return {string} Web socket url (start with "ws" or "wss" for secure web socket).
|
|
3366
|
+
* @private
|
|
3367
3367
|
*/
|
|
3368
3368
|
function _buildWebSocketUrl() {
|
|
3369
3369
|
return _attachHeaders(_request, atmosphere.util.getAbsoluteURL(_request.webSocketUrl || _request.url)).replace(/^http/, "ws");
|
|
3370
3370
|
}
|
|
3371
3371
|
|
|
3372
|
-
/**
|
|
3373
|
-
* Build SSE url from request url.
|
|
3374
|
-
*
|
|
3375
|
-
* @return a url with Atmosphere's headers
|
|
3376
|
-
* @private
|
|
3372
|
+
/**
|
|
3373
|
+
* Build SSE url from request url.
|
|
3374
|
+
*
|
|
3375
|
+
* @return a url with Atmosphere's headers
|
|
3376
|
+
* @private
|
|
3377
3377
|
*/
|
|
3378
3378
|
function _buildSSEUrl() {
|
|
3379
3379
|
var url = _attachHeaders(_request);
|
|
3380
3380
|
return url;
|
|
3381
3381
|
}
|
|
3382
3382
|
|
|
3383
|
-
/**
|
|
3384
|
-
* Open SSE. <br>
|
|
3385
|
-
* Automatically use fallback transport if SSE can't be opened.
|
|
3386
|
-
*
|
|
3387
|
-
* @private
|
|
3383
|
+
/**
|
|
3384
|
+
* Open SSE. <br>
|
|
3385
|
+
* Automatically use fallback transport if SSE can't be opened.
|
|
3386
|
+
*
|
|
3387
|
+
* @private
|
|
3388
3388
|
*/
|
|
3389
3389
|
function _executeSSE(sseOpened) {
|
|
3390
3390
|
|
|
@@ -3465,9 +3465,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3465
3465
|
|
|
3466
3466
|
// https://github.com/remy/polyfills/blob/master/EventSource.js
|
|
3467
3467
|
// Since we polling.
|
|
3468
|
-
/* if (_sse.URL) {
|
|
3469
|
-
_sse.interval = 100;
|
|
3470
|
-
_sse.URL = _buildSSEUrl();
|
|
3468
|
+
/* if (_sse.URL) {
|
|
3469
|
+
_sse.interval = 100;
|
|
3470
|
+
_sse.URL = _buildSSEUrl();
|
|
3471
3471
|
} */
|
|
3472
3472
|
|
|
3473
3473
|
if (!skipCallbackInvocation) {
|
|
@@ -3516,11 +3516,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3516
3516
|
};
|
|
3517
3517
|
}
|
|
3518
3518
|
|
|
3519
|
-
/**
|
|
3520
|
-
* Open web socket. <br>
|
|
3521
|
-
* Automatically use fallback transport if web socket can't be opened.
|
|
3522
|
-
*
|
|
3523
|
-
* @private
|
|
3519
|
+
/**
|
|
3520
|
+
* Open web socket. <br>
|
|
3521
|
+
* Automatically use fallback transport if web socket can't be opened.
|
|
3522
|
+
*
|
|
3523
|
+
* @private
|
|
3524
3524
|
*/
|
|
3525
3525
|
function _executeWebSocket(webSocketOpened) {
|
|
3526
3526
|
|
|
@@ -3860,12 +3860,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3860
3860
|
_invokeCallback();
|
|
3861
3861
|
}
|
|
3862
3862
|
|
|
3863
|
-
/**
|
|
3864
|
-
* Track received message and make sure callbacks/functions are only invoked when the complete message has been received.
|
|
3865
|
-
*
|
|
3866
|
-
* @param message
|
|
3867
|
-
* @param request
|
|
3868
|
-
* @param response
|
|
3863
|
+
/**
|
|
3864
|
+
* Track received message and make sure callbacks/functions are only invoked when the complete message has been received.
|
|
3865
|
+
*
|
|
3866
|
+
* @param message
|
|
3867
|
+
* @param request
|
|
3868
|
+
* @param response
|
|
3869
3869
|
*/
|
|
3870
3870
|
function _trackMessageSize(message, request, response) {
|
|
3871
3871
|
// skip message tracking for binary messages
|
|
@@ -3924,11 +3924,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3924
3924
|
return false;
|
|
3925
3925
|
}
|
|
3926
3926
|
|
|
3927
|
-
/**
|
|
3928
|
-
* Reconnect request with fallback transport. <br>
|
|
3929
|
-
* Used in case websocket can't be opened.
|
|
3930
|
-
*
|
|
3931
|
-
* @private
|
|
3927
|
+
/**
|
|
3928
|
+
* Reconnect request with fallback transport. <br>
|
|
3929
|
+
* Used in case websocket can't be opened.
|
|
3930
|
+
*
|
|
3931
|
+
* @private
|
|
3932
3932
|
*/
|
|
3933
3933
|
function _reconnectWithFallbackTransport(errorMessage) {
|
|
3934
3934
|
atmosphere.util.log(_request.logLevel, [errorMessage]);
|
|
@@ -3957,13 +3957,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3957
3957
|
}
|
|
3958
3958
|
}
|
|
3959
3959
|
|
|
3960
|
-
/**
|
|
3961
|
-
* Get url from request and attach headers to it.
|
|
3962
|
-
*
|
|
3963
|
-
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
3964
|
-
*
|
|
3965
|
-
* @returns {Object} Request object, if undefined, _request object will be used.
|
|
3966
|
-
* @private
|
|
3960
|
+
/**
|
|
3961
|
+
* Get url from request and attach headers to it.
|
|
3962
|
+
*
|
|
3963
|
+
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
3964
|
+
*
|
|
3965
|
+
* @returns {Object} Request object, if undefined, _request object will be used.
|
|
3966
|
+
* @private
|
|
3967
3967
|
*/
|
|
3968
3968
|
function _attachHeaders(request, url) {
|
|
3969
3969
|
var rq = _request;
|
|
@@ -4048,11 +4048,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4048
4048
|
}
|
|
4049
4049
|
}
|
|
4050
4050
|
|
|
4051
|
-
/**
|
|
4052
|
-
* Execute ajax request. <br>
|
|
4053
|
-
*
|
|
4054
|
-
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
4055
|
-
* @private
|
|
4051
|
+
/**
|
|
4052
|
+
* Execute ajax request. <br>
|
|
4053
|
+
*
|
|
4054
|
+
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
4055
|
+
* @private
|
|
4056
4056
|
*/
|
|
4057
4057
|
function _executeRequest(request) {
|
|
4058
4058
|
var rq = _request;
|
|
@@ -4345,12 +4345,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4345
4345
|
_reconnect(ajaxRequest, rq, 500);
|
|
4346
4346
|
}
|
|
4347
4347
|
|
|
4348
|
-
/**
|
|
4349
|
-
* Do ajax request.
|
|
4350
|
-
*
|
|
4351
|
-
* @param ajaxRequest Ajax request.
|
|
4352
|
-
* @param request Request parameters.
|
|
4353
|
-
* @param create If ajax request has to be open.
|
|
4348
|
+
/**
|
|
4349
|
+
* Do ajax request.
|
|
4350
|
+
*
|
|
4351
|
+
* @param ajaxRequest Ajax request.
|
|
4352
|
+
* @param request Request parameters.
|
|
4353
|
+
* @param create If ajax request has to be open.
|
|
4354
4354
|
*/
|
|
4355
4355
|
function _doRequest(ajaxRequest, request, create) {
|
|
4356
4356
|
// Prevent Android to cache request
|
|
@@ -4727,12 +4727,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4727
4727
|
};
|
|
4728
4728
|
}
|
|
4729
4729
|
|
|
4730
|
-
/**
|
|
4731
|
-
* Send message. <br>
|
|
4732
|
-
* Will be automatically dispatch to other connected.
|
|
4733
|
-
*
|
|
4734
|
-
* @param {Object, string} Message to send.
|
|
4735
|
-
* @private
|
|
4730
|
+
/**
|
|
4731
|
+
* Send message. <br>
|
|
4732
|
+
* Will be automatically dispatch to other connected.
|
|
4733
|
+
*
|
|
4734
|
+
* @param {Object, string} Message to send.
|
|
4735
|
+
* @private
|
|
4736
4736
|
*/
|
|
4737
4737
|
function _push(message) {
|
|
4738
4738
|
|
|
@@ -4788,22 +4788,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4788
4788
|
}
|
|
4789
4789
|
}
|
|
4790
4790
|
|
|
4791
|
-
/**
|
|
4792
|
-
* Send a message using currently opened ajax request (using http-streaming or long-polling). <br>
|
|
4793
|
-
*
|
|
4794
|
-
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4795
|
-
* @private
|
|
4791
|
+
/**
|
|
4792
|
+
* Send a message using currently opened ajax request (using http-streaming or long-polling). <br>
|
|
4793
|
+
*
|
|
4794
|
+
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4795
|
+
* @private
|
|
4796
4796
|
*/
|
|
4797
4797
|
function _pushAjaxMessage(message) {
|
|
4798
4798
|
var rq = _getPushRequest(message);
|
|
4799
4799
|
_executeRequest(rq);
|
|
4800
4800
|
}
|
|
4801
4801
|
|
|
4802
|
-
/**
|
|
4803
|
-
* Send a message using currently opened ie streaming (using http-streaming or long-polling). <br>
|
|
4804
|
-
*
|
|
4805
|
-
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4806
|
-
* @private
|
|
4802
|
+
/**
|
|
4803
|
+
* Send a message using currently opened ie streaming (using http-streaming or long-polling). <br>
|
|
4804
|
+
*
|
|
4805
|
+
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4806
|
+
* @private
|
|
4807
4807
|
*/
|
|
4808
4808
|
function _pushIE(message) {
|
|
4809
4809
|
if (_request.enableXDR && atmosphere.util.checkCORSSupport()) {
|
|
@@ -4816,11 +4816,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4816
4816
|
}
|
|
4817
4817
|
}
|
|
4818
4818
|
|
|
4819
|
-
/**
|
|
4820
|
-
* Send a message using jsonp transport. <br>
|
|
4821
|
-
*
|
|
4822
|
-
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4823
|
-
* @private
|
|
4819
|
+
/**
|
|
4820
|
+
* Send a message using jsonp transport. <br>
|
|
4821
|
+
*
|
|
4822
|
+
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4823
|
+
* @private
|
|
4824
4824
|
*/
|
|
4825
4825
|
function _pushJsonp(message) {
|
|
4826
4826
|
_pushAjaxMessage(message);
|
|
@@ -4834,11 +4834,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4834
4834
|
return msg;
|
|
4835
4835
|
}
|
|
4836
4836
|
|
|
4837
|
-
/**
|
|
4838
|
-
* Build request use to push message using method 'POST' <br>. Transport is defined as 'polling' and 'suspend' is set to false.
|
|
4839
|
-
*
|
|
4840
|
-
* @return {Object} Request object use to push message.
|
|
4841
|
-
* @private
|
|
4837
|
+
/**
|
|
4838
|
+
* Build request use to push message using method 'POST' <br>. Transport is defined as 'polling' and 'suspend' is set to false.
|
|
4839
|
+
*
|
|
4840
|
+
* @return {Object} Request object use to push message.
|
|
4841
|
+
* @private
|
|
4842
4842
|
*/
|
|
4843
4843
|
function _getPushRequest(message) {
|
|
4844
4844
|
var msg = _getStringMessage(message);
|
|
@@ -4880,9 +4880,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4880
4880
|
return rq;
|
|
4881
4881
|
}
|
|
4882
4882
|
|
|
4883
|
-
/**
|
|
4884
|
-
* Send a message using currently opened websocket. <br>
|
|
4885
|
-
*
|
|
4883
|
+
/**
|
|
4884
|
+
* Send a message using currently opened websocket. <br>
|
|
4885
|
+
*
|
|
4886
4886
|
*/
|
|
4887
4887
|
function _pushWebSocket(message) {
|
|
4888
4888
|
var msg = atmosphere.util.isBinary(message) ? message : _getStringMessage(message);
|
|
@@ -5032,10 +5032,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5032
5032
|
}
|
|
5033
5033
|
}
|
|
5034
5034
|
|
|
5035
|
-
/**
|
|
5036
|
-
* Invoke request callbacks.
|
|
5037
|
-
*
|
|
5038
|
-
* @private
|
|
5035
|
+
/**
|
|
5036
|
+
* Invoke request callbacks.
|
|
5037
|
+
*
|
|
5038
|
+
* @private
|
|
5039
5039
|
*/
|
|
5040
5040
|
function _invokeCallback() {
|
|
5041
5041
|
var call = function call(index, func) {
|
|
@@ -5874,21 +5874,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
5874
5874
|
|
|
5875
5875
|
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; } }
|
|
5876
5876
|
|
|
5877
|
-
/*
|
|
5878
|
-
Note: Usage of formatters can cause a potential performance penalty
|
|
5877
|
+
/*
|
|
5878
|
+
Note: Usage of formatters can cause a potential performance penalty
|
|
5879
5879
|
*/
|
|
5880
5880
|
|
|
5881
5881
|
/* Keep synchronized with com.quotemedia.streamer.client.fmt.FmtMessage */
|
|
5882
5882
|
|
|
5883
5883
|
var fmt = {};
|
|
5884
5884
|
|
|
5885
|
-
/**
|
|
5886
|
-
* Creates a new message formatter.
|
|
5887
|
-
* @constructor
|
|
5885
|
+
/**
|
|
5886
|
+
* Creates a new message formatter.
|
|
5887
|
+
* @constructor
|
|
5888
5888
|
*/
|
|
5889
5889
|
fmt.Formatter = function () {
|
|
5890
|
-
/**
|
|
5891
|
-
* Formatters by message type.
|
|
5890
|
+
/**
|
|
5891
|
+
* Formatters by message type.
|
|
5892
5892
|
*/
|
|
5893
5893
|
this.formatters = {};
|
|
5894
5894
|
this.formatters[fmt.Formatter._UNKOWNTYPE] = this._fmtunknown;
|
|
@@ -6893,9 +6893,9 @@ fmt.Formatter.prototype._fmtmisseddatasent = function (val) {
|
|
|
6893
6893
|
return s.toString();
|
|
6894
6894
|
};
|
|
6895
6895
|
|
|
6896
|
-
/**
|
|
6897
|
-
* Create a new sting builder.
|
|
6898
|
-
* @constructor
|
|
6896
|
+
/**
|
|
6897
|
+
* Create a new sting builder.
|
|
6898
|
+
* @constructor
|
|
6899
6899
|
*/
|
|
6900
6900
|
fmt.StringBuilder = function () {
|
|
6901
6901
|
this._str = '';
|
|
@@ -7051,6 +7051,10 @@ if (window) {
|
|
|
7051
7051
|
}
|
|
7052
7052
|
|
|
7053
7053
|
_Streamer2["default"].formatting = fmt;
|
|
7054
|
+
/**
|
|
7055
|
+
* Checks for the streamer dataType,
|
|
7056
|
+
* @deprecated Use Streamer.marketDataTypes
|
|
7057
|
+
*/
|
|
7054
7058
|
_Streamer2["default"].dataTypes = _streamerApi.messages.control.MarketdataType;
|
|
7055
7059
|
_Streamer2["default"].dataTypes.get = function (msg) {
|
|
7056
7060
|
var messageType = utils.getMessageName(msg);
|
|
@@ -7061,6 +7065,28 @@ _Streamer2["default"].dataTypes.get = function (msg) {
|
|
|
7061
7065
|
}
|
|
7062
7066
|
};
|
|
7063
7067
|
|
|
7068
|
+
/**
|
|
7069
|
+
* Contains the different types of market data responses that come from the server
|
|
7070
|
+
* Use this instead of Streamer.dataTypes
|
|
7071
|
+
* */
|
|
7072
|
+
_Streamer2["default"].marketDataTypes = _streamerApi.messages.market.MarketDataResponseTypes;
|
|
7073
|
+
_Streamer2["default"].marketDataTypes.get = function (msg) {
|
|
7074
|
+
var messageType = utils.getMessageName(msg);
|
|
7075
|
+
if (_Streamer2["default"].marketDataTypes[messageType]) {
|
|
7076
|
+
return messageType;
|
|
7077
|
+
} else {
|
|
7078
|
+
return "UnknownType[" + messageType + "]";
|
|
7079
|
+
}
|
|
7080
|
+
};
|
|
7081
|
+
|
|
7082
|
+
/**
|
|
7083
|
+
* Contains the different allowed subscription types.
|
|
7084
|
+
* It can be used along with the subscription requests.
|
|
7085
|
+
* For usage example:
|
|
7086
|
+
* @see subscription-example.html
|
|
7087
|
+
* */
|
|
7088
|
+
_Streamer2["default"].subscriptionTypes = _streamerApi.messages.market.SubscriptionTypes;
|
|
7089
|
+
|
|
7064
7090
|
module.exports = _Streamer2["default"];
|
|
7065
7091
|
}).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/index.js","/lib")
|
|
7066
7092
|
},{"./Streamer.js":7,"./formatting.js":13,"./polyfills":18,"./streamer-api.js":96,"./streamer-utils.js":98,"_process":119,"buffer":109,"json3":117,"timers":140}],16:[function(require,module,exports){
|
|
@@ -7130,16 +7156,16 @@ function asLogger(logger) {
|
|
|
7130
7156
|
exports.__esModule = true;
|
|
7131
7157
|
/* @see http://usejsdoc.org */
|
|
7132
7158
|
|
|
7133
|
-
/**
|
|
7134
|
-
* Streamer api namespace.
|
|
7135
|
-
* @namespace
|
|
7159
|
+
/**
|
|
7160
|
+
* Streamer api namespace.
|
|
7161
|
+
* @namespace
|
|
7136
7162
|
*/
|
|
7137
7163
|
|
|
7138
7164
|
/* ****************************************************************************************************************** */
|
|
7139
7165
|
|
|
7140
|
-
/**
|
|
7141
|
-
* Supported encodings.
|
|
7142
|
-
* @enum
|
|
7166
|
+
/**
|
|
7167
|
+
* Supported encodings.
|
|
7168
|
+
* @enum
|
|
7143
7169
|
*/
|
|
7144
7170
|
var Encodings = exports.Encodings = {
|
|
7145
7171
|
UNDEFINED: "undefined",
|
|
@@ -7152,9 +7178,9 @@ var Encodings = exports.Encodings = {
|
|
|
7152
7178
|
BASE64_CHAR: "B"
|
|
7153
7179
|
};
|
|
7154
7180
|
|
|
7155
|
-
/**
|
|
7156
|
-
* Supported mime types.
|
|
7157
|
-
* @enum
|
|
7181
|
+
/**
|
|
7182
|
+
* Supported mime types.
|
|
7183
|
+
* @enum
|
|
7158
7184
|
*/
|
|
7159
7185
|
var MimeTypes = exports.MimeTypes = {
|
|
7160
7186
|
UNDEFINED: "undefined",
|
|
@@ -7170,12 +7196,12 @@ var MimeTypes = exports.MimeTypes = {
|
|
|
7170
7196
|
QITCH_CHAR: "I"
|
|
7171
7197
|
};
|
|
7172
7198
|
|
|
7173
|
-
/**
|
|
7174
|
-
* Returns the with '0' left padded string representation of the number.
|
|
7175
|
-
* @param num {number} the number to create string for
|
|
7176
|
-
* @param len {number} the target length of the string
|
|
7177
|
-
* @return {string} the with '0' left padded string
|
|
7178
|
-
* @throws Will throw an error if number doesn't fit within target length
|
|
7199
|
+
/**
|
|
7200
|
+
* Returns the with '0' left padded string representation of the number.
|
|
7201
|
+
* @param num {number} the number to create string for
|
|
7202
|
+
* @param len {number} the target length of the string
|
|
7203
|
+
* @return {string} the with '0' left padded string
|
|
7204
|
+
* @throws Will throw an error if number doesn't fit within target length
|
|
7179
7205
|
*/
|
|
7180
7206
|
var lpad = exports.lpad = function lpad(num, len) {
|
|
7181
7207
|
var _numstr = num.toString();
|
|
@@ -7501,13 +7527,13 @@ var BIG_INT_FORTY = _jsbi2["default"].BigInt(40);
|
|
|
7501
7527
|
var BIG_INT_FORTY_EIGHT = _jsbi2["default"].BigInt(48);
|
|
7502
7528
|
var BIG_INT_FIFTY_SIX = _jsbi2["default"].BigInt(56);
|
|
7503
7529
|
|
|
7504
|
-
/*
|
|
7505
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
7530
|
+
/*
|
|
7531
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
7506
7532
|
*/
|
|
7507
|
-
/**
|
|
7508
|
-
* Translates bytes into numbers and vice versa.
|
|
7509
|
-
* Use multiplication instead of shifts because in javascript shifts are slower than multiplication
|
|
7510
|
-
* (under the hood shifts call ToInt32 which is slower than ToNumber in multiplication).
|
|
7533
|
+
/**
|
|
7534
|
+
* Translates bytes into numbers and vice versa.
|
|
7535
|
+
* Use multiplication instead of shifts because in javascript shifts are slower than multiplication
|
|
7536
|
+
* (under the hood shifts call ToInt32 which is slower than ToNumber in multiplication).
|
|
7511
7537
|
*/
|
|
7512
7538
|
|
|
7513
7539
|
var Bytes = function () {
|
|
@@ -7521,11 +7547,11 @@ var Bytes = function () {
|
|
|
7521
7547
|
return dst;
|
|
7522
7548
|
};
|
|
7523
7549
|
|
|
7524
|
-
/**
|
|
7525
|
-
* Gets numeric value that is in range of short (Int16) from byte array
|
|
7526
|
-
* @param src The source array
|
|
7527
|
-
* @param offset The offset
|
|
7528
|
-
* @returns {number} Resulting short value
|
|
7550
|
+
/**
|
|
7551
|
+
* Gets numeric value that is in range of short (Int16) from byte array
|
|
7552
|
+
* @param src The source array
|
|
7553
|
+
* @param offset The offset
|
|
7554
|
+
* @returns {number} Resulting short value
|
|
7529
7555
|
*/
|
|
7530
7556
|
|
|
7531
7557
|
|
|
@@ -7542,11 +7568,11 @@ var Bytes = function () {
|
|
|
7542
7568
|
return dst;
|
|
7543
7569
|
};
|
|
7544
7570
|
|
|
7545
|
-
/**
|
|
7546
|
-
* Gets numeric value that is in range of integer (Int32) from byte array
|
|
7547
|
-
* @param src The source array
|
|
7548
|
-
* @param offset The offset
|
|
7549
|
-
* @returns {number} Resulting int value
|
|
7571
|
+
/**
|
|
7572
|
+
* Gets numeric value that is in range of integer (Int32) from byte array
|
|
7573
|
+
* @param src The source array
|
|
7574
|
+
* @param offset The offset
|
|
7575
|
+
* @returns {number} Resulting int value
|
|
7550
7576
|
*/
|
|
7551
7577
|
|
|
7552
7578
|
|
|
@@ -7557,11 +7583,11 @@ var Bytes = function () {
|
|
|
7557
7583
|
src[offset + 3] & 0xff;
|
|
7558
7584
|
};
|
|
7559
7585
|
|
|
7560
|
-
/**
|
|
7561
|
-
* Gets numeric value that is in range of long (Int64) from byte array.
|
|
7562
|
-
* @param src The source array
|
|
7563
|
-
* @param offset The offset
|
|
7564
|
-
* @returns {JSBI} Resulting string representation of long.
|
|
7586
|
+
/**
|
|
7587
|
+
* Gets numeric value that is in range of long (Int64) from byte array.
|
|
7588
|
+
* @param src The source array
|
|
7589
|
+
* @param offset The offset
|
|
7590
|
+
* @returns {JSBI} Resulting string representation of long.
|
|
7565
7591
|
*/
|
|
7566
7592
|
|
|
7567
7593
|
|
|
@@ -7603,8 +7629,8 @@ var UShort = function () {
|
|
|
7603
7629
|
return UShort;
|
|
7604
7630
|
}();
|
|
7605
7631
|
|
|
7606
|
-
/**
|
|
7607
|
-
* Length in bytes
|
|
7632
|
+
/**
|
|
7633
|
+
* Length in bytes
|
|
7608
7634
|
*/
|
|
7609
7635
|
|
|
7610
7636
|
|
|
@@ -7634,8 +7660,8 @@ var UByte = function () {
|
|
|
7634
7660
|
return UByte;
|
|
7635
7661
|
}();
|
|
7636
7662
|
|
|
7637
|
-
/**
|
|
7638
|
-
* Length in bytes
|
|
7663
|
+
/**
|
|
7664
|
+
* Length in bytes
|
|
7639
7665
|
*/
|
|
7640
7666
|
|
|
7641
7667
|
|
|
@@ -7665,8 +7691,8 @@ var UInt = function () {
|
|
|
7665
7691
|
return UInt;
|
|
7666
7692
|
}();
|
|
7667
7693
|
|
|
7668
|
-
/**
|
|
7669
|
-
* Length in bytes
|
|
7694
|
+
/**
|
|
7695
|
+
* Length in bytes
|
|
7670
7696
|
*/
|
|
7671
7697
|
|
|
7672
7698
|
|
|
@@ -7912,24 +7938,24 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
7912
7938
|
|
|
7913
7939
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7914
7940
|
|
|
7915
|
-
/*
|
|
7916
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
7941
|
+
/*
|
|
7942
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
7917
7943
|
*/
|
|
7918
7944
|
var Qitch = function () {
|
|
7919
7945
|
function Qitch() {
|
|
7920
7946
|
_classCallCheck(this, Qitch);
|
|
7921
7947
|
}
|
|
7922
7948
|
|
|
7923
|
-
/**
|
|
7924
|
-
* Copies an array from the specified source array, beginning at sourceIndex,
|
|
7925
|
-
* to the specified position of the destination array.
|
|
7926
|
-
* The number of components copied is equal to the length argument. The elements are copied
|
|
7927
|
-
* into a destination array starting from destinationIndex.
|
|
7928
|
-
* @param sourceArray The source array
|
|
7929
|
-
* @param sourceIndex The starting position in the source array.
|
|
7930
|
-
* @param destinationArray The destination array
|
|
7931
|
-
* @param destinationIndex The starting position in the destination array.
|
|
7932
|
-
* @param length The number of array elements to be copied.
|
|
7949
|
+
/**
|
|
7950
|
+
* Copies an array from the specified source array, beginning at sourceIndex,
|
|
7951
|
+
* to the specified position of the destination array.
|
|
7952
|
+
* The number of components copied is equal to the length argument. The elements are copied
|
|
7953
|
+
* into a destination array starting from destinationIndex.
|
|
7954
|
+
* @param sourceArray The source array
|
|
7955
|
+
* @param sourceIndex The starting position in the source array.
|
|
7956
|
+
* @param destinationArray The destination array
|
|
7957
|
+
* @param destinationIndex The starting position in the destination array.
|
|
7958
|
+
* @param length The number of array elements to be copied.
|
|
7933
7959
|
*/
|
|
7934
7960
|
Qitch.copyArray = function copyArray(sourceArray, sourceIndex, destinationArray, destinationIndex, length) {
|
|
7935
7961
|
if (length === 0) {
|
|
@@ -7956,12 +7982,12 @@ var Qitch = function () {
|
|
|
7956
7982
|
}
|
|
7957
7983
|
};
|
|
7958
7984
|
|
|
7959
|
-
/**
|
|
7960
|
-
* Gets boolean value from source byte array at specified position.
|
|
7961
|
-
* @param src The source array.
|
|
7962
|
-
* @param offset The offset.
|
|
7963
|
-
* @returns {boolean} Returns obtained value.
|
|
7964
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
7985
|
+
/**
|
|
7986
|
+
* Gets boolean value from source byte array at specified position.
|
|
7987
|
+
* @param src The source array.
|
|
7988
|
+
* @param offset The offset.
|
|
7989
|
+
* @returns {boolean} Returns obtained value.
|
|
7990
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
7965
7991
|
*/
|
|
7966
7992
|
|
|
7967
7993
|
|
|
@@ -7972,13 +7998,13 @@ var Qitch = function () {
|
|
|
7972
7998
|
throw "Invalid source. Expected: Int8Array";
|
|
7973
7999
|
};
|
|
7974
8000
|
|
|
7975
|
-
/**
|
|
7976
|
-
* Puts boolean value into destination array.
|
|
7977
|
-
* @param dst The destination array
|
|
7978
|
-
* @param offset The offset.
|
|
7979
|
-
* @param val Boolean value.
|
|
7980
|
-
* @returns {Int8Array} destination array.
|
|
7981
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8001
|
+
/**
|
|
8002
|
+
* Puts boolean value into destination array.
|
|
8003
|
+
* @param dst The destination array
|
|
8004
|
+
* @param offset The offset.
|
|
8005
|
+
* @param val Boolean value.
|
|
8006
|
+
* @returns {Int8Array} destination array.
|
|
8007
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
7982
8008
|
*/
|
|
7983
8009
|
|
|
7984
8010
|
|
|
@@ -7990,13 +8016,13 @@ var Qitch = function () {
|
|
|
7990
8016
|
throw "Invalid destination. Expected: Int8Array";
|
|
7991
8017
|
};
|
|
7992
8018
|
|
|
7993
|
-
/**
|
|
7994
|
-
* Puts byte value into destination array.
|
|
7995
|
-
* @param dst The destination array
|
|
7996
|
-
* @param offset The offset.
|
|
7997
|
-
* @param val Byte value.
|
|
7998
|
-
* @returns {Int8Array} destination array.
|
|
7999
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8019
|
+
/**
|
|
8020
|
+
* Puts byte value into destination array.
|
|
8021
|
+
* @param dst The destination array
|
|
8022
|
+
* @param offset The offset.
|
|
8023
|
+
* @param val Byte value.
|
|
8024
|
+
* @returns {Int8Array} destination array.
|
|
8025
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8000
8026
|
*/
|
|
8001
8027
|
|
|
8002
8028
|
|
|
@@ -8008,12 +8034,12 @@ var Qitch = function () {
|
|
|
8008
8034
|
throw "Invalid destination. Expected: Int8Array";
|
|
8009
8035
|
};
|
|
8010
8036
|
|
|
8011
|
-
/**
|
|
8012
|
-
* Gets integer (int32) value from source byte array at specified position.
|
|
8013
|
-
* @param src The source array.
|
|
8014
|
-
* @param offset The offset.
|
|
8015
|
-
* @returns {number} Returns obtained value.
|
|
8016
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8037
|
+
/**
|
|
8038
|
+
* Gets integer (int32) value from source byte array at specified position.
|
|
8039
|
+
* @param src The source array.
|
|
8040
|
+
* @param offset The offset.
|
|
8041
|
+
* @returns {number} Returns obtained value.
|
|
8042
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8017
8043
|
*/
|
|
8018
8044
|
|
|
8019
8045
|
|
|
@@ -8024,13 +8050,13 @@ var Qitch = function () {
|
|
|
8024
8050
|
throw "Invalid source. Expected: Int8Array";
|
|
8025
8051
|
};
|
|
8026
8052
|
|
|
8027
|
-
/**
|
|
8028
|
-
* Sets integer (int32) value to destination array
|
|
8029
|
-
* @param dst destination array
|
|
8030
|
-
* @param offset offset
|
|
8031
|
-
* @param val integer value
|
|
8032
|
-
* @returns {Int8Array} destination array.
|
|
8033
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8053
|
+
/**
|
|
8054
|
+
* Sets integer (int32) value to destination array
|
|
8055
|
+
* @param dst destination array
|
|
8056
|
+
* @param offset offset
|
|
8057
|
+
* @param val integer value
|
|
8058
|
+
* @returns {Int8Array} destination array.
|
|
8059
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8034
8060
|
*/
|
|
8035
8061
|
|
|
8036
8062
|
|
|
@@ -8041,12 +8067,12 @@ var Qitch = function () {
|
|
|
8041
8067
|
throw "Invalid destination. Expected: Int8Array";
|
|
8042
8068
|
};
|
|
8043
8069
|
|
|
8044
|
-
/**
|
|
8045
|
-
* Gets unsigned integer (uint32) value from source byte array at specified position.
|
|
8046
|
-
* @param src The source array.
|
|
8047
|
-
* @param offset The offset.
|
|
8048
|
-
* @returns {number} Returns obtained value.
|
|
8049
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8070
|
+
/**
|
|
8071
|
+
* Gets unsigned integer (uint32) value from source byte array at specified position.
|
|
8072
|
+
* @param src The source array.
|
|
8073
|
+
* @param offset The offset.
|
|
8074
|
+
* @returns {number} Returns obtained value.
|
|
8075
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8050
8076
|
*/
|
|
8051
8077
|
|
|
8052
8078
|
|
|
@@ -8057,13 +8083,13 @@ var Qitch = function () {
|
|
|
8057
8083
|
throw "Invalid source. Expected: Int8Array";
|
|
8058
8084
|
};
|
|
8059
8085
|
|
|
8060
|
-
/**
|
|
8061
|
-
* Sets unsigned integer (uint32) value to destination array
|
|
8062
|
-
* @param dst destination array
|
|
8063
|
-
* @param offset offset
|
|
8064
|
-
* @param val unsigned integer value
|
|
8065
|
-
* @returns {Int8Array} destination array.
|
|
8066
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8086
|
+
/**
|
|
8087
|
+
* Sets unsigned integer (uint32) value to destination array
|
|
8088
|
+
* @param dst destination array
|
|
8089
|
+
* @param offset offset
|
|
8090
|
+
* @param val unsigned integer value
|
|
8091
|
+
* @returns {Int8Array} destination array.
|
|
8092
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8067
8093
|
*/
|
|
8068
8094
|
|
|
8069
8095
|
|
|
@@ -8074,13 +8100,13 @@ var Qitch = function () {
|
|
|
8074
8100
|
throw "Invalid destination. Expected: Int8Array";
|
|
8075
8101
|
};
|
|
8076
8102
|
|
|
8077
|
-
/**
|
|
8078
|
-
* Gets single character from source byte array at specified position.
|
|
8079
|
-
* @param src The source array.
|
|
8080
|
-
* @param offset The offset.
|
|
8081
|
-
* @returns {null|String} Returns null if offset is out of array index range or
|
|
8082
|
-
* value is equal to {@link Constants#ASCII_NULL}, otherwise returns the obtained value.
|
|
8083
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8103
|
+
/**
|
|
8104
|
+
* Gets single character from source byte array at specified position.
|
|
8105
|
+
* @param src The source array.
|
|
8106
|
+
* @param offset The offset.
|
|
8107
|
+
* @returns {null|String} Returns null if offset is out of array index range or
|
|
8108
|
+
* value is equal to {@link Constants#ASCII_NULL}, otherwise returns the obtained value.
|
|
8109
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8084
8110
|
*/
|
|
8085
8111
|
|
|
8086
8112
|
|
|
@@ -8095,13 +8121,13 @@ var Qitch = function () {
|
|
|
8095
8121
|
throw "Invalid source. Expected: Int8Array";
|
|
8096
8122
|
};
|
|
8097
8123
|
|
|
8098
|
-
/**
|
|
8099
|
-
* Gets long (int64) value from source byte array at specified position. Since javascript doesn't support long values,
|
|
8100
|
-
* it is returned as {@link JSBI.BigInt}.
|
|
8101
|
-
* @param src The source array.
|
|
8102
|
-
* @param offset The offset.
|
|
8103
|
-
* @returns {JSBI} Returns obtained value.
|
|
8104
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8124
|
+
/**
|
|
8125
|
+
* Gets long (int64) value from source byte array at specified position. Since javascript doesn't support long values,
|
|
8126
|
+
* it is returned as {@link JSBI.BigInt}.
|
|
8127
|
+
* @param src The source array.
|
|
8128
|
+
* @param offset The offset.
|
|
8129
|
+
* @returns {JSBI} Returns obtained value.
|
|
8130
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8105
8131
|
*/
|
|
8106
8132
|
|
|
8107
8133
|
|
|
@@ -8112,14 +8138,14 @@ var Qitch = function () {
|
|
|
8112
8138
|
throw "Invalid source. Expected: Int8Array";
|
|
8113
8139
|
};
|
|
8114
8140
|
|
|
8115
|
-
/**
|
|
8116
|
-
* Gets double value from byte source array at specified position.
|
|
8117
|
-
* In QITCH double values are sent as longs and then divided by {@link Constants#PRICE_DIVISOR}. Since javascript
|
|
8118
|
-
* doesn't support long values, the result is returned as {@link BigNumber}.
|
|
8119
|
-
* @param src The source array.
|
|
8120
|
-
* @param offset The offset.
|
|
8121
|
-
* @returns {BigNumber} Returns obtained value.
|
|
8122
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8141
|
+
/**
|
|
8142
|
+
* Gets double value from byte source array at specified position.
|
|
8143
|
+
* In QITCH double values are sent as longs and then divided by {@link Constants#PRICE_DIVISOR}. Since javascript
|
|
8144
|
+
* doesn't support long values, the result is returned as {@link BigNumber}.
|
|
8145
|
+
* @param src The source array.
|
|
8146
|
+
* @param offset The offset.
|
|
8147
|
+
* @returns {BigNumber} Returns obtained value.
|
|
8148
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8123
8149
|
*/
|
|
8124
8150
|
|
|
8125
8151
|
|
|
@@ -8130,12 +8156,12 @@ var Qitch = function () {
|
|
|
8130
8156
|
throw "Invalid source. Expected: Int8Array";
|
|
8131
8157
|
};
|
|
8132
8158
|
|
|
8133
|
-
/**
|
|
8134
|
-
* Gets signed byte from source byte array at specified position.
|
|
8135
|
-
* @param src The source array.
|
|
8136
|
-
* @param offset The offset.
|
|
8137
|
-
* @returns {number} Returns obtained value.
|
|
8138
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8159
|
+
/**
|
|
8160
|
+
* Gets signed byte from source byte array at specified position.
|
|
8161
|
+
* @param src The source array.
|
|
8162
|
+
* @param offset The offset.
|
|
8163
|
+
* @returns {number} Returns obtained value.
|
|
8164
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8139
8165
|
*/
|
|
8140
8166
|
|
|
8141
8167
|
|
|
@@ -8146,14 +8172,14 @@ var Qitch = function () {
|
|
|
8146
8172
|
throw "Invalid source. Expected: Int8Array";
|
|
8147
8173
|
};
|
|
8148
8174
|
|
|
8149
|
-
/**
|
|
8150
|
-
* Gets timestamp value from source byte array at specified offset. Since javascript doesn't support long values,
|
|
8151
|
-
* it is returned as {@link JSBI.BigInt}
|
|
8152
|
-
* @param src The source array.
|
|
8153
|
-
* @param offset The offset.
|
|
8154
|
-
* @returns {null|JSBI} Returns null if value is equal to {@link Constants#TIMESTAMP_NULL}
|
|
8155
|
-
* otherwise returns the obtained value.
|
|
8156
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8175
|
+
/**
|
|
8176
|
+
* Gets timestamp value from source byte array at specified offset. Since javascript doesn't support long values,
|
|
8177
|
+
* it is returned as {@link JSBI.BigInt}
|
|
8178
|
+
* @param src The source array.
|
|
8179
|
+
* @param offset The offset.
|
|
8180
|
+
* @returns {null|JSBI} Returns null if value is equal to {@link Constants#TIMESTAMP_NULL}
|
|
8181
|
+
* otherwise returns the obtained value.
|
|
8182
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8157
8183
|
*/
|
|
8158
8184
|
|
|
8159
8185
|
|
|
@@ -8165,12 +8191,12 @@ var Qitch = function () {
|
|
|
8165
8191
|
throw "Invalid source. Expected: Int8Array";
|
|
8166
8192
|
};
|
|
8167
8193
|
|
|
8168
|
-
/**
|
|
8169
|
-
* Gets locate code value from source byte array at specified offset.
|
|
8170
|
-
* @param src The source array.
|
|
8171
|
-
* @param offset The offset.
|
|
8172
|
-
* @returns {number} Returns obtained value.
|
|
8173
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8194
|
+
/**
|
|
8195
|
+
* Gets locate code value from source byte array at specified offset.
|
|
8196
|
+
* @param src The source array.
|
|
8197
|
+
* @param offset The offset.
|
|
8198
|
+
* @returns {number} Returns obtained value.
|
|
8199
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8174
8200
|
*/
|
|
8175
8201
|
|
|
8176
8202
|
|
|
@@ -8181,13 +8207,13 @@ var Qitch = function () {
|
|
|
8181
8207
|
throw "Invalid source. Expected: Int8Array";
|
|
8182
8208
|
};
|
|
8183
8209
|
|
|
8184
|
-
/**
|
|
8185
|
-
* Gets symbol value from source byte array at specified offset.
|
|
8186
|
-
* @param src The source array.
|
|
8187
|
-
* @param offset The offset.
|
|
8188
|
-
* @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),
|
|
8189
|
-
* otherwise returns obtained value.
|
|
8190
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8210
|
+
/**
|
|
8211
|
+
* Gets symbol value from source byte array at specified offset.
|
|
8212
|
+
* @param src The source array.
|
|
8213
|
+
* @param offset The offset.
|
|
8214
|
+
* @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),
|
|
8215
|
+
* otherwise returns obtained value.
|
|
8216
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8191
8217
|
*/
|
|
8192
8218
|
|
|
8193
8219
|
|
|
@@ -8201,13 +8227,13 @@ var Qitch = function () {
|
|
|
8201
8227
|
throw "Invalid source. Expected: Int8Array";
|
|
8202
8228
|
};
|
|
8203
8229
|
|
|
8204
|
-
/**
|
|
8205
|
-
* Puts symbol value into destination array.
|
|
8206
|
-
* @param dst The destination array.
|
|
8207
|
-
* @param offset The offset.
|
|
8208
|
-
* @param val Symbol value.
|
|
8209
|
-
* @returns {Int8Array} destination array.
|
|
8210
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8230
|
+
/**
|
|
8231
|
+
* Puts symbol value into destination array.
|
|
8232
|
+
* @param dst The destination array.
|
|
8233
|
+
* @param offset The offset.
|
|
8234
|
+
* @param val Symbol value.
|
|
8235
|
+
* @returns {Int8Array} destination array.
|
|
8236
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8211
8237
|
*/
|
|
8212
8238
|
|
|
8213
8239
|
|
|
@@ -8218,13 +8244,13 @@ var Qitch = function () {
|
|
|
8218
8244
|
throw "Invalid destination. Expected: Int8Array";
|
|
8219
8245
|
};
|
|
8220
8246
|
|
|
8221
|
-
/**
|
|
8222
|
-
* Gets excode value from source byte array at specified offset.
|
|
8223
|
-
* @param src The source array.
|
|
8224
|
-
* @param offset The offset.
|
|
8225
|
-
* @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),
|
|
8226
|
-
* otherwise returns obtained value.
|
|
8227
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8247
|
+
/**
|
|
8248
|
+
* Gets excode value from source byte array at specified offset.
|
|
8249
|
+
* @param src The source array.
|
|
8250
|
+
* @param offset The offset.
|
|
8251
|
+
* @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),
|
|
8252
|
+
* otherwise returns obtained value.
|
|
8253
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8228
8254
|
*/
|
|
8229
8255
|
|
|
8230
8256
|
|
|
@@ -8238,13 +8264,13 @@ var Qitch = function () {
|
|
|
8238
8264
|
throw "Invalid source. Expected: Int8Array";
|
|
8239
8265
|
};
|
|
8240
8266
|
|
|
8241
|
-
/**
|
|
8242
|
-
* Gets mmid value from source byte array at specified offset.
|
|
8243
|
-
* @param src The source array.
|
|
8244
|
-
* @param offset The offset.
|
|
8245
|
-
* @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),
|
|
8246
|
-
* otherwise returns obtained value.
|
|
8247
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8267
|
+
/**
|
|
8268
|
+
* Gets mmid value from source byte array at specified offset.
|
|
8269
|
+
* @param src The source array.
|
|
8270
|
+
* @param offset The offset.
|
|
8271
|
+
* @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),
|
|
8272
|
+
* otherwise returns obtained value.
|
|
8273
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8248
8274
|
*/
|
|
8249
8275
|
|
|
8250
8276
|
|
|
@@ -8258,13 +8284,13 @@ var Qitch = function () {
|
|
|
8258
8284
|
throw "Invalid source. Expected: Int8Array";
|
|
8259
8285
|
};
|
|
8260
8286
|
|
|
8261
|
-
/**
|
|
8262
|
-
* Gets numeric order id 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 {JSBI} Returns obtained value.
|
|
8267
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8287
|
+
/**
|
|
8288
|
+
* Gets numeric order id value from source byte array at specified offset. Since javascript doesn't support long values,
|
|
8289
|
+
* it is returned as {@link JSBI.BigInt}
|
|
8290
|
+
* @param src The source array.
|
|
8291
|
+
* @param offset The offset.
|
|
8292
|
+
* @returns {JSBI} Returns obtained value.
|
|
8293
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8268
8294
|
*/
|
|
8269
8295
|
|
|
8270
8296
|
|
|
@@ -8275,13 +8301,13 @@ var Qitch = function () {
|
|
|
8275
8301
|
throw "Invalid source. Expected: Int8Array";
|
|
8276
8302
|
};
|
|
8277
8303
|
|
|
8278
|
-
/**
|
|
8279
|
-
* Gets order id as string from source byte array at specified offset.
|
|
8280
|
-
* @param src The source array.
|
|
8281
|
-
* @param offset The offset.
|
|
8282
|
-
* @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),
|
|
8283
|
-
* otherwise returns obtained value.
|
|
8284
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8304
|
+
/**
|
|
8305
|
+
* Gets order id as string from source byte array at specified offset.
|
|
8306
|
+
* @param src The source array.
|
|
8307
|
+
* @param offset The offset.
|
|
8308
|
+
* @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),
|
|
8309
|
+
* otherwise returns obtained value.
|
|
8310
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8285
8311
|
*/
|
|
8286
8312
|
|
|
8287
8313
|
|
|
@@ -8295,13 +8321,13 @@ var Qitch = function () {
|
|
|
8295
8321
|
throw "Invalid source. Expected: Int8Array";
|
|
8296
8322
|
};
|
|
8297
8323
|
|
|
8298
|
-
/**
|
|
8299
|
-
* Gets currency id 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 + currency id 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}
|
|
8324
|
+
/**
|
|
8325
|
+
* Gets currency id from source byte array at specified offset.
|
|
8326
|
+
* @param src The source array.
|
|
8327
|
+
* @param offset The offset.
|
|
8328
|
+
* @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),
|
|
8329
|
+
* otherwise returns obtained value.
|
|
8330
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8305
8331
|
*/
|
|
8306
8332
|
|
|
8307
8333
|
|
|
@@ -8315,13 +8341,13 @@ var Qitch = function () {
|
|
|
8315
8341
|
throw "Invalid source. Expected: Int8Array";
|
|
8316
8342
|
};
|
|
8317
8343
|
|
|
8318
|
-
/**
|
|
8319
|
-
* Gets tick from source byte array at specified offset.
|
|
8320
|
-
* @param src The source array.
|
|
8321
|
-
* @param offset The offset.
|
|
8322
|
-
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8323
|
-
* otherwise character at specified offset is returned.
|
|
8324
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8344
|
+
/**
|
|
8345
|
+
* Gets tick from source byte array at specified offset.
|
|
8346
|
+
* @param src The source array.
|
|
8347
|
+
* @param offset The offset.
|
|
8348
|
+
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8349
|
+
* otherwise character at specified offset is returned.
|
|
8350
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8325
8351
|
*/
|
|
8326
8352
|
|
|
8327
8353
|
|
|
@@ -8335,13 +8361,13 @@ var Qitch = function () {
|
|
|
8335
8361
|
throw "Invalid source. Expected: Int8Array";
|
|
8336
8362
|
};
|
|
8337
8363
|
|
|
8338
|
-
/**
|
|
8339
|
-
* Gets order change type from source byte array at specified offset.
|
|
8340
|
-
* @param src The source array.
|
|
8341
|
-
* @param offset The offset.
|
|
8342
|
-
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8343
|
-
* otherwise {@link messages.market.OrderChangeType} value that corresponds to the character at specified offset is returned.
|
|
8344
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8364
|
+
/**
|
|
8365
|
+
* Gets order change type from source byte array at specified offset.
|
|
8366
|
+
* @param src The source array.
|
|
8367
|
+
* @param offset The offset.
|
|
8368
|
+
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8369
|
+
* otherwise {@link messages.market.OrderChangeType} value that corresponds to the character at specified offset is returned.
|
|
8370
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8345
8371
|
*/
|
|
8346
8372
|
|
|
8347
8373
|
|
|
@@ -8359,13 +8385,13 @@ var Qitch = function () {
|
|
|
8359
8385
|
throw "Invalid source. Expected: Int8Array";
|
|
8360
8386
|
};
|
|
8361
8387
|
|
|
8362
|
-
/**
|
|
8363
|
-
* Gets order side from source byte array at specified offset.
|
|
8364
|
-
* @param src The source array.
|
|
8365
|
-
* @param offset The offset.
|
|
8366
|
-
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8367
|
-
* otherwise character at specified offset is returned.
|
|
8368
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8388
|
+
/**
|
|
8389
|
+
* Gets order side from source byte array at specified offset.
|
|
8390
|
+
* @param src The source array.
|
|
8391
|
+
* @param offset The offset.
|
|
8392
|
+
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8393
|
+
* otherwise character at specified offset is returned.
|
|
8394
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8369
8395
|
*/
|
|
8370
8396
|
|
|
8371
8397
|
|
|
@@ -8383,13 +8409,13 @@ var Qitch = function () {
|
|
|
8383
8409
|
throw "Invalid source. Expected: Int8Array";
|
|
8384
8410
|
};
|
|
8385
8411
|
|
|
8386
|
-
/**
|
|
8387
|
-
* Gets range indicator from source byte array at specified offset.
|
|
8388
|
-
* @param src The source array.
|
|
8389
|
-
* @param offset The offset.
|
|
8390
|
-
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8391
|
-
* otherwise character at specified offset is returned.
|
|
8392
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8412
|
+
/**
|
|
8413
|
+
* Gets range indicator from source byte array at specified offset.
|
|
8414
|
+
* @param src The source array.
|
|
8415
|
+
* @param offset The offset.
|
|
8416
|
+
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8417
|
+
* otherwise character at specified offset is returned.
|
|
8418
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8393
8419
|
*/
|
|
8394
8420
|
|
|
8395
8421
|
|
|
@@ -8403,13 +8429,13 @@ var Qitch = function () {
|
|
|
8403
8429
|
throw "Invalid source. Expected: Int8Array";
|
|
8404
8430
|
};
|
|
8405
8431
|
|
|
8406
|
-
/**
|
|
8407
|
-
* Gets instrument type from source byte array at specified offset.
|
|
8408
|
-
* @param src The source array.
|
|
8409
|
-
* @param offset The offset.
|
|
8410
|
-
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8411
|
-
* otherwise {@link messages.market.InstrumentType} value that corresponds to the byte at specified offset is returned.
|
|
8412
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8432
|
+
/**
|
|
8433
|
+
* Gets instrument type from source byte array at specified offset.
|
|
8434
|
+
* @param src The source array.
|
|
8435
|
+
* @param offset The offset.
|
|
8436
|
+
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8437
|
+
* otherwise {@link messages.market.InstrumentType} value that corresponds to the byte at specified offset is returned.
|
|
8438
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8413
8439
|
*/
|
|
8414
8440
|
|
|
8415
8441
|
|
|
@@ -8423,13 +8449,13 @@ var Qitch = function () {
|
|
|
8423
8449
|
throw "Invalid source. Expected: Int8Array";
|
|
8424
8450
|
};
|
|
8425
8451
|
|
|
8426
|
-
/**
|
|
8427
|
-
* Gets imbalance type from source byte array at specified offset.
|
|
8428
|
-
* @param src The source array.
|
|
8429
|
-
* @param offset The offset.
|
|
8430
|
-
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8431
|
-
* otherwise {@link messages.market.ImbalanceType} value that corresponds to the byte at specified offset is returned.
|
|
8432
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8452
|
+
/**
|
|
8453
|
+
* Gets imbalance type from source byte array at specified offset.
|
|
8454
|
+
* @param src The source array.
|
|
8455
|
+
* @param offset The offset.
|
|
8456
|
+
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8457
|
+
* otherwise {@link messages.market.ImbalanceType} value that corresponds to the byte at specified offset is returned.
|
|
8458
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8433
8459
|
*/
|
|
8434
8460
|
|
|
8435
8461
|
|
|
@@ -8443,13 +8469,13 @@ var Qitch = function () {
|
|
|
8443
8469
|
throw "Invalid source. Expected: Int8Array";
|
|
8444
8470
|
};
|
|
8445
8471
|
|
|
8446
|
-
/**
|
|
8447
|
-
* Gets order refernece from source byte array at specified offset.
|
|
8448
|
-
* @param src The source array.
|
|
8449
|
-
* @param offset The offset.
|
|
8450
|
-
* @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),
|
|
8451
|
-
* otherwise returns obtained value.
|
|
8452
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8472
|
+
/**
|
|
8473
|
+
* Gets order refernece from source byte array at specified offset.
|
|
8474
|
+
* @param src The source array.
|
|
8475
|
+
* @param offset The offset.
|
|
8476
|
+
* @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),
|
|
8477
|
+
* otherwise returns obtained value.
|
|
8478
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8453
8479
|
*/
|
|
8454
8480
|
|
|
8455
8481
|
|
|
@@ -8463,13 +8489,13 @@ var Qitch = function () {
|
|
|
8463
8489
|
throw "Invalid source. Expected: Int8Array";
|
|
8464
8490
|
};
|
|
8465
8491
|
|
|
8466
|
-
/**
|
|
8467
|
-
* Gets response reason from source byte array at specified offset.
|
|
8468
|
-
* @param src The source array.
|
|
8469
|
-
* @param offset The offset.
|
|
8470
|
-
* @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),
|
|
8471
|
-
* otherwise returns obtained value.
|
|
8472
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8492
|
+
/**
|
|
8493
|
+
* Gets response reason from source byte array at specified offset.
|
|
8494
|
+
* @param src The source array.
|
|
8495
|
+
* @param offset The offset.
|
|
8496
|
+
* @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),
|
|
8497
|
+
* otherwise returns obtained value.
|
|
8498
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8473
8499
|
*/
|
|
8474
8500
|
|
|
8475
8501
|
|
|
@@ -8483,13 +8509,13 @@ var Qitch = function () {
|
|
|
8483
8509
|
throw "Invalid source. Expected: Int8Array";
|
|
8484
8510
|
};
|
|
8485
8511
|
|
|
8486
|
-
/**
|
|
8487
|
-
* Gets streamer version from source byte array at specified offset.
|
|
8488
|
-
* @param src The source array.
|
|
8489
|
-
* @param offset The offset.
|
|
8490
|
-
* @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),
|
|
8491
|
-
* otherwise returns obtained value.
|
|
8492
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8512
|
+
/**
|
|
8513
|
+
* Gets streamer version from source byte array at specified offset.
|
|
8514
|
+
* @param src The source array.
|
|
8515
|
+
* @param offset The offset.
|
|
8516
|
+
* @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),
|
|
8517
|
+
* otherwise returns obtained value.
|
|
8518
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8493
8519
|
*/
|
|
8494
8520
|
|
|
8495
8521
|
|
|
@@ -8503,13 +8529,13 @@ var Qitch = function () {
|
|
|
8503
8529
|
throw "Invalid source. Expected: Int8Array";
|
|
8504
8530
|
};
|
|
8505
8531
|
|
|
8506
|
-
/**
|
|
8507
|
-
* Gets server instance from source byte array at specified offset.
|
|
8508
|
-
* @param src The source array.
|
|
8509
|
-
* @param offset The offset.
|
|
8510
|
-
* @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),
|
|
8511
|
-
* otherwise returns obtained value.
|
|
8512
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8532
|
+
/**
|
|
8533
|
+
* Gets server instance from source byte array at specified offset.
|
|
8534
|
+
* @param src The source array.
|
|
8535
|
+
* @param offset The offset.
|
|
8536
|
+
* @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),
|
|
8537
|
+
* otherwise returns obtained value.
|
|
8538
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8513
8539
|
*/
|
|
8514
8540
|
|
|
8515
8541
|
|
|
@@ -8523,13 +8549,13 @@ var Qitch = function () {
|
|
|
8523
8549
|
throw "Invalid source. Expected: Int8Array";
|
|
8524
8550
|
};
|
|
8525
8551
|
|
|
8526
|
-
/**
|
|
8527
|
-
* Gets the note message from source byte array at specified offset.
|
|
8528
|
-
* @param src The source array.
|
|
8529
|
-
* @param offset The offset.
|
|
8530
|
-
* @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),
|
|
8531
|
-
* otherwise returns obtained value.
|
|
8532
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8552
|
+
/**
|
|
8553
|
+
* Gets the note message from source byte array at specified offset.
|
|
8554
|
+
* @param src The source array.
|
|
8555
|
+
* @param offset The offset.
|
|
8556
|
+
* @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),
|
|
8557
|
+
* otherwise returns obtained value.
|
|
8558
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8533
8559
|
*/
|
|
8534
8560
|
|
|
8535
8561
|
|
|
@@ -8543,13 +8569,13 @@ var Qitch = function () {
|
|
|
8543
8569
|
throw "Invalid source. Expected: Int8Array";
|
|
8544
8570
|
};
|
|
8545
8571
|
|
|
8546
|
-
/**
|
|
8547
|
-
* Puts action value into destination array.
|
|
8548
|
-
* @param dst The destination array.
|
|
8549
|
-
* @param offset The offset.
|
|
8550
|
-
* @param val Action value.
|
|
8551
|
-
* @returns {Int8Array} destination array.
|
|
8552
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8572
|
+
/**
|
|
8573
|
+
* Puts action value into destination array.
|
|
8574
|
+
* @param dst The destination array.
|
|
8575
|
+
* @param offset The offset.
|
|
8576
|
+
* @param val Action value.
|
|
8577
|
+
* @returns {Int8Array} destination array.
|
|
8578
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8553
8579
|
*/
|
|
8554
8580
|
|
|
8555
8581
|
|
|
@@ -8561,13 +8587,13 @@ var Qitch = function () {
|
|
|
8561
8587
|
throw "Invalid destination. Expected: Int8Array";
|
|
8562
8588
|
};
|
|
8563
8589
|
|
|
8564
|
-
/**
|
|
8565
|
-
* Puts mimetype value into destination array.
|
|
8566
|
-
* @param dst The destination array.
|
|
8567
|
-
* @param offset The offset.
|
|
8568
|
-
* @param val Mimetype value.
|
|
8569
|
-
* @returns {Int8Array} destination array.
|
|
8570
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8590
|
+
/**
|
|
8591
|
+
* Puts mimetype value into destination array.
|
|
8592
|
+
* @param dst The destination array.
|
|
8593
|
+
* @param offset The offset.
|
|
8594
|
+
* @param val Mimetype value.
|
|
8595
|
+
* @returns {Int8Array} destination array.
|
|
8596
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8571
8597
|
*/
|
|
8572
8598
|
|
|
8573
8599
|
|
|
@@ -8578,13 +8604,13 @@ var Qitch = function () {
|
|
|
8578
8604
|
throw "Invalid destination. Expected: Int8Array";
|
|
8579
8605
|
};
|
|
8580
8606
|
|
|
8581
|
-
/**
|
|
8582
|
-
* Puts conflation value into destination array. If conflation is null, -1 will be put instead.
|
|
8583
|
-
* @param dst The destination array.
|
|
8584
|
-
* @param offset The offset.
|
|
8585
|
-
* @param val Conflation value.
|
|
8586
|
-
* @returns {Int8Array} destination array.
|
|
8587
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8607
|
+
/**
|
|
8608
|
+
* Puts conflation value into destination array. If conflation is null, -1 will be put instead.
|
|
8609
|
+
* @param dst The destination array.
|
|
8610
|
+
* @param offset The offset.
|
|
8611
|
+
* @param val Conflation value.
|
|
8612
|
+
* @returns {Int8Array} destination array.
|
|
8613
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8588
8614
|
*/
|
|
8589
8615
|
|
|
8590
8616
|
|
|
@@ -8595,13 +8621,13 @@ var Qitch = function () {
|
|
|
8595
8621
|
throw "Invalid destination. Expected: Int8Array";
|
|
8596
8622
|
};
|
|
8597
8623
|
|
|
8598
|
-
/**
|
|
8599
|
-
* Gets marketdata type from source byte array at specified offset.
|
|
8600
|
-
* @param src The source array.
|
|
8601
|
-
* @param offset The offset.
|
|
8602
|
-
* @returns {null|String} Returns null in case if offset is out of array index range,
|
|
8603
|
-
* otherwise {@link messages.control.MarketdataType} value that corresponds to the byte at specified offset is returned.
|
|
8604
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8624
|
+
/**
|
|
8625
|
+
* Gets marketdata type from source byte array at specified offset.
|
|
8626
|
+
* @param src The source array.
|
|
8627
|
+
* @param offset The offset.
|
|
8628
|
+
* @returns {null|String} Returns null in case if offset is out of array index range,
|
|
8629
|
+
* otherwise {@link messages.control.MarketdataType} value that corresponds to the byte at specified offset is returned.
|
|
8630
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8605
8631
|
*/
|
|
8606
8632
|
|
|
8607
8633
|
|
|
@@ -8615,13 +8641,13 @@ var Qitch = function () {
|
|
|
8615
8641
|
throw "Invalid source. Expected: Int8Array";
|
|
8616
8642
|
};
|
|
8617
8643
|
|
|
8618
|
-
/**
|
|
8619
|
-
* Puts marketdata type value into destination array.
|
|
8620
|
-
* @param dst The destination array.
|
|
8621
|
-
* @param offset The offset.
|
|
8622
|
-
* @param val Marketdatatype value.
|
|
8623
|
-
* @returns {Int8Array} destination array.
|
|
8624
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8644
|
+
/**
|
|
8645
|
+
* Puts marketdata type value into destination array.
|
|
8646
|
+
* @param dst The destination array.
|
|
8647
|
+
* @param offset The offset.
|
|
8648
|
+
* @param val Marketdatatype value.
|
|
8649
|
+
* @returns {Int8Array} destination array.
|
|
8650
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8625
8651
|
*/
|
|
8626
8652
|
|
|
8627
8653
|
|
|
@@ -8633,13 +8659,13 @@ var Qitch = function () {
|
|
|
8633
8659
|
throw "Invalid destination. Expected: Int8Array";
|
|
8634
8660
|
};
|
|
8635
8661
|
|
|
8636
|
-
/**
|
|
8637
|
-
* Gets entitlement type from source byte array at specified offset.
|
|
8638
|
-
* @param src The source array.
|
|
8639
|
-
* @param offset The offset.
|
|
8640
|
-
* @returns {null|String} Returns null in case if offset is out of array index range,
|
|
8641
|
-
* otherwise {@link messages.control.StreamEntitlementType} value that corresponds to the byte at specified offset is returned.
|
|
8642
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8662
|
+
/**
|
|
8663
|
+
* Gets entitlement type from source byte array at specified offset.
|
|
8664
|
+
* @param src The source array.
|
|
8665
|
+
* @param offset The offset.
|
|
8666
|
+
* @returns {null|String} Returns null in case if offset is out of array index range,
|
|
8667
|
+
* otherwise {@link messages.control.StreamEntitlementType} value that corresponds to the byte at specified offset is returned.
|
|
8668
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8643
8669
|
*/
|
|
8644
8670
|
|
|
8645
8671
|
|
|
@@ -8653,12 +8679,12 @@ var Qitch = function () {
|
|
|
8653
8679
|
throw "Invalid source. Expected: Int8Array";
|
|
8654
8680
|
};
|
|
8655
8681
|
|
|
8656
|
-
/**
|
|
8657
|
-
* Gets stream entitlement entry from source byte array at specified offset.
|
|
8658
|
-
* @param src The source array.
|
|
8659
|
-
* @param offset The offset.
|
|
8660
|
-
* @returns {messages.control.StreamEntitlement}
|
|
8661
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8682
|
+
/**
|
|
8683
|
+
* Gets stream entitlement entry from source byte array at specified offset.
|
|
8684
|
+
* @param src The source array.
|
|
8685
|
+
* @param offset The offset.
|
|
8686
|
+
* @returns {messages.control.StreamEntitlement}
|
|
8687
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8662
8688
|
*/
|
|
8663
8689
|
|
|
8664
8690
|
|
|
@@ -8691,8 +8717,8 @@ var _jsbi2 = _interopRequireDefault(_jsbi);
|
|
|
8691
8717
|
|
|
8692
8718
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8693
8719
|
|
|
8694
|
-
/*
|
|
8695
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
8720
|
+
/*
|
|
8721
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
8696
8722
|
*/
|
|
8697
8723
|
var ASCII_NULL = exports.ASCII_NULL = 0;
|
|
8698
8724
|
var ASCIICHAR_NULL = exports.ASCIICHAR_NULL = '0';
|
|
@@ -8973,9 +8999,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
8973
8999
|
|
|
8974
9000
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8975
9001
|
|
|
8976
|
-
/**
|
|
8977
|
-
* Decodes a stream of message blocks into messages.
|
|
8978
|
-
* This class is stateful and cannot be shared between multiple streams.
|
|
9002
|
+
/**
|
|
9003
|
+
* Decodes a stream of message blocks into messages.
|
|
9004
|
+
* This class is stateful and cannot be shared between multiple streams.
|
|
8979
9005
|
*/
|
|
8980
9006
|
var BlockDecoder = function () {
|
|
8981
9007
|
function BlockDecoder(decoders, capacity) {
|
|
@@ -8997,9 +9023,9 @@ var BlockDecoder = function () {
|
|
|
8997
9023
|
this.doflip = false;
|
|
8998
9024
|
}
|
|
8999
9025
|
|
|
9000
|
-
/**
|
|
9001
|
-
* The number of messages in the current block.
|
|
9002
|
-
* @returns {number} The number of messages or -1 if no block is being decoded
|
|
9026
|
+
/**
|
|
9027
|
+
* The number of messages in the current block.
|
|
9028
|
+
* @returns {number} The number of messages or -1 if no block is being decoded
|
|
9003
9029
|
*/
|
|
9004
9030
|
|
|
9005
9031
|
|
|
@@ -9007,9 +9033,9 @@ var BlockDecoder = function () {
|
|
|
9007
9033
|
return this.state.messagecount;
|
|
9008
9034
|
};
|
|
9009
9035
|
|
|
9010
|
-
/**
|
|
9011
|
-
* Returns the sequence number of the current block.
|
|
9012
|
-
* @returns {number} the sequence number of the current block.
|
|
9036
|
+
/**
|
|
9037
|
+
* Returns the sequence number of the current block.
|
|
9038
|
+
* @returns {number} the sequence number of the current block.
|
|
9013
9039
|
*/
|
|
9014
9040
|
|
|
9015
9041
|
|
|
@@ -9017,13 +9043,13 @@ var BlockDecoder = function () {
|
|
|
9017
9043
|
return this.state.blocksequencenumber;
|
|
9018
9044
|
};
|
|
9019
9045
|
|
|
9020
|
-
/**
|
|
9021
|
-
* Adds bytes to internal buffer.
|
|
9022
|
-
* Call {@link decode} to decode the buffered data.
|
|
9023
|
-
* @param bytes The array from witch bytes are to be added.
|
|
9024
|
-
* @param offset The offset within the array of the fist byte to be added.
|
|
9025
|
-
* @param length The number of bytes to be added from the given array.
|
|
9026
|
-
* @returns {Number} Number of bytes that weren't added due to buffer not having enough space.
|
|
9046
|
+
/**
|
|
9047
|
+
* Adds bytes to internal buffer.
|
|
9048
|
+
* Call {@link decode} to decode the buffered data.
|
|
9049
|
+
* @param bytes The array from witch bytes are to be added.
|
|
9050
|
+
* @param offset The offset within the array of the fist byte to be added.
|
|
9051
|
+
* @param length The number of bytes to be added from the given array.
|
|
9052
|
+
* @returns {Number} Number of bytes that weren't added due to buffer not having enough space.
|
|
9027
9053
|
*/
|
|
9028
9054
|
|
|
9029
9055
|
|
|
@@ -9052,11 +9078,11 @@ var BlockDecoder = function () {
|
|
|
9052
9078
|
return numOfLeftoverBytes;
|
|
9053
9079
|
};
|
|
9054
9080
|
|
|
9055
|
-
/**
|
|
9056
|
-
* Incrementally decodes the data in the internal buffer.
|
|
9057
|
-
* Successive calls to this method will return the next decoded message as long enough data is avail
|
|
9058
|
-
* If not enough data is available null will be returned until more data is added.
|
|
9059
|
-
* @returns {*} The next decoded message or null if not enough data is available.
|
|
9081
|
+
/**
|
|
9082
|
+
* Incrementally decodes the data in the internal buffer.
|
|
9083
|
+
* Successive calls to this method will return the next decoded message as long enough data is avail
|
|
9084
|
+
* If not enough data is available null will be returned until more data is added.
|
|
9085
|
+
* @returns {*} The next decoded message or null if not enough data is available.
|
|
9060
9086
|
*/
|
|
9061
9087
|
|
|
9062
9088
|
|
|
@@ -9399,8 +9425,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
9399
9425
|
|
|
9400
9426
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9401
9427
|
|
|
9402
|
-
/*
|
|
9403
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
9428
|
+
/*
|
|
9429
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
9404
9430
|
*/
|
|
9405
9431
|
var QitchDecoder = function () {
|
|
9406
9432
|
function QitchDecoder(bufferSize) {
|
|
@@ -10905,8 +10931,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
10905
10931
|
|
|
10906
10932
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10907
10933
|
|
|
10908
|
-
/*
|
|
10909
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
10934
|
+
/*
|
|
10935
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
10910
10936
|
*/
|
|
10911
10937
|
var QitchEncoder = function () {
|
|
10912
10938
|
function QitchEncoder() {
|
|
@@ -10915,12 +10941,12 @@ var QitchEncoder = function () {
|
|
|
10915
10941
|
this.encoder = new MessageEncoder();
|
|
10916
10942
|
}
|
|
10917
10943
|
|
|
10918
|
-
/**
|
|
10919
|
-
* Encodes a message into its binary representation.
|
|
10920
|
-
* @param msg Msg {SMessage} the message to encode
|
|
10921
|
-
* @param offset The offset used to write message into a buffer
|
|
10922
|
-
* @returns {ArrayBuffer} the encoded bytes
|
|
10923
|
-
* @throws Throws an error if message cannot be encoded
|
|
10944
|
+
/**
|
|
10945
|
+
* Encodes a message into its binary representation.
|
|
10946
|
+
* @param msg Msg {SMessage} the message to encode
|
|
10947
|
+
* @param offset The offset used to write message into a buffer
|
|
10948
|
+
* @returns {ArrayBuffer} the encoded bytes
|
|
10949
|
+
* @throws Throws an error if message cannot be encoded
|
|
10924
10950
|
*/
|
|
10925
10951
|
|
|
10926
10952
|
|
|
@@ -12025,11 +12051,11 @@ exports["default"] = new function () {
|
|
|
12025
12051
|
|
|
12026
12052
|
// Generated by CoffeeScript 1.7.1
|
|
12027
12053
|
|
|
12028
|
-
/*
|
|
12029
|
-
Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
|
|
12030
|
-
|
|
12031
|
-
Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
|
|
12032
|
-
Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
|
|
12054
|
+
/*
|
|
12055
|
+
Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
|
|
12056
|
+
|
|
12057
|
+
Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
|
|
12058
|
+
Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
|
|
12033
12059
|
*/
|
|
12034
12060
|
|
|
12035
12061
|
(function () {
|
|
@@ -14178,6 +14204,12 @@ var StompStreamingService = function () {
|
|
|
14178
14204
|
this.addToHeaderParams('X-Stream-isReceiveLatestMissedData', true);
|
|
14179
14205
|
}
|
|
14180
14206
|
|
|
14207
|
+
var _stompWmid = this.config.stompWmid;
|
|
14208
|
+
if (_stompWmid != null) {
|
|
14209
|
+
headers['wmid'] = _stompWmid;
|
|
14210
|
+
this.addToHeaderParams('wmid', _stompWmid);
|
|
14211
|
+
}
|
|
14212
|
+
|
|
14181
14213
|
Object.assign(headers, this.config.credentials.getHeaders());
|
|
14182
14214
|
|
|
14183
14215
|
var url = this.config.url + STREAMURLS.streamStomp + HEADERPARAMS;
|
|
@@ -14287,1101 +14319,1149 @@ exports["default"] = StompStreamingService;
|
|
|
14287
14319
|
exports.__esModule = true;
|
|
14288
14320
|
/* @see http://usejsdoc.org */
|
|
14289
14321
|
|
|
14290
|
-
/**
|
|
14291
|
-
* Streamer api namespace.
|
|
14292
|
-
* @namespace
|
|
14322
|
+
/**
|
|
14323
|
+
* Streamer api namespace.
|
|
14324
|
+
* @namespace
|
|
14293
14325
|
*/
|
|
14294
14326
|
|
|
14295
14327
|
var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
|
|
14296
|
-
var VERSION = exports.VERSION = "2.
|
|
14328
|
+
var VERSION = exports.VERSION = "2.36.0";
|
|
14297
14329
|
|
|
14298
|
-
/**
|
|
14299
|
-
* Streamer message api namespace.
|
|
14300
|
-
* @namespace
|
|
14330
|
+
/**
|
|
14331
|
+
* Streamer message api namespace.
|
|
14332
|
+
* @namespace
|
|
14301
14333
|
*/
|
|
14302
14334
|
var messages = exports.messages = {};
|
|
14303
14335
|
|
|
14304
|
-
/**
|
|
14305
|
-
* Streamer control message namespace. * @namespace
|
|
14336
|
+
/**
|
|
14337
|
+
* Streamer control message namespace. * @namespace
|
|
14306
14338
|
*/
|
|
14307
14339
|
messages.control = {};
|
|
14308
14340
|
|
|
14309
|
-
/**
|
|
14310
|
-
* Streamer market data message namespace.
|
|
14311
|
-
* @namespace
|
|
14341
|
+
/**
|
|
14342
|
+
* Streamer market data message namespace.
|
|
14343
|
+
* @namespace
|
|
14312
14344
|
*/
|
|
14313
14345
|
messages.market = {};
|
|
14314
14346
|
|
|
14315
14347
|
/* ****************************************************************************************************************** */
|
|
14316
14348
|
|
|
14317
|
-
/**
|
|
14318
|
-
*
|
|
14319
|
-
* @type {string}
|
|
14349
|
+
/**
|
|
14350
|
+
*
|
|
14351
|
+
* @type {string}
|
|
14320
14352
|
*/
|
|
14321
14353
|
messages.JSON_TYPE_PROPERTY = '@T';
|
|
14322
14354
|
|
|
14323
|
-
/**
|
|
14324
|
-
* Message type identifiers.<br>
|
|
14325
|
-
* Ensure identifiers are unique within this name space.
|
|
14326
|
-
* @namespace
|
|
14355
|
+
/**
|
|
14356
|
+
* Message type identifiers.<br>
|
|
14357
|
+
* Ensure identifiers are unique within this name space.
|
|
14358
|
+
* @namespace
|
|
14327
14359
|
*/
|
|
14328
14360
|
messages.MessageTypeNames = {
|
|
14329
|
-
|
|
14330
|
-
|
|
14331
|
-
|
|
14332
|
-
|
|
14333
|
-
|
|
14334
|
-
|
|
14335
|
-
|
|
14336
|
-
|
|
14337
|
-
|
|
14338
|
-
|
|
14339
|
-
|
|
14340
|
-
|
|
14341
|
-
|
|
14342
|
-
|
|
14343
|
-
|
|
14344
|
-
|
|
14345
|
-
|
|
14346
|
-
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
14352
|
-
|
|
14353
|
-
|
|
14354
|
-
|
|
14355
|
-
|
|
14356
|
-
|
|
14357
|
-
|
|
14358
|
-
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
-
|
|
14363
|
-
|
|
14364
|
-
|
|
14365
|
-
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
|
|
14369
|
-
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
|
|
14379
|
-
|
|
14380
|
-
|
|
14381
|
-
|
|
14382
|
-
|
|
14383
|
-
|
|
14384
|
-
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14390
|
-
|
|
14391
|
-
|
|
14392
|
-
|
|
14393
|
-
|
|
14361
|
+
/**
|
|
14362
|
+
* Name space for control message type identifiers.
|
|
14363
|
+
* @namespace
|
|
14364
|
+
*/
|
|
14365
|
+
ctrl: {
|
|
14366
|
+
HEARTBEAT: 'C1',
|
|
14367
|
+
SUBSCRIBE: 'C2',
|
|
14368
|
+
SUBSCRIBE_RESPONSE: 'C3',
|
|
14369
|
+
UNSUBSCRIBE_RESPONSE: 'C4',
|
|
14370
|
+
CONNECT_RESPONSE: 'C5',
|
|
14371
|
+
CONNECTION_CLOSE: 'C6',
|
|
14372
|
+
FLOW: 'C7',
|
|
14373
|
+
SLOW_CONNECTION: 'C8',
|
|
14374
|
+
INITIAL_DATA_SENT: 'C9',
|
|
14375
|
+
RESUBSCRIBE_MESSAGE: 'C10',
|
|
14376
|
+
STATS: 'C12',
|
|
14377
|
+
STATS_RESPONSE: 'C13',
|
|
14378
|
+
EXCHANGE_SUBSCRIBE: 'C14',
|
|
14379
|
+
EXCHANGE_RESPONSE: 'C15',
|
|
14380
|
+
EXCHANGE_UNSUBSCRIBE_RESPONSE: 'C16',
|
|
14381
|
+
NEWS_SUBSCRIBE: 'C17',
|
|
14382
|
+
NEWS_SUBSCRIBE_RESPONSE: 'C18',
|
|
14383
|
+
ALERTS_SUBUNSUB: 'C19',
|
|
14384
|
+
ALERTS_SUBUNSUB_RESPONSE: 'C20',
|
|
14385
|
+
TRADE_SUBSCRIBE: 'C21',
|
|
14386
|
+
TRADE_SUBSCRIBE_RESPONSE: 'C22',
|
|
14387
|
+
NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
|
|
14388
|
+
NEWS_COMMAND: 'C24',
|
|
14389
|
+
NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
|
|
14390
|
+
NEWS_CMD_FILTER_RESPONSE: 'C26',
|
|
14391
|
+
AUTHENTICATION: 'C27',
|
|
14392
|
+
OPEN_FLOW: 'C28',
|
|
14393
|
+
RECONNECT_RESPONSE: 'C29',
|
|
14394
|
+
TRADE_UNSUBSCRIBE_RESPONSE: 'C30',
|
|
14395
|
+
MISSED_DATA_SENT: 'C31'
|
|
14396
|
+
},
|
|
14397
|
+
/**
|
|
14398
|
+
* Name space for data message type identifiers.<br>
|
|
14399
|
+
* Prefix with 'D'.
|
|
14400
|
+
* @namespace
|
|
14401
|
+
*/
|
|
14402
|
+
data: {
|
|
14403
|
+
QUOTE: 'D1',
|
|
14404
|
+
PRICEDATA: 'D2',
|
|
14405
|
+
TRADE: 'D3',
|
|
14406
|
+
BOOKORDER: 'D4',
|
|
14407
|
+
BOOKDELETE: 'D5',
|
|
14408
|
+
PURGEBOOK: 'D6',
|
|
14409
|
+
MMQUOTE: 'D7',
|
|
14410
|
+
INTERVAL: 'D8',
|
|
14411
|
+
NETHOUSEPOSITION: 'D9',
|
|
14412
|
+
SYMBOLINFO: 'D10',
|
|
14413
|
+
SYMBOLSTATUS: 'D11',
|
|
14414
|
+
DERIVATIVEINFO: 'D12',
|
|
14415
|
+
LASTSALE: 'D13',
|
|
14416
|
+
LIMITUPLIMITDOWN: 'D14',
|
|
14417
|
+
IVGREEKS: 'D15',
|
|
14418
|
+
IMBALANCESTATUS: 'D16',
|
|
14419
|
+
ALERT: 'D17',
|
|
14420
|
+
NEWS: 'D18',
|
|
14421
|
+
TRADENOTIFICATION: 'D19',
|
|
14422
|
+
NEWSCMDFILTER: 'D20',
|
|
14423
|
+
NEWSERROR: 'D21',
|
|
14424
|
+
DIVIDEND: 'D22'
|
|
14425
|
+
}
|
|
14394
14426
|
};
|
|
14395
14427
|
|
|
14396
|
-
/**
|
|
14397
|
-
* Super type of all exports.
|
|
14398
|
-
* @abstract
|
|
14399
|
-
* @constructor
|
|
14428
|
+
/**
|
|
14429
|
+
* Super type of all exports.
|
|
14430
|
+
* @abstract
|
|
14431
|
+
* @constructor
|
|
14400
14432
|
*/
|
|
14401
14433
|
messages.Message = function () {};
|
|
14402
14434
|
|
|
14403
14435
|
messages.Message.prototype.init = function (typeid) {
|
|
14404
|
-
|
|
14436
|
+
this[messages.JSON_TYPE_PROPERTY] = typeid;
|
|
14405
14437
|
};
|
|
14406
14438
|
|
|
14407
14439
|
/* ****************************************************************************************************************** */
|
|
14408
14440
|
|
|
14409
|
-
/**
|
|
14410
|
-
* Creates a control message base object.
|
|
14411
|
-
* @abstract
|
|
14412
|
-
* @constructor
|
|
14441
|
+
/**
|
|
14442
|
+
* Creates a control message base object.
|
|
14443
|
+
* @abstract
|
|
14444
|
+
* @constructor
|
|
14413
14445
|
*/
|
|
14414
14446
|
messages.control.CtrlMessage = function () {};
|
|
14415
14447
|
messages.control.CtrlMessage.prototype = new messages.Message();
|
|
14416
14448
|
|
|
14417
|
-
/**
|
|
14418
|
-
* Creates a heartbeat message.
|
|
14419
|
-
* @constructor
|
|
14449
|
+
/**
|
|
14450
|
+
* Creates a heartbeat message.
|
|
14451
|
+
* @constructor
|
|
14420
14452
|
*/
|
|
14421
14453
|
messages.control.Heartbeat = function () {
|
|
14422
|
-
|
|
14454
|
+
this.init(messages.MessageTypeNames.ctrl.HEARTBEAT);
|
|
14423
14455
|
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
-
|
|
14456
|
+
/**
|
|
14457
|
+
* Timestamp when heartbeat was generated.
|
|
14458
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
14459
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
14460
|
+
*/
|
|
14461
|
+
this.timestamp = null;
|
|
14430
14462
|
};
|
|
14431
14463
|
messages.control.Heartbeat.prototype = new messages.control.CtrlMessage();
|
|
14432
|
-
/**
|
|
14433
|
-
* Creates a stats message.
|
|
14434
|
-
* @constructor
|
|
14464
|
+
/**
|
|
14465
|
+
* Creates a stats message.
|
|
14466
|
+
* @constructor
|
|
14435
14467
|
*/
|
|
14436
14468
|
messages.control.StatsMessage = function () {
|
|
14437
|
-
|
|
14469
|
+
this.init(messages.MessageTypeNames.ctrl.STATS);
|
|
14438
14470
|
};
|
|
14439
14471
|
messages.control.StatsMessage.prototype = new messages.control.CtrlMessage();
|
|
14440
14472
|
|
|
14441
|
-
/**
|
|
14442
|
-
* Creates a subscribe message.
|
|
14443
|
-
* @constructor
|
|
14473
|
+
/**
|
|
14474
|
+
* Creates a subscribe message.
|
|
14475
|
+
* @constructor
|
|
14444
14476
|
*/
|
|
14445
14477
|
messages.control.SubscribeMessage = function () {
|
|
14446
|
-
|
|
14478
|
+
this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
|
|
14447
14479
|
|
|
14448
|
-
|
|
14449
|
-
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
|
|
14480
|
+
/**
|
|
14481
|
+
* The action the server will taken when receiving this message.
|
|
14482
|
+
* @type {string}
|
|
14483
|
+
* @see exports.messages.control.Action
|
|
14484
|
+
*/
|
|
14485
|
+
this.action = null;
|
|
14454
14486
|
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
|
|
14459
|
-
|
|
14487
|
+
/**
|
|
14488
|
+
* List of ticker symbols to subscribe/un-subscribe for.
|
|
14489
|
+
* @type {Array.<string>}
|
|
14490
|
+
*/
|
|
14491
|
+
this.symbols = [];
|
|
14460
14492
|
|
|
14461
|
-
|
|
14462
|
-
|
|
14463
|
-
|
|
14464
|
-
|
|
14465
|
-
|
|
14466
|
-
|
|
14493
|
+
/**
|
|
14494
|
+
* List of streaming message types to subscribe each ticker symbol for.
|
|
14495
|
+
* @type {Array.<string>}
|
|
14496
|
+
* @see exports.messages.control.MarketdataType
|
|
14497
|
+
*/
|
|
14498
|
+
this.types = [];
|
|
14467
14499
|
|
|
14468
|
-
|
|
14469
|
-
|
|
14470
|
-
|
|
14471
|
-
|
|
14472
|
-
|
|
14473
|
-
|
|
14500
|
+
/**
|
|
14501
|
+
* Requested message mime-type format.
|
|
14502
|
+
* @type {string}
|
|
14503
|
+
* @see exports.messages.MimeTypes
|
|
14504
|
+
*/
|
|
14505
|
+
this.mimetype = null;
|
|
14474
14506
|
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14507
|
+
/**
|
|
14508
|
+
* Requested conflation. Null indicates using the default conflation.
|
|
14509
|
+
* @type {int}
|
|
14510
|
+
*/
|
|
14511
|
+
this.conflation = null;
|
|
14480
14512
|
};
|
|
14481
14513
|
messages.control.SubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
14482
14514
|
|
|
14483
|
-
/**
|
|
14484
|
-
* Creates an exchange subscribe message.
|
|
14485
|
-
* @constructor
|
|
14515
|
+
/**
|
|
14516
|
+
* Creates an exchange subscribe message.
|
|
14517
|
+
* @constructor
|
|
14486
14518
|
*/
|
|
14487
14519
|
messages.control.ExchangeSubscribeMessage = function () {
|
|
14488
|
-
|
|
14520
|
+
this.init(messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE);
|
|
14489
14521
|
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14522
|
+
/**
|
|
14523
|
+
* The action the server will taken when receiving this message.
|
|
14524
|
+
* @type {string}
|
|
14525
|
+
* @see exports.messages.control.Action
|
|
14526
|
+
*/
|
|
14527
|
+
this.action = null;
|
|
14496
14528
|
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14529
|
+
/**
|
|
14530
|
+
* The Exchange to subscribe/un-subscribe for.
|
|
14531
|
+
* @type {Array.<string>}
|
|
14532
|
+
*/
|
|
14533
|
+
this.exchange = null;
|
|
14502
14534
|
|
|
14503
|
-
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
|
|
14535
|
+
/**
|
|
14536
|
+
* Requested message mime-type format.
|
|
14537
|
+
* @type {string}
|
|
14538
|
+
* @see exports.messages.MimeTypes
|
|
14539
|
+
*/
|
|
14540
|
+
this.mimetype = null;
|
|
14509
14541
|
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14514
|
-
|
|
14542
|
+
/**
|
|
14543
|
+
* Requested conflation. Null indicates using the default conflation.
|
|
14544
|
+
* @type {int}
|
|
14545
|
+
*/
|
|
14546
|
+
this.conflation = null;
|
|
14515
14547
|
};
|
|
14516
14548
|
messages.control.ExchangeSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
14517
14549
|
|
|
14518
|
-
/**
|
|
14519
|
-
* Creates an news subscribe message.
|
|
14520
|
-
* @constructor
|
|
14550
|
+
/**
|
|
14551
|
+
* Creates an news subscribe message.
|
|
14552
|
+
* @constructor
|
|
14521
14553
|
*/
|
|
14522
14554
|
messages.control.NewsSubscribeMessage = function () {
|
|
14523
|
-
|
|
14555
|
+
this.init(messages.MessageTypeNames.ctrl.NEWS_SUBSCRIBE);
|
|
14524
14556
|
|
|
14525
|
-
|
|
14526
|
-
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
|
|
14530
|
-
|
|
14557
|
+
/**
|
|
14558
|
+
* The action the server will taken when receiving this message.
|
|
14559
|
+
* @type {string}
|
|
14560
|
+
* @see exports.messages.control.Action
|
|
14561
|
+
*/
|
|
14562
|
+
this.action = null;
|
|
14531
14563
|
|
|
14532
|
-
|
|
14533
|
-
|
|
14534
|
-
|
|
14535
|
-
|
|
14536
|
-
|
|
14564
|
+
/**
|
|
14565
|
+
* The news filters to subscribe for.
|
|
14566
|
+
* @type {Array.<string>}
|
|
14567
|
+
*/
|
|
14568
|
+
this.newsFilters = null;
|
|
14537
14569
|
|
|
14538
|
-
|
|
14539
|
-
|
|
14540
|
-
|
|
14541
|
-
|
|
14542
|
-
|
|
14543
|
-
|
|
14570
|
+
/**
|
|
14571
|
+
* Requested message mime-type format.
|
|
14572
|
+
* @type {string}
|
|
14573
|
+
* @see exports.messages.MimeTypes
|
|
14574
|
+
*/
|
|
14575
|
+
this.mimetype = null;
|
|
14544
14576
|
};
|
|
14545
14577
|
messages.control.NewsSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
14546
14578
|
|
|
14547
|
-
/**
|
|
14548
|
-
* Creates an news reset message.
|
|
14549
|
-
* @constructor
|
|
14579
|
+
/**
|
|
14580
|
+
* Creates an news reset message.
|
|
14581
|
+
* @constructor
|
|
14550
14582
|
*/
|
|
14551
14583
|
messages.control.NewsCommandMessage = function () {
|
|
14552
|
-
|
|
14584
|
+
this.init(messages.MessageTypeNames.ctrl.NEWS_COMMAND);
|
|
14553
14585
|
|
|
14554
|
-
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
|
|
14559
|
-
|
|
14586
|
+
/**
|
|
14587
|
+
* The action the server will taken when receiving this message.
|
|
14588
|
+
* @type {string}
|
|
14589
|
+
* @see exports.messages.control.Action
|
|
14590
|
+
*/
|
|
14591
|
+
this.newsAction = null;
|
|
14560
14592
|
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14593
|
+
/**
|
|
14594
|
+
* Requested message mime-type format.
|
|
14595
|
+
* @type {string}
|
|
14596
|
+
* @see exports.messages.MimeTypes
|
|
14597
|
+
*/
|
|
14598
|
+
this.mimetype = null;
|
|
14567
14599
|
};
|
|
14568
14600
|
messages.control.NewsCommandMessage.prototype = new messages.control.CtrlMessage();
|
|
14569
14601
|
|
|
14570
|
-
/**
|
|
14571
|
-
* Creates an news subscribe message.
|
|
14572
|
-
* @constructor
|
|
14602
|
+
/**
|
|
14603
|
+
* Creates an news subscribe message.
|
|
14604
|
+
* @constructor
|
|
14573
14605
|
*/
|
|
14574
14606
|
messages.control.AlertsSubUnsubMessage = function () {
|
|
14575
|
-
|
|
14607
|
+
this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB);
|
|
14576
14608
|
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14609
|
+
/**
|
|
14610
|
+
* sub/unsub for alerts.
|
|
14611
|
+
* @type {string}
|
|
14612
|
+
*/
|
|
14613
|
+
this.operation = null;
|
|
14582
14614
|
|
|
14583
|
-
|
|
14584
|
-
|
|
14585
|
-
|
|
14586
|
-
|
|
14587
|
-
|
|
14588
|
-
|
|
14615
|
+
/**
|
|
14616
|
+
* Requested message mime-type format.
|
|
14617
|
+
* @type {string}
|
|
14618
|
+
* @see exports.messages.MimeTypes
|
|
14619
|
+
*/
|
|
14620
|
+
this.mimetype = null;
|
|
14589
14621
|
};
|
|
14590
14622
|
messages.control.AlertsSubUnsubMessage.prototype = new messages.control.CtrlMessage();
|
|
14591
14623
|
|
|
14592
|
-
/**
|
|
14593
|
-
* Creates Trade notification subscribe message.
|
|
14594
|
-
* @constructor
|
|
14624
|
+
/**
|
|
14625
|
+
* Creates Trade notification subscribe message.
|
|
14626
|
+
* @constructor
|
|
14595
14627
|
*/
|
|
14596
14628
|
|
|
14597
14629
|
messages.control.TradeSubscribeMessage = function () {
|
|
14598
|
-
|
|
14630
|
+
this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE);
|
|
14599
14631
|
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14632
|
+
/**
|
|
14633
|
+
* The action the server will taken when receiving this message.
|
|
14634
|
+
* @type {string}
|
|
14635
|
+
* @see exports.messages.control.Action
|
|
14636
|
+
*/
|
|
14637
|
+
this.action = null;
|
|
14606
14638
|
|
|
14607
|
-
|
|
14608
|
-
|
|
14609
|
-
|
|
14610
|
-
|
|
14611
|
-
|
|
14639
|
+
/**
|
|
14640
|
+
* The subscribe/un-subscribe for trade notifications.
|
|
14641
|
+
* @type {Array.<string>}
|
|
14642
|
+
*/
|
|
14643
|
+
this.notificationType = null;
|
|
14612
14644
|
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
|
|
14618
|
-
|
|
14645
|
+
/**
|
|
14646
|
+
* Requested message mime-type format.
|
|
14647
|
+
* @type {string}
|
|
14648
|
+
* @see exports.messages.MimeTypes
|
|
14649
|
+
*/
|
|
14650
|
+
this.mimetype = null;
|
|
14619
14651
|
};
|
|
14620
14652
|
messages.control.TradeSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
14621
14653
|
|
|
14622
|
-
/**
|
|
14623
|
-
* Base class for response exports.
|
|
14624
|
-
* @abstract
|
|
14654
|
+
/**
|
|
14655
|
+
* Base class for response exports.
|
|
14656
|
+
* @abstract
|
|
14625
14657
|
*/
|
|
14626
14658
|
messages.control.BaseResponse = function () {
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
|
|
14632
|
-
|
|
14659
|
+
/**
|
|
14660
|
+
* The response code.
|
|
14661
|
+
* @type {number}
|
|
14662
|
+
* @see {@link messages.control.ResponseCodes}
|
|
14663
|
+
*/
|
|
14664
|
+
this.code = null;
|
|
14633
14665
|
|
|
14634
|
-
|
|
14635
|
-
|
|
14636
|
-
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
|
|
14666
|
+
/**
|
|
14667
|
+
* The response reason.
|
|
14668
|
+
* @type {string}
|
|
14669
|
+
* @see {@link messages.control.ResponseCodes}
|
|
14670
|
+
*/
|
|
14671
|
+
this.reason = null;
|
|
14640
14672
|
};
|
|
14641
14673
|
messages.control.BaseResponse.prototype = new messages.control.CtrlMessage();
|
|
14642
14674
|
|
|
14643
|
-
/**
|
|
14644
|
-
* Creates a subscribe response message.
|
|
14645
|
-
* @constructor
|
|
14675
|
+
/**
|
|
14676
|
+
* Creates a subscribe response message.
|
|
14677
|
+
* @constructor
|
|
14646
14678
|
*/
|
|
14647
14679
|
messages.control.SubscribeResponse = function () {
|
|
14648
|
-
|
|
14680
|
+
this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE);
|
|
14649
14681
|
|
|
14650
|
-
|
|
14651
|
-
|
|
14652
|
-
|
|
14653
|
-
|
|
14654
|
-
|
|
14682
|
+
/**
|
|
14683
|
+
*
|
|
14684
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
14685
|
+
*/
|
|
14686
|
+
this.entitlements = null;
|
|
14655
14687
|
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
|
|
14688
|
+
/**
|
|
14689
|
+
*
|
|
14690
|
+
* @type {Array.<string>}
|
|
14691
|
+
*/
|
|
14692
|
+
this.invalidsymbols = null;
|
|
14661
14693
|
|
|
14662
|
-
|
|
14663
|
-
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
|
|
14694
|
+
/**
|
|
14695
|
+
*
|
|
14696
|
+
* @type {Array.<string>}
|
|
14697
|
+
*/
|
|
14698
|
+
this.rejectedsymbols = null;
|
|
14667
14699
|
};
|
|
14668
14700
|
messages.control.SubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
14669
14701
|
|
|
14670
|
-
/**
|
|
14671
|
-
* Creates an exchange subscribe response message.
|
|
14672
|
-
* @constructor
|
|
14702
|
+
/**
|
|
14703
|
+
* Creates an exchange subscribe response message.
|
|
14704
|
+
* @constructor
|
|
14673
14705
|
*/
|
|
14674
14706
|
messages.control.ExchangeSubscribeResponse = function () {
|
|
14675
|
-
|
|
14707
|
+
this.init(messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE);
|
|
14676
14708
|
};
|
|
14677
14709
|
|
|
14678
14710
|
messages.control.ExchangeSubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
14679
14711
|
|
|
14680
|
-
/**
|
|
14681
|
-
* Creates Trade notification subscribe response message.
|
|
14682
|
-
* @constructor
|
|
14712
|
+
/**
|
|
14713
|
+
* Creates Trade notification subscribe response message.
|
|
14714
|
+
* @constructor
|
|
14683
14715
|
*/
|
|
14684
14716
|
messages.control.TradeSubscribeResponse = function () {
|
|
14685
|
-
|
|
14717
|
+
this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE_RESPONSE);
|
|
14686
14718
|
};
|
|
14687
14719
|
|
|
14688
14720
|
messages.control.TradeSubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
14689
14721
|
|
|
14690
|
-
/**
|
|
14691
|
-
* Creates an un-subscribe response message.
|
|
14692
|
-
* @constructor
|
|
14722
|
+
/**
|
|
14723
|
+
* Creates an un-subscribe response message.
|
|
14724
|
+
* @constructor
|
|
14693
14725
|
*/
|
|
14694
14726
|
messages.control.UnsubscribeResponse = function () {
|
|
14695
|
-
|
|
14727
|
+
this.init(messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE);
|
|
14696
14728
|
|
|
14697
|
-
|
|
14698
|
-
|
|
14699
|
-
|
|
14700
|
-
|
|
14701
|
-
|
|
14729
|
+
/**
|
|
14730
|
+
*
|
|
14731
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
14732
|
+
*/
|
|
14733
|
+
this.unsubscribed = null;
|
|
14702
14734
|
};
|
|
14703
14735
|
messages.control.UnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
14704
14736
|
|
|
14705
|
-
/**
|
|
14706
|
-
* Creates an exchange unsubscribe response message.
|
|
14707
|
-
* @constructor
|
|
14737
|
+
/**
|
|
14738
|
+
* Creates an exchange unsubscribe response message.
|
|
14739
|
+
* @constructor
|
|
14708
14740
|
*/
|
|
14709
14741
|
messages.control.ExchangeUnsubscribeResponse = function () {
|
|
14710
|
-
|
|
14742
|
+
this.init(messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE);
|
|
14711
14743
|
};
|
|
14712
14744
|
|
|
14713
14745
|
messages.control.ExchangeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
14714
14746
|
|
|
14715
|
-
/**
|
|
14716
|
-
* Creates an news un-subscribe response message.
|
|
14717
|
-
* @constructor
|
|
14747
|
+
/**
|
|
14748
|
+
* Creates an news un-subscribe response message.
|
|
14749
|
+
* @constructor
|
|
14718
14750
|
*/
|
|
14719
14751
|
messages.control.NewsUnsubscribeResponse = function () {
|
|
14720
|
-
|
|
14752
|
+
this.init(messages.MessageTypeNames.ctrl.NEWS_UNSUBSCRIBE_RESPONSE);
|
|
14721
14753
|
|
|
14722
|
-
|
|
14723
|
-
|
|
14724
|
-
|
|
14725
|
-
|
|
14726
|
-
|
|
14754
|
+
/**
|
|
14755
|
+
*
|
|
14756
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
14757
|
+
*/
|
|
14758
|
+
this.unsubscribed = null;
|
|
14727
14759
|
};
|
|
14728
14760
|
messages.control.NewsUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
14729
14761
|
|
|
14730
|
-
/**
|
|
14731
|
-
* Creates Trade notification subscribe response message.
|
|
14732
|
-
* @constructor
|
|
14762
|
+
/**
|
|
14763
|
+
* Creates Trade notification subscribe response message.
|
|
14764
|
+
* @constructor
|
|
14733
14765
|
*/
|
|
14734
14766
|
messages.control.TradeUnsubscribeResponse = function () {
|
|
14735
|
-
|
|
14767
|
+
this.init(messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE);
|
|
14736
14768
|
};
|
|
14737
14769
|
|
|
14738
14770
|
messages.control.TradeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
14739
|
-
/**
|
|
14740
|
-
* Creates a stream entitlement info.
|
|
14741
|
-
* @constructor
|
|
14771
|
+
/**
|
|
14772
|
+
* Creates a stream entitlement info.
|
|
14773
|
+
* @constructor
|
|
14742
14774
|
*/
|
|
14743
14775
|
messages.control.StreamEntitlement = function () {
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
|
|
14747
|
-
|
|
14748
|
-
|
|
14776
|
+
/**
|
|
14777
|
+
* The symbol the entitlement is for.
|
|
14778
|
+
* @type {string}
|
|
14779
|
+
*/
|
|
14780
|
+
this.symbol = null;
|
|
14749
14781
|
|
|
14750
|
-
|
|
14751
|
-
|
|
14752
|
-
|
|
14753
|
-
|
|
14754
|
-
|
|
14755
|
-
|
|
14782
|
+
/**
|
|
14783
|
+
* The market data type the entitlement is for.
|
|
14784
|
+
* @type {string}
|
|
14785
|
+
* @see messages.control.MarketdataType
|
|
14786
|
+
*/
|
|
14787
|
+
this.marketdatatype = null;
|
|
14756
14788
|
|
|
14757
|
-
|
|
14758
|
-
|
|
14759
|
-
|
|
14760
|
-
|
|
14761
|
-
|
|
14762
|
-
|
|
14789
|
+
/**
|
|
14790
|
+
*
|
|
14791
|
+
* @type {string}
|
|
14792
|
+
* @see messages.control.StreamEntitlementType
|
|
14793
|
+
*/
|
|
14794
|
+
this.entitlement = null;
|
|
14763
14795
|
};
|
|
14764
14796
|
|
|
14765
|
-
/**
|
|
14766
|
-
* Creates a new connect response message.
|
|
14767
|
-
* @constructor
|
|
14797
|
+
/**
|
|
14798
|
+
* Creates a new connect response message.
|
|
14799
|
+
* @constructor
|
|
14768
14800
|
*/
|
|
14769
14801
|
messages.control.ConnectResponse = function () {
|
|
14770
|
-
|
|
14802
|
+
this.init(messages.MessageTypeNames.ctrl.CONNECT_RESPONSE);
|
|
14771
14803
|
|
|
14772
|
-
|
|
14773
|
-
|
|
14774
|
-
|
|
14775
|
-
|
|
14776
|
-
|
|
14804
|
+
/**
|
|
14805
|
+
* The server version.
|
|
14806
|
+
* @type {string}
|
|
14807
|
+
*/
|
|
14808
|
+
this.version = null;
|
|
14777
14809
|
|
|
14778
|
-
|
|
14779
|
-
|
|
14780
|
-
|
|
14781
|
-
|
|
14782
|
-
|
|
14810
|
+
/**
|
|
14811
|
+
* The flow control check interval.
|
|
14812
|
+
* @type {number}
|
|
14813
|
+
*/
|
|
14814
|
+
this.flowControlCheckInterval = null;
|
|
14783
14815
|
|
|
14784
|
-
|
|
14785
|
-
|
|
14786
|
-
|
|
14787
|
-
|
|
14788
|
-
|
|
14816
|
+
/**
|
|
14817
|
+
* The server instance connected to.
|
|
14818
|
+
* @type {string}
|
|
14819
|
+
*/
|
|
14820
|
+
this.serverInstance = null;
|
|
14789
14821
|
|
|
14790
|
-
|
|
14791
|
-
|
|
14792
|
-
|
|
14793
|
-
|
|
14794
|
-
|
|
14822
|
+
/**
|
|
14823
|
+
* The conflation rate in milliseconds.
|
|
14824
|
+
* @type {number}
|
|
14825
|
+
*/
|
|
14826
|
+
this.conflationMs = null;
|
|
14795
14827
|
};
|
|
14796
14828
|
messages.control.ConnectResponse.prototype = new messages.control.BaseResponse();
|
|
14797
14829
|
|
|
14798
|
-
/**
|
|
14799
|
-
* Creates a new reconnect response message
|
|
14800
|
-
* @constructor
|
|
14830
|
+
/**
|
|
14831
|
+
* Creates a new reconnect response message
|
|
14832
|
+
* @constructor
|
|
14801
14833
|
*/
|
|
14802
14834
|
messages.control.ReconnectResponse = function () {
|
|
14803
|
-
|
|
14835
|
+
undefined.init(messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE);
|
|
14804
14836
|
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
|
|
14808
|
-
|
|
14809
|
-
|
|
14837
|
+
/**
|
|
14838
|
+
* The server version.
|
|
14839
|
+
* @type {string}
|
|
14840
|
+
*/
|
|
14841
|
+
undefined.version = null;
|
|
14810
14842
|
|
|
14811
|
-
|
|
14812
|
-
|
|
14813
|
-
|
|
14814
|
-
|
|
14815
|
-
|
|
14843
|
+
/**
|
|
14844
|
+
* The flow control check interval.
|
|
14845
|
+
* @type {number}
|
|
14846
|
+
*/
|
|
14847
|
+
undefined.flowControlCheckInterval = null;
|
|
14816
14848
|
|
|
14817
|
-
|
|
14818
|
-
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
-
|
|
14849
|
+
/**
|
|
14850
|
+
* The server instance connected to.
|
|
14851
|
+
* @type {string}
|
|
14852
|
+
*/
|
|
14853
|
+
undefined.serverInstance = null;
|
|
14822
14854
|
|
|
14823
|
-
|
|
14824
|
-
|
|
14825
|
-
|
|
14826
|
-
|
|
14827
|
-
|
|
14855
|
+
/**
|
|
14856
|
+
* The conflation rate in milliseconds.
|
|
14857
|
+
* @type {number}
|
|
14858
|
+
*/
|
|
14859
|
+
undefined.conflationMs = null;
|
|
14828
14860
|
|
|
14829
|
-
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
|
|
14861
|
+
/**
|
|
14862
|
+
* The previous subscriptions
|
|
14863
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
14864
|
+
*/
|
|
14865
|
+
undefined.previousSubscriptions = null;
|
|
14834
14866
|
};
|
|
14835
14867
|
|
|
14836
|
-
/**
|
|
14837
|
-
* Creates a connection response message.
|
|
14838
|
-
* @constructor
|
|
14868
|
+
/**
|
|
14869
|
+
* Creates a connection response message.
|
|
14870
|
+
* @constructor
|
|
14839
14871
|
*/
|
|
14840
14872
|
messages.control.ConnectionClose = function () {
|
|
14841
|
-
|
|
14873
|
+
this.init(messages.MessageTypeNames.ctrl.CONNECTION_CLOSE);
|
|
14842
14874
|
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
|
|
14875
|
+
/**
|
|
14876
|
+
* The connection close reason code.
|
|
14877
|
+
* @type {number}
|
|
14878
|
+
* @see {@link messages.control.ResponseCodes}
|
|
14879
|
+
*/
|
|
14880
|
+
this.code = null;
|
|
14849
14881
|
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14882
|
+
/**
|
|
14883
|
+
* The connection close reason message.
|
|
14884
|
+
* @type {string}
|
|
14885
|
+
* @see {@link messages.control.ResponseCodes}
|
|
14886
|
+
*/
|
|
14887
|
+
this.reason = null;
|
|
14856
14888
|
};
|
|
14857
14889
|
messages.control.ConnectionClose.prototype = new messages.control.CtrlMessage();
|
|
14858
14890
|
|
|
14859
|
-
/**
|
|
14860
|
-
* Creates a slow connection response message.
|
|
14861
|
-
* @constructor
|
|
14891
|
+
/**
|
|
14892
|
+
* Creates a slow connection response message.
|
|
14893
|
+
* @constructor
|
|
14862
14894
|
*/
|
|
14863
14895
|
messages.control.SlowConnection = function () {
|
|
14864
|
-
|
|
14896
|
+
this.init(messages.MessageTypeNames.ctrl.SLOW_CONNECTION);
|
|
14865
14897
|
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
|
|
14898
|
+
/**
|
|
14899
|
+
* The number of times that the connection has exceeded already.
|
|
14900
|
+
* @type {number}
|
|
14901
|
+
*/
|
|
14902
|
+
this.timesExceeded = null;
|
|
14871
14903
|
|
|
14872
|
-
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
|
|
14904
|
+
/**
|
|
14905
|
+
* The max number allowed. The connection may close after reaching this number.
|
|
14906
|
+
* @type {number}
|
|
14907
|
+
*/
|
|
14908
|
+
this.maxExceed = null;
|
|
14877
14909
|
};
|
|
14878
14910
|
messages.control.SlowConnection.prototype = new messages.control.CtrlMessage();
|
|
14879
14911
|
|
|
14880
|
-
/**
|
|
14881
|
-
* Creates a flow control message.
|
|
14882
|
-
* @constructor
|
|
14912
|
+
/**
|
|
14913
|
+
* Creates a flow control message.
|
|
14914
|
+
* @constructor
|
|
14883
14915
|
*/
|
|
14884
14916
|
messages.control.FlowMessage = function () {
|
|
14885
|
-
|
|
14917
|
+
this.init(messages.MessageTypeNames.ctrl.FLOW);
|
|
14886
14918
|
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
|
|
14890
|
-
|
|
14891
|
-
|
|
14892
|
-
|
|
14919
|
+
/**
|
|
14920
|
+
* Last received sequence number.
|
|
14921
|
+
* @type {number}
|
|
14922
|
+
* @see {@link messages.LongSequence}
|
|
14923
|
+
*/
|
|
14924
|
+
this.sequence = null;
|
|
14893
14925
|
};
|
|
14894
14926
|
messages.control.FlowMessage.prototype = new messages.control.CtrlMessage();
|
|
14895
14927
|
|
|
14896
|
-
/**
|
|
14897
|
-
* Creates an Auth message for Stomp connection Auth verification.
|
|
14898
|
-
* @constructor
|
|
14928
|
+
/**
|
|
14929
|
+
* Creates an Auth message for Stomp connection Auth verification.
|
|
14930
|
+
* @constructor
|
|
14899
14931
|
*/
|
|
14900
14932
|
messages.control.AuthenticationMessage = function () {
|
|
14901
|
-
|
|
14933
|
+
this.init(messages.MessageTypeNames.ctrl.AUTHENTICATION);
|
|
14902
14934
|
|
|
14903
|
-
|
|
14904
|
-
|
|
14905
|
-
|
|
14906
|
-
|
|
14907
|
-
|
|
14935
|
+
/**
|
|
14936
|
+
* Auth method.
|
|
14937
|
+
* @type {String}
|
|
14938
|
+
*/
|
|
14939
|
+
this.authenticationMethod = null;
|
|
14908
14940
|
|
|
14909
|
-
|
|
14910
|
-
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
|
|
14941
|
+
/**
|
|
14942
|
+
* Auth WMID if using enterprise token auth method we need to have both wmid and authorization.
|
|
14943
|
+
* @type {String}
|
|
14944
|
+
*/
|
|
14945
|
+
this.wmid = null;
|
|
14914
14946
|
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
14947
|
+
/**
|
|
14948
|
+
* Auth token.
|
|
14949
|
+
* @type {String}
|
|
14950
|
+
*/
|
|
14951
|
+
this.authorization = null;
|
|
14920
14952
|
|
|
14921
|
-
|
|
14922
|
-
|
|
14923
|
-
|
|
14924
|
-
|
|
14925
|
-
|
|
14953
|
+
/**
|
|
14954
|
+
* Requested conflation. Null indicates using the default conflation.
|
|
14955
|
+
* @type {number}
|
|
14956
|
+
*/
|
|
14957
|
+
this.conflation = 150;
|
|
14926
14958
|
|
|
14927
|
-
|
|
14928
|
-
|
|
14929
|
-
|
|
14930
|
-
|
|
14931
|
-
|
|
14959
|
+
/**
|
|
14960
|
+
*
|
|
14961
|
+
* @type {Boolean}
|
|
14962
|
+
*/
|
|
14963
|
+
this.rejectExcessiveConnection = false;
|
|
14932
14964
|
};
|
|
14933
14965
|
messages.control.AuthenticationMessage.prototype = new messages.control.CtrlMessage();
|
|
14934
14966
|
|
|
14935
|
-
/**
|
|
14936
|
-
* Creates a stats response message.
|
|
14937
|
-
* @constructor
|
|
14967
|
+
/**
|
|
14968
|
+
* Creates a stats response message.
|
|
14969
|
+
* @constructor
|
|
14938
14970
|
*/
|
|
14939
14971
|
messages.control.StatsResponse = function () {
|
|
14940
|
-
|
|
14972
|
+
this.init(messages.MessageTypeNames.ctrl.STATS_RESPONSE);
|
|
14941
14973
|
|
|
14942
|
-
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14947
|
-
|
|
14948
|
-
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
14954
|
-
|
|
14955
|
-
|
|
14956
|
-
|
|
14957
|
-
|
|
14958
|
-
|
|
14959
|
-
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
|
|
14966
|
-
|
|
14967
|
-
|
|
14968
|
-
|
|
14969
|
-
|
|
14970
|
-
|
|
14971
|
-
|
|
14972
|
-
|
|
14973
|
-
|
|
14974
|
-
|
|
14975
|
-
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
|
|
14980
|
-
|
|
14981
|
-
|
|
14974
|
+
/**
|
|
14975
|
+
*
|
|
14976
|
+
* @type {number}
|
|
14977
|
+
*/
|
|
14978
|
+
this.numberOfSubscribedSymbolsL1 = null;
|
|
14979
|
+
/**
|
|
14980
|
+
*
|
|
14981
|
+
* @type {number}
|
|
14982
|
+
*/
|
|
14983
|
+
this.numberOfAvailableSymbolsL1 = null;
|
|
14984
|
+
/**
|
|
14985
|
+
*
|
|
14986
|
+
* @type {number}
|
|
14987
|
+
*/
|
|
14988
|
+
this.numberOfSubscribedSymbolsL2 = null;
|
|
14989
|
+
/**
|
|
14990
|
+
*
|
|
14991
|
+
* @type {number}
|
|
14992
|
+
*/
|
|
14993
|
+
this.numberOfAvailableSymbolsL2 = null;
|
|
14994
|
+
/**
|
|
14995
|
+
*
|
|
14996
|
+
* @type {number}
|
|
14997
|
+
*/
|
|
14998
|
+
this.numberOfOpenedConnections = null;
|
|
14999
|
+
/**
|
|
15000
|
+
*
|
|
15001
|
+
* @type {number}
|
|
15002
|
+
*/
|
|
15003
|
+
this.numberOfAvailableConnections = null;
|
|
15004
|
+
/**
|
|
15005
|
+
*
|
|
15006
|
+
* @type {number}
|
|
15007
|
+
*/
|
|
15008
|
+
this.numberOfSubscribedExchanges = null;
|
|
15009
|
+
/**
|
|
15010
|
+
*
|
|
15011
|
+
* @type {number}
|
|
15012
|
+
*/
|
|
15013
|
+
this.numberOfSubscribedTrades = null;
|
|
14982
15014
|
};
|
|
14983
15015
|
messages.control.StatsResponse.prototype = new messages.control.BaseResponse();
|
|
14984
15016
|
|
|
14985
|
-
/**
|
|
14986
|
-
* Creates a Initial Data Sent response message.
|
|
14987
|
-
* @constructor
|
|
15017
|
+
/**
|
|
15018
|
+
* Creates a Initial Data Sent response message.
|
|
15019
|
+
* @constructor
|
|
14988
15020
|
*/
|
|
14989
15021
|
messages.control.InitialDataSent = function () {
|
|
14990
|
-
|
|
15022
|
+
this.init(messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT);
|
|
14991
15023
|
|
|
14992
|
-
|
|
14993
|
-
|
|
14994
|
-
|
|
14995
|
-
|
|
14996
|
-
|
|
14997
|
-
|
|
15024
|
+
/**
|
|
15025
|
+
* The timestamp of message creation.
|
|
15026
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15027
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15028
|
+
*/
|
|
15029
|
+
this.timestamp = null;
|
|
14998
15030
|
};
|
|
14999
15031
|
messages.control.InitialDataSent.prototype = new messages.control.CtrlMessage();
|
|
15000
15032
|
|
|
15001
|
-
/**
|
|
15002
|
-
* Creates a Resubscribe message.
|
|
15003
|
-
* @constructor
|
|
15033
|
+
/**
|
|
15034
|
+
* Creates a Resubscribe message.
|
|
15035
|
+
* @constructor
|
|
15004
15036
|
*/
|
|
15005
15037
|
messages.control.ResubscribeMessage = function () {
|
|
15006
|
-
|
|
15038
|
+
this.init(messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE);
|
|
15007
15039
|
|
|
15008
|
-
|
|
15009
|
-
|
|
15010
|
-
|
|
15011
|
-
|
|
15012
|
-
|
|
15013
|
-
|
|
15040
|
+
/**
|
|
15041
|
+
* The timestamp of message creation.
|
|
15042
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15043
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15044
|
+
*/
|
|
15045
|
+
this.timestamp = null;
|
|
15014
15046
|
};
|
|
15015
15047
|
messages.control.ResubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15016
15048
|
|
|
15017
|
-
/**
|
|
15018
|
-
* Creates a Missed Data Sent response message.
|
|
15019
|
-
* @constructor
|
|
15049
|
+
/**
|
|
15050
|
+
* Creates a Missed Data Sent response message.
|
|
15051
|
+
* @constructor
|
|
15020
15052
|
*/
|
|
15021
15053
|
messages.control.MissedDataSent = function () {
|
|
15022
|
-
|
|
15054
|
+
this.init(messages.MessageTypeNames.ctrl.MISSED_DATA_SENT);
|
|
15023
15055
|
|
|
15024
|
-
|
|
15025
|
-
|
|
15026
|
-
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
|
|
15056
|
+
/**
|
|
15057
|
+
* The timestamp of message creation.
|
|
15058
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15059
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15060
|
+
*/
|
|
15061
|
+
this.timestamp = null;
|
|
15030
15062
|
};
|
|
15031
15063
|
messages.control.MissedDataSent.prototype = new messages.control.CtrlMessage();
|
|
15032
15064
|
|
|
15033
|
-
/**
|
|
15034
|
-
* Stream entitlement types.
|
|
15035
|
-
* @enum
|
|
15036
|
-
* @readonly
|
|
15065
|
+
/**
|
|
15066
|
+
* Stream entitlement types.
|
|
15067
|
+
* @enum
|
|
15068
|
+
* @readonly
|
|
15037
15069
|
*/
|
|
15038
15070
|
messages.control.StreamEntitlementType = {
|
|
15039
|
-
|
|
15040
|
-
|
|
15041
|
-
|
|
15042
|
-
|
|
15043
|
-
|
|
15044
|
-
|
|
15045
|
-
|
|
15046
|
-
|
|
15071
|
+
RT: "Realtime",
|
|
15072
|
+
RTO: "Realtime CBOE ONE",
|
|
15073
|
+
RTN: "Realtime NASDAQ",
|
|
15074
|
+
RTB: "Realtime BATS",
|
|
15075
|
+
DL: "Delayed",
|
|
15076
|
+
DLO: "Delayed CBOE One",
|
|
15077
|
+
DLN: "Delayed NASDAQ",
|
|
15078
|
+
NA: "Not Entitled"
|
|
15047
15079
|
};
|
|
15048
15080
|
|
|
15049
|
-
/**
|
|
15050
|
-
* Enumeration for subscription actions.
|
|
15051
|
-
* @enum
|
|
15052
|
-
* @readonly
|
|
15081
|
+
/**
|
|
15082
|
+
* Enumeration for subscription actions.
|
|
15083
|
+
* @enum
|
|
15084
|
+
* @readonly
|
|
15053
15085
|
*/
|
|
15054
15086
|
messages.control.Action = {
|
|
15055
|
-
|
|
15056
|
-
|
|
15087
|
+
SUBSCRIBE: "SUBSCRIBE",
|
|
15088
|
+
UNSUBSCRIBE: "UNSUBSCRIBE"
|
|
15057
15089
|
};
|
|
15058
15090
|
|
|
15059
|
-
/**
|
|
15060
|
-
* Enumeration for associations.
|
|
15061
|
-
* @enum
|
|
15062
|
-
* @readonly
|
|
15091
|
+
/**
|
|
15092
|
+
* Enumeration for associations.
|
|
15093
|
+
* @enum
|
|
15094
|
+
* @readonly
|
|
15063
15095
|
*/
|
|
15064
15096
|
messages.control.Association = {
|
|
15065
|
-
|
|
15066
|
-
|
|
15067
|
-
|
|
15097
|
+
AND: "AND",
|
|
15098
|
+
OR: "OR",
|
|
15099
|
+
NOT: "NOT"
|
|
15068
15100
|
};
|
|
15069
15101
|
|
|
15070
|
-
/**
|
|
15071
|
-
* Enumeration for streaming message types.
|
|
15072
|
-
* @enum
|
|
15073
|
-
* @readonly
|
|
15102
|
+
/**
|
|
15103
|
+
* Enumeration for streaming message types.
|
|
15104
|
+
* @enum
|
|
15105
|
+
* @readonly
|
|
15106
|
+
* @deprecated Use the messages.market.SubscriptionTypes along with messages.market.MarketDataResponseTypes
|
|
15074
15107
|
*/
|
|
15075
15108
|
messages.control.MarketdataType = {
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
|
|
15081
|
-
|
|
15082
|
-
|
|
15083
|
-
|
|
15084
|
-
|
|
15085
|
-
|
|
15086
|
-
|
|
15087
|
-
|
|
15088
|
-
|
|
15089
|
-
|
|
15109
|
+
QUOTE: "QUOTE",
|
|
15110
|
+
PRICEDATA: "PRICEDATA",
|
|
15111
|
+
TRADE: "TRADE",
|
|
15112
|
+
MMQUOTE: "MMQUOTE",
|
|
15113
|
+
ORDERBOOK: "ORDERBOOK",
|
|
15114
|
+
INTERVAL: "INTERVAL",
|
|
15115
|
+
NETHOUSEPOSITION: "NETHOUSEPOSITION",
|
|
15116
|
+
LASTSALE: "LASTSALE",
|
|
15117
|
+
BOOKORDER: "BOOKORDER",
|
|
15118
|
+
BOOKDELETE: "BOOKDELETE",
|
|
15119
|
+
PURGEBOOK: "PURGEBOOK",
|
|
15120
|
+
LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
|
|
15121
|
+
IVGREEKS: "IVGREEKS",
|
|
15122
|
+
IMBALANCESTATUS: "IMBALANCESTATUS"
|
|
15090
15123
|
};
|
|
15091
15124
|
|
|
15092
|
-
/**
|
|
15093
|
-
*
|
|
15094
|
-
* @enum
|
|
15095
|
-
* @readonly
|
|
15125
|
+
/**
|
|
15126
|
+
* Enum for the allowed subscription types
|
|
15127
|
+
* @enum
|
|
15128
|
+
* @readonly
|
|
15096
15129
|
*/
|
|
15097
|
-
messages.
|
|
15098
|
-
|
|
15099
|
-
|
|
15130
|
+
messages.market.SubscriptionTypes = {
|
|
15131
|
+
QUOTE: "QUOTE",
|
|
15132
|
+
PRICEDATA: "PRICEDATA",
|
|
15133
|
+
TRADE: "TRADE",
|
|
15134
|
+
MMQUOTE: "MMQUOTE",
|
|
15135
|
+
ORDERBOOK: "ORDERBOOK",
|
|
15136
|
+
INTERVAL: "INTERVAL",
|
|
15137
|
+
NETHOUSEPOSITION: "NETHOUSEPOSITION",
|
|
15138
|
+
LASTSALE: "LASTSALE",
|
|
15139
|
+
LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
|
|
15140
|
+
IVGREEKS: "IVGREEKS",
|
|
15141
|
+
IMBALANCESTATUS: "IMBALANCESTATUS"
|
|
15142
|
+
|
|
15143
|
+
/**
|
|
15144
|
+
* Enum for streamer responses from server
|
|
15145
|
+
* @enum
|
|
15146
|
+
* @readonly
|
|
15147
|
+
*/
|
|
15148
|
+
};messages.market.MarketDataResponseTypes = {
|
|
15149
|
+
QUOTE: "QUOTE",
|
|
15150
|
+
PRICEDATA: "PRICEDATA",
|
|
15151
|
+
TRADE: "TRADE",
|
|
15152
|
+
INTERVAL: "INTERVAL",
|
|
15153
|
+
NETHOUSEPOSITION: "NETHOUSEPOSITION",
|
|
15154
|
+
MMQUOTE: "MMQUOTE",
|
|
15155
|
+
BOOKORDER: "BOOKORDER",
|
|
15156
|
+
PURGEBOOK: "PURGEBOOK",
|
|
15157
|
+
BOOKDELETE: "BOOKDELETE",
|
|
15158
|
+
SYMBOLINFO: "SYMBOLINFO",
|
|
15159
|
+
SYMBOLSTATUS: "SYMBOLSTATUS",
|
|
15160
|
+
DERIVATIVEINFO: "DERIVATIVEINFO",
|
|
15161
|
+
LASTSALE: "LASTSALE",
|
|
15162
|
+
LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
|
|
15163
|
+
IVGREEKS: "IVGREEKS",
|
|
15164
|
+
IMBALANCESTATUS: "IMBALANCESTATUS",
|
|
15165
|
+
ALERT: "ALERT",
|
|
15166
|
+
NEWS: "NEWS",
|
|
15167
|
+
TRADENOTIFICATION: "TRADENOTIFICATION",
|
|
15168
|
+
NEWSCMDFILTER: "NEWSCMDFILTER",
|
|
15169
|
+
NEWSERROR: "NEWSERROR",
|
|
15170
|
+
DIVIDEND: "DIVIDEND"
|
|
15171
|
+
|
|
15172
|
+
/**
|
|
15173
|
+
* Response codes and reasons.
|
|
15174
|
+
* @enum
|
|
15175
|
+
* @readonly
|
|
15176
|
+
*/
|
|
15177
|
+
};messages.control.ResponseCodes = {
|
|
15178
|
+
OK_CODE: 200,
|
|
15179
|
+
OK_REASON: "OK",
|
|
15100
15180
|
|
|
15101
|
-
|
|
15102
|
-
|
|
15181
|
+
BADREQUEST_CODE: 400,
|
|
15182
|
+
BADREQUEST_REASON: "Bad Request",
|
|
15103
15183
|
|
|
15104
|
-
|
|
15105
|
-
|
|
15184
|
+
UNAUTHORIZED_CODE: 401,
|
|
15185
|
+
UNAUTHORIZED_REASON: "Unauthorized",
|
|
15106
15186
|
|
|
15107
|
-
|
|
15108
|
-
|
|
15187
|
+
TOOSLOW_CODE: 450,
|
|
15188
|
+
TOOSLOW_REASON: "Too slow",
|
|
15109
15189
|
|
|
15110
|
-
|
|
15111
|
-
|
|
15190
|
+
DATA_SOURCE_RESET: 454,
|
|
15191
|
+
DATA_SOURCE_RESET_REASON: "Data Source Was Reset",
|
|
15112
15192
|
|
|
15113
|
-
|
|
15114
|
-
|
|
15193
|
+
CONNECTION_LIMIT_EXCEEDED_CODE: 452,
|
|
15194
|
+
CONNECTION_LIMIT_EXCEEDED_REASON: "Connection Limit Exceeded",
|
|
15115
15195
|
|
|
15116
|
-
|
|
15117
|
-
|
|
15196
|
+
INTERNALSERVERERROR_CODE: 500,
|
|
15197
|
+
INTERNALSERVERERROR_REASON: "Internal Server Error"
|
|
15118
15198
|
};
|
|
15119
15199
|
|
|
15120
15200
|
/* ****************************************************************************************************************** */
|
|
15121
15201
|
|
|
15122
|
-
/**
|
|
15123
|
-
* Base type for all market data exports.
|
|
15124
|
-
* @constructor
|
|
15125
|
-
* @abstract
|
|
15202
|
+
/**
|
|
15203
|
+
* Base type for all market data exports.
|
|
15204
|
+
* @constructor
|
|
15205
|
+
* @abstract
|
|
15126
15206
|
*/
|
|
15127
15207
|
messages.market.DataMessage = function () {
|
|
15128
|
-
|
|
15129
|
-
|
|
15130
|
-
|
|
15131
|
-
|
|
15132
|
-
|
|
15133
|
-
|
|
15208
|
+
/**
|
|
15209
|
+
* The message type.
|
|
15210
|
+
* @type {number}
|
|
15211
|
+
* @see messages.MessageTypeNames_0.data
|
|
15212
|
+
*/
|
|
15213
|
+
this.messageType = null;
|
|
15134
15214
|
};
|
|
15135
15215
|
messages.market.DataMessage.prototype = new messages.Message();
|
|
15136
15216
|
|
|
15137
|
-
/**
|
|
15138
|
-
*
|
|
15139
|
-
* @constructor
|
|
15217
|
+
/**
|
|
15218
|
+
*
|
|
15219
|
+
* @constructor
|
|
15140
15220
|
*/
|
|
15141
15221
|
messages.market.Quote = function () {
|
|
15142
|
-
|
|
15222
|
+
this.init(messages.MessageTypeNames.data.QUOTE);
|
|
15143
15223
|
|
|
15144
|
-
|
|
15224
|
+
// TODO properties
|
|
15145
15225
|
};
|
|
15146
15226
|
messages.market.Quote.prototype = new messages.market.DataMessage();
|
|
15147
15227
|
|
|
15148
|
-
/**
|
|
15149
|
-
*
|
|
15150
|
-
* @constructor
|
|
15228
|
+
/**
|
|
15229
|
+
*
|
|
15230
|
+
* @constructor
|
|
15151
15231
|
*/
|
|
15152
15232
|
messages.market.PriceData = function () {
|
|
15153
|
-
|
|
15233
|
+
this.init(messages.MessageTypeNames.data.PRICEDATA);
|
|
15154
15234
|
|
|
15155
|
-
|
|
15235
|
+
// TODO properties
|
|
15156
15236
|
};
|
|
15157
15237
|
messages.market.PriceData.prototype = new messages.market.DataMessage();
|
|
15158
15238
|
|
|
15159
|
-
/**
|
|
15160
|
-
*
|
|
15161
|
-
* @constructor
|
|
15239
|
+
/**
|
|
15240
|
+
*
|
|
15241
|
+
* @constructor
|
|
15162
15242
|
*/
|
|
15163
15243
|
messages.market.Trade = function () {
|
|
15164
|
-
|
|
15244
|
+
this.init(messages.MessageTypeNames.data.TRADE);
|
|
15165
15245
|
|
|
15166
|
-
|
|
15246
|
+
// TODO properties
|
|
15167
15247
|
};
|
|
15168
15248
|
messages.market.Trade.prototype = new messages.market.DataMessage();
|
|
15169
15249
|
|
|
15170
|
-
/**
|
|
15171
|
-
*
|
|
15172
|
-
* @constructor
|
|
15250
|
+
/**
|
|
15251
|
+
*
|
|
15252
|
+
* @constructor
|
|
15173
15253
|
*/
|
|
15174
15254
|
messages.market.MMQuote = function () {
|
|
15175
|
-
|
|
15255
|
+
this.init(messages.MessageTypeNames.data.MMQUOTE);
|
|
15176
15256
|
|
|
15177
|
-
|
|
15257
|
+
// TODO properties
|
|
15178
15258
|
};
|
|
15179
15259
|
messages.market.MMQuote.prototype = new messages.market.DataMessage();
|
|
15180
15260
|
|
|
15181
|
-
/**
|
|
15182
|
-
*
|
|
15183
|
-
* @constructor
|
|
15261
|
+
/**
|
|
15262
|
+
*
|
|
15263
|
+
* @constructor
|
|
15184
15264
|
*/
|
|
15185
15265
|
messages.market.PurgeBook = function () {
|
|
15186
|
-
|
|
15266
|
+
this.init(messages.MessageTypeNames.data.PURGEBOOK);
|
|
15187
15267
|
|
|
15188
|
-
|
|
15268
|
+
// TODO properties
|
|
15189
15269
|
};
|
|
15190
15270
|
messages.market.PurgeBook.prototype = new messages.market.DataMessage();
|
|
15191
15271
|
|
|
15192
|
-
/**
|
|
15193
|
-
*
|
|
15194
|
-
* @constructor
|
|
15272
|
+
/**
|
|
15273
|
+
*
|
|
15274
|
+
* @constructor
|
|
15195
15275
|
*/
|
|
15196
15276
|
messages.market.BookOrder = function () {
|
|
15197
|
-
|
|
15277
|
+
this.init(messages.MessageTypeNames.data.BOOKORDER);
|
|
15198
15278
|
|
|
15199
|
-
|
|
15279
|
+
// TODO properties
|
|
15200
15280
|
};
|
|
15201
15281
|
messages.market.BookOrder.prototype = new messages.market.DataMessage();
|
|
15202
15282
|
|
|
15203
|
-
/**
|
|
15204
|
-
*
|
|
15205
|
-
* @constructor
|
|
15283
|
+
/**
|
|
15284
|
+
*
|
|
15285
|
+
* @constructor
|
|
15206
15286
|
*/
|
|
15207
15287
|
messages.market.BookDelete = function () {
|
|
15208
|
-
|
|
15288
|
+
this.init(messages.MessageTypeNames.data.BOOKDELETE);
|
|
15209
15289
|
|
|
15210
|
-
|
|
15290
|
+
// TODO properties
|
|
15211
15291
|
};
|
|
15212
15292
|
messages.market.BookDelete.prototype = new messages.market.DataMessage();
|
|
15213
15293
|
|
|
15214
|
-
/**
|
|
15215
|
-
*
|
|
15216
|
-
* @constructor
|
|
15294
|
+
/**
|
|
15295
|
+
*
|
|
15296
|
+
* @constructor
|
|
15217
15297
|
*/
|
|
15218
15298
|
messages.market.Interval = function () {
|
|
15219
|
-
|
|
15299
|
+
this.init(messages.MessageTypeNames.data.INTERVAL);
|
|
15220
15300
|
|
|
15221
|
-
|
|
15301
|
+
// TODO properties
|
|
15222
15302
|
};
|
|
15223
15303
|
messages.market.Interval.prototype = new messages.market.DataMessage();
|
|
15224
15304
|
|
|
15225
|
-
/**
|
|
15226
|
-
*
|
|
15227
|
-
* @constructor
|
|
15305
|
+
/**
|
|
15306
|
+
*
|
|
15307
|
+
* @constructor
|
|
15228
15308
|
*/
|
|
15229
15309
|
messages.market.NethousePosition = function () {
|
|
15230
|
-
|
|
15310
|
+
this.init(messages.MessageTypeNames.data.NETHOUSEPOSITION);
|
|
15231
15311
|
|
|
15232
|
-
|
|
15312
|
+
// TODO properties
|
|
15233
15313
|
};
|
|
15234
15314
|
messages.market.NethousePosition.prototype = new messages.market.DataMessage();
|
|
15235
15315
|
|
|
15236
|
-
/**
|
|
15237
|
-
*
|
|
15238
|
-
* @constructor
|
|
15316
|
+
/**
|
|
15317
|
+
*
|
|
15318
|
+
* @constructor
|
|
15239
15319
|
*/
|
|
15240
15320
|
messages.market.SymbolInfo = function () {
|
|
15241
|
-
|
|
15321
|
+
this.init(messages.MessageTypeNames.data.SYMBOLINFO);
|
|
15242
15322
|
|
|
15243
|
-
|
|
15323
|
+
// TODO properties
|
|
15244
15324
|
};
|
|
15245
15325
|
messages.market.SymbolInfo.prototype = new messages.market.DataMessage();
|
|
15246
15326
|
|
|
15247
|
-
/**
|
|
15248
|
-
*
|
|
15249
|
-
* @constructor
|
|
15327
|
+
/**
|
|
15328
|
+
*
|
|
15329
|
+
* @constructor
|
|
15250
15330
|
*/
|
|
15251
15331
|
messages.market.SymbolStatus = function () {
|
|
15252
|
-
|
|
15332
|
+
this.init(messages.MessageTypeNames.data.SYMBOLSTATUS);
|
|
15253
15333
|
|
|
15254
|
-
|
|
15334
|
+
// TODO properties
|
|
15255
15335
|
};
|
|
15256
15336
|
messages.market.SymbolStatus.prototype = new messages.market.DataMessage();
|
|
15257
15337
|
|
|
15258
|
-
/**
|
|
15259
|
-
*
|
|
15260
|
-
* @constructor
|
|
15338
|
+
/**
|
|
15339
|
+
*
|
|
15340
|
+
* @constructor
|
|
15261
15341
|
*/
|
|
15262
15342
|
messages.market.DerivativeInfo = function () {
|
|
15263
|
-
|
|
15343
|
+
this.init(messages.MessageTypeNames.data.DERIVATIVEINFO);
|
|
15264
15344
|
|
|
15265
|
-
|
|
15345
|
+
// TODO properties
|
|
15266
15346
|
};
|
|
15267
15347
|
messages.market.DerivativeInfo.prototype = new messages.market.DataMessage();
|
|
15268
15348
|
|
|
15269
|
-
/**
|
|
15270
|
-
*
|
|
15271
|
-
* @constructor
|
|
15349
|
+
/**
|
|
15350
|
+
*
|
|
15351
|
+
* @constructor
|
|
15272
15352
|
*/
|
|
15273
15353
|
messages.market.IVGreeks = function () {
|
|
15274
|
-
|
|
15354
|
+
this.init(messages.MessageTypeNames.data.IVGREEKS);
|
|
15275
15355
|
|
|
15276
|
-
|
|
15356
|
+
// TODO properties
|
|
15277
15357
|
};
|
|
15278
15358
|
messages.market.IVGreeks.prototype = new messages.market.DataMessage();
|
|
15279
15359
|
|
|
15280
|
-
/**
|
|
15281
|
-
*
|
|
15282
|
-
* @constructor
|
|
15360
|
+
/**
|
|
15361
|
+
*
|
|
15362
|
+
* @constructor
|
|
15283
15363
|
*/
|
|
15284
15364
|
messages.market.LastSale = function () {
|
|
15285
|
-
|
|
15365
|
+
this.init(messages.MessageTypeNames.data.LASTSALE);
|
|
15286
15366
|
|
|
15287
|
-
|
|
15367
|
+
// TODO properties
|
|
15288
15368
|
};
|
|
15289
15369
|
messages.market.LastSale.prototype = new messages.market.DataMessage();
|
|
15290
15370
|
|
|
15291
|
-
/**
|
|
15292
|
-
*
|
|
15293
|
-
* @constructor
|
|
15371
|
+
/**
|
|
15372
|
+
*
|
|
15373
|
+
* @constructor
|
|
15294
15374
|
*/
|
|
15295
15375
|
messages.market.LimitUpLimitDown = function () {
|
|
15296
|
-
|
|
15376
|
+
this.init(messages.MessageTypeNames.data.LIMITUPLIMITDOWN);
|
|
15297
15377
|
|
|
15298
|
-
|
|
15378
|
+
// TODO properties
|
|
15299
15379
|
};
|
|
15300
15380
|
messages.market.LimitUpLimitDown.prototype = new messages.market.DataMessage();
|
|
15301
15381
|
|
|
15302
|
-
/**
|
|
15303
|
-
*
|
|
15304
|
-
* @constructor
|
|
15382
|
+
/**
|
|
15383
|
+
*
|
|
15384
|
+
* @constructor
|
|
15305
15385
|
*/
|
|
15306
15386
|
messages.market.ImbalanceStatus = function () {
|
|
15307
|
-
|
|
15387
|
+
this.init(messages.MessageTypeNames.data.IMBALANCESTATUS);
|
|
15308
15388
|
|
|
15309
|
-
|
|
15389
|
+
// TODO properties
|
|
15310
15390
|
};
|
|
15311
15391
|
messages.market.ImbalanceStatus.prototype = new messages.market.DataMessage();
|
|
15312
15392
|
|
|
15313
15393
|
messages.market.Alert = function () {
|
|
15314
|
-
|
|
15394
|
+
this.init(messages.MessageTypeNames.data.ALERT);
|
|
15315
15395
|
|
|
15316
|
-
|
|
15396
|
+
// TODO properties
|
|
15317
15397
|
};
|
|
15318
15398
|
messages.market.Alert.prototype = new messages.market.DataMessage();
|
|
15319
15399
|
|
|
15320
|
-
/**
|
|
15321
|
-
* Enumeration for instrument types.
|
|
15322
|
-
* @enum
|
|
15323
|
-
* @readonly
|
|
15400
|
+
/**
|
|
15401
|
+
* Enumeration for instrument types.
|
|
15402
|
+
* @enum
|
|
15403
|
+
* @readonly
|
|
15324
15404
|
*/
|
|
15325
15405
|
messages.market.InstrumentType = {
|
|
15326
|
-
|
|
15327
|
-
|
|
15328
|
-
|
|
15329
|
-
|
|
15330
|
-
|
|
15331
|
-
|
|
15332
|
-
|
|
15333
|
-
|
|
15334
|
-
|
|
15335
|
-
|
|
15336
|
-
|
|
15337
|
-
|
|
15338
|
-
|
|
15339
|
-
|
|
15340
|
-
|
|
15341
|
-
|
|
15342
|
-
|
|
15343
|
-
|
|
15344
|
-
|
|
15345
|
-
|
|
15406
|
+
1: "CASH",
|
|
15407
|
+
2: "BOND",
|
|
15408
|
+
3: "COMPOSITE",
|
|
15409
|
+
4: "FUTURE",
|
|
15410
|
+
5: "FUTURE_OPTION",
|
|
15411
|
+
6: "FOREX",
|
|
15412
|
+
7: "INDEX",
|
|
15413
|
+
8: "MUTUAL_FUND",
|
|
15414
|
+
9: "MONEY_MARKET_FUND",
|
|
15415
|
+
10: "MARKET_STAT",
|
|
15416
|
+
11: "EQUITY",
|
|
15417
|
+
12: "EQUITY_OPTION",
|
|
15418
|
+
13: "GOVT_BOND",
|
|
15419
|
+
14: "MUNI_BOND",
|
|
15420
|
+
15: "CORP_BOND",
|
|
15421
|
+
16: "ETF",
|
|
15422
|
+
17: "FUTURE_SPREAD",
|
|
15423
|
+
97: "OPTION_ROOT",
|
|
15424
|
+
98: "UNKNOWN",
|
|
15425
|
+
99: "RATE"
|
|
15346
15426
|
};
|
|
15347
15427
|
|
|
15348
|
-
/**
|
|
15349
|
-
* Enumeration vor order side.
|
|
15350
|
-
* @enum
|
|
15351
|
-
* @readonly
|
|
15428
|
+
/**
|
|
15429
|
+
* Enumeration vor order side.
|
|
15430
|
+
* @enum
|
|
15431
|
+
* @readonly
|
|
15352
15432
|
*/
|
|
15353
15433
|
messages.market.OrderSide = {
|
|
15354
|
-
|
|
15355
|
-
|
|
15434
|
+
BUYSIDE: 'B',
|
|
15435
|
+
SELLSIDE: 'S'
|
|
15356
15436
|
};
|
|
15357
15437
|
|
|
15358
|
-
/**
|
|
15359
|
-
* Enumeration for imbalance types.
|
|
15360
|
-
* @enum
|
|
15361
|
-
* @readonly
|
|
15438
|
+
/**
|
|
15439
|
+
* Enumeration for imbalance types.
|
|
15440
|
+
* @enum
|
|
15441
|
+
* @readonly
|
|
15362
15442
|
*/
|
|
15363
15443
|
messages.market.ImbalanceType = {
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15368
|
-
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15444
|
+
0: "NONE",
|
|
15445
|
+
1: "MARKET",
|
|
15446
|
+
2: "MOC",
|
|
15447
|
+
3: "REGULATORY_IMBALANCE",
|
|
15448
|
+
4: "OPENING_IMBALANCE",
|
|
15449
|
+
5: "CLOSING_IMBALANCE",
|
|
15450
|
+
6: "IPO_IMBALANCE",
|
|
15451
|
+
7: "HALT_IMBALANCE",
|
|
15452
|
+
8: "EQUILIBRIUM"
|
|
15373
15453
|
};
|
|
15374
15454
|
|
|
15375
|
-
/**
|
|
15376
|
-
* Enumeration for book order change types.
|
|
15377
|
-
* @enum
|
|
15378
|
-
* @readonly
|
|
15455
|
+
/**
|
|
15456
|
+
* Enumeration for book order change types.
|
|
15457
|
+
* @enum
|
|
15458
|
+
* @readonly
|
|
15379
15459
|
*/
|
|
15380
15460
|
messages.market.OrderChangeType = {
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15461
|
+
'A': "ADD",
|
|
15462
|
+
'M': "MODIFY",
|
|
15463
|
+
'C': "CANCEL",
|
|
15464
|
+
'E': "EXECUTE"
|
|
15385
15465
|
};
|
|
15386
15466
|
}).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")
|
|
15387
15467
|
},{"_process":119,"buffer":109,"timers":140}],97:[function(require,module,exports){
|
|
@@ -15710,8 +15790,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
15710
15790
|
|
|
15711
15791
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15712
15792
|
|
|
15713
|
-
/*
|
|
15714
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
15793
|
+
/*
|
|
15794
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
15715
15795
|
*/
|
|
15716
15796
|
var QitchTransmitter = function () {
|
|
15717
15797
|
function QitchTransmitter(socket, encoder, log) {
|