@quotemedia.com/streamer 2.41.0 → 2.44.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 -157
- 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 +681 -681
- package/examples/subscription-example.html +252 -252
- package/examples/wmid-example.html +176 -176
- package/package.json +38 -38
- package/{qmci-streamer-2.41.0.js → qmci-streamer-2.44.0.js} +1585 -1458
- package/{qmci-streamer-2.41.0.min.js → qmci-streamer-2.44.0.min.js} +2 -2
- 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
|
};
|
|
@@ -2197,38 +2197,38 @@ exports["default"] = UShortId;
|
|
|
2197
2197
|
|
|
2198
2198
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
2199
2199
|
|
|
2200
|
-
/*
|
|
2201
|
-
* Copyright 2015 Async-IO.org
|
|
2202
|
-
*
|
|
2203
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2204
|
-
* you may not use this file except in compliance with the License.
|
|
2205
|
-
* You may obtain a copy of the License at
|
|
2206
|
-
*
|
|
2207
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2208
|
-
*
|
|
2209
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2210
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2211
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2212
|
-
* See the License for the specific language governing permissions and
|
|
2213
|
-
* limitations under the License.
|
|
2200
|
+
/*
|
|
2201
|
+
* Copyright 2015 Async-IO.org
|
|
2202
|
+
*
|
|
2203
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2204
|
+
* you may not use this file except in compliance with the License.
|
|
2205
|
+
* You may obtain a copy of the License at
|
|
2206
|
+
*
|
|
2207
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2208
|
+
*
|
|
2209
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2210
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2211
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2212
|
+
* See the License for the specific language governing permissions and
|
|
2213
|
+
* limitations under the License.
|
|
2214
2214
|
*/
|
|
2215
|
-
/**
|
|
2216
|
-
* Added binary message processing that reads from the blob.
|
|
2217
|
-
* Tweaked implementation to support binary messages with streaming protocol:
|
|
2218
|
-
* - edited message calculation logic to support multiple messages that could be read from stream at once
|
|
2219
|
-
* without message size being pre-appended;
|
|
2220
|
-
* - override mimetype to be able to retrieve original byte array;
|
|
2221
|
-
* - don't trim string representation of binary messages.
|
|
2215
|
+
/**
|
|
2216
|
+
* Added binary message processing that reads from the blob.
|
|
2217
|
+
* Tweaked implementation to support binary messages with streaming protocol:
|
|
2218
|
+
* - edited message calculation logic to support multiple messages that could be read from stream at once
|
|
2219
|
+
* without message size being pre-appended;
|
|
2220
|
+
* - override mimetype to be able to retrieve original byte array;
|
|
2221
|
+
* - don't trim string representation of binary messages.
|
|
2222
2222
|
*/
|
|
2223
|
-
/**
|
|
2224
|
-
* Atmosphere.js
|
|
2225
|
-
* https://github.com/Atmosphere/atmosphere-javascript
|
|
2226
|
-
*
|
|
2227
|
-
* API reference
|
|
2228
|
-
* https://github.com/Atmosphere/atmosphere/wiki/jQuery.atmosphere.js-API
|
|
2229
|
-
*
|
|
2230
|
-
* Highly inspired by
|
|
2231
|
-
* - Portal by Donghwan Kim http://flowersinthesand.github.io/portal/
|
|
2223
|
+
/**
|
|
2224
|
+
* Atmosphere.js
|
|
2225
|
+
* https://github.com/Atmosphere/atmosphere-javascript
|
|
2226
|
+
*
|
|
2227
|
+
* API reference
|
|
2228
|
+
* https://github.com/Atmosphere/atmosphere/wiki/jQuery.atmosphere.js-API
|
|
2229
|
+
*
|
|
2230
|
+
* Highly inspired by
|
|
2231
|
+
* - Portal by Donghwan Kim http://flowersinthesand.github.io/portal/
|
|
2232
2232
|
*/
|
|
2233
2233
|
(function (root, factory) {
|
|
2234
2234
|
if (typeof define === "function" && define.amd) {
|
|
@@ -2268,41 +2268,41 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2268
2268
|
onClientTimeout: function onClientTimeout(request) {},
|
|
2269
2269
|
onOpenAfterResume: function onOpenAfterResume(request) {},
|
|
2270
2270
|
|
|
2271
|
-
/**
|
|
2272
|
-
* Creates an object based on an atmosphere subscription that exposes functions defined by the Websocket interface.
|
|
2273
|
-
*
|
|
2274
|
-
* @class WebsocketApiAdapter
|
|
2275
|
-
* @param {Object} request the request object to build the underlying subscription
|
|
2276
|
-
* @constructor
|
|
2271
|
+
/**
|
|
2272
|
+
* Creates an object based on an atmosphere subscription that exposes functions defined by the Websocket interface.
|
|
2273
|
+
*
|
|
2274
|
+
* @class WebsocketApiAdapter
|
|
2275
|
+
* @param {Object} request the request object to build the underlying subscription
|
|
2276
|
+
* @constructor
|
|
2277
2277
|
*/
|
|
2278
2278
|
WebsocketApiAdapter: function WebsocketApiAdapter(request) {
|
|
2279
2279
|
var _socket, _adapter;
|
|
2280
2280
|
|
|
2281
|
-
/**
|
|
2282
|
-
* Overrides the onMessage callback in given request.
|
|
2283
|
-
*
|
|
2284
|
-
* @method onMessage
|
|
2285
|
-
* @param {Object} e the event object
|
|
2281
|
+
/**
|
|
2282
|
+
* Overrides the onMessage callback in given request.
|
|
2283
|
+
*
|
|
2284
|
+
* @method onMessage
|
|
2285
|
+
* @param {Object} e the event object
|
|
2286
2286
|
*/
|
|
2287
2287
|
request.onMessage = function (e) {
|
|
2288
2288
|
_adapter.onmessage({ data: e.responseBody });
|
|
2289
2289
|
};
|
|
2290
2290
|
|
|
2291
|
-
/**
|
|
2292
|
-
* Overrides the onMessagePublished callback in given request.
|
|
2293
|
-
*
|
|
2294
|
-
* @method onMessagePublished
|
|
2295
|
-
* @param {Object} e the event object
|
|
2291
|
+
/**
|
|
2292
|
+
* Overrides the onMessagePublished callback in given request.
|
|
2293
|
+
*
|
|
2294
|
+
* @method onMessagePublished
|
|
2295
|
+
* @param {Object} e the event object
|
|
2296
2296
|
*/
|
|
2297
2297
|
request.onMessagePublished = function (e) {
|
|
2298
2298
|
_adapter.onmessage({ data: e.responseBody });
|
|
2299
2299
|
};
|
|
2300
2300
|
|
|
2301
|
-
/**
|
|
2302
|
-
* Overrides the onOpen callback in given request to proxy the event to the adapter.
|
|
2303
|
-
*
|
|
2304
|
-
* @method onOpen
|
|
2305
|
-
* @param {Object} e the event object
|
|
2301
|
+
/**
|
|
2302
|
+
* Overrides the onOpen callback in given request to proxy the event to the adapter.
|
|
2303
|
+
*
|
|
2304
|
+
* @method onOpen
|
|
2305
|
+
* @param {Object} e the event object
|
|
2306
2306
|
*/
|
|
2307
2307
|
request.onOpen = function (e) {
|
|
2308
2308
|
_adapter.onopen(e);
|
|
@@ -2332,10 +2332,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2332
2332
|
|
|
2333
2333
|
AtmosphereRequest: function AtmosphereRequest(options) {
|
|
2334
2334
|
|
|
2335
|
-
/**
|
|
2336
|
-
* {Object} Request parameters.
|
|
2337
|
-
*
|
|
2338
|
-
* @private
|
|
2335
|
+
/**
|
|
2336
|
+
* {Object} Request parameters.
|
|
2337
|
+
*
|
|
2338
|
+
* @private
|
|
2339
2339
|
*/
|
|
2340
2340
|
var _request = {
|
|
2341
2341
|
timeout: 300000,
|
|
@@ -2400,10 +2400,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2400
2400
|
onOpenAfterResume: function onOpenAfterResume(request) {}
|
|
2401
2401
|
};
|
|
2402
2402
|
|
|
2403
|
-
/**
|
|
2404
|
-
* {Object} Request's last response.
|
|
2405
|
-
*
|
|
2406
|
-
* @private
|
|
2403
|
+
/**
|
|
2404
|
+
* {Object} Request's last response.
|
|
2405
|
+
*
|
|
2406
|
+
* @private
|
|
2407
2407
|
*/
|
|
2408
2408
|
var _response = {
|
|
2409
2409
|
status: 200,
|
|
@@ -2421,101 +2421,101 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2421
2421
|
ffTryingReconnect: false
|
|
2422
2422
|
};
|
|
2423
2423
|
|
|
2424
|
-
/**
|
|
2425
|
-
* {websocket} Opened web socket.
|
|
2426
|
-
*
|
|
2427
|
-
* @private
|
|
2424
|
+
/**
|
|
2425
|
+
* {websocket} Opened web socket.
|
|
2426
|
+
*
|
|
2427
|
+
* @private
|
|
2428
2428
|
*/
|
|
2429
2429
|
var _websocket = null;
|
|
2430
2430
|
|
|
2431
|
-
/**
|
|
2432
|
-
* {SSE} Opened SSE.
|
|
2433
|
-
*
|
|
2434
|
-
* @private
|
|
2431
|
+
/**
|
|
2432
|
+
* {SSE} Opened SSE.
|
|
2433
|
+
*
|
|
2434
|
+
* @private
|
|
2435
2435
|
*/
|
|
2436
2436
|
var _sse = null;
|
|
2437
2437
|
|
|
2438
|
-
/**
|
|
2439
|
-
* {XMLHttpRequest, ActiveXObject} Opened ajax request (in case of http-streaming or long-polling)
|
|
2440
|
-
*
|
|
2441
|
-
* @private
|
|
2438
|
+
/**
|
|
2439
|
+
* {XMLHttpRequest, ActiveXObject} Opened ajax request (in case of http-streaming or long-polling)
|
|
2440
|
+
*
|
|
2441
|
+
* @private
|
|
2442
2442
|
*/
|
|
2443
2443
|
var _activeRequest = null;
|
|
2444
2444
|
|
|
2445
|
-
/**
|
|
2446
|
-
* {Object} Object use for streaming with IE.
|
|
2447
|
-
*
|
|
2448
|
-
* @private
|
|
2445
|
+
/**
|
|
2446
|
+
* {Object} Object use for streaming with IE.
|
|
2447
|
+
*
|
|
2448
|
+
* @private
|
|
2449
2449
|
*/
|
|
2450
2450
|
var _ieStream = null;
|
|
2451
2451
|
|
|
2452
|
-
/**
|
|
2453
|
-
* {Object} Object use for jsonp transport.
|
|
2454
|
-
*
|
|
2455
|
-
* @private
|
|
2452
|
+
/**
|
|
2453
|
+
* {Object} Object use for jsonp transport.
|
|
2454
|
+
*
|
|
2455
|
+
* @private
|
|
2456
2456
|
*/
|
|
2457
2457
|
var _jqxhr = null;
|
|
2458
2458
|
|
|
2459
|
-
/**
|
|
2460
|
-
* {boolean} If request has been subscribed or not.
|
|
2461
|
-
*
|
|
2462
|
-
* @private
|
|
2459
|
+
/**
|
|
2460
|
+
* {boolean} If request has been subscribed or not.
|
|
2461
|
+
*
|
|
2462
|
+
* @private
|
|
2463
2463
|
*/
|
|
2464
2464
|
var _subscribed = true;
|
|
2465
2465
|
|
|
2466
|
-
/**
|
|
2467
|
-
* {number} Number of test reconnection.
|
|
2468
|
-
*
|
|
2469
|
-
* @private
|
|
2466
|
+
/**
|
|
2467
|
+
* {number} Number of test reconnection.
|
|
2468
|
+
*
|
|
2469
|
+
* @private
|
|
2470
2470
|
*/
|
|
2471
2471
|
var _requestCount = 0;
|
|
2472
2472
|
|
|
2473
|
-
/**
|
|
2474
|
-
* The Heartbeat interval send by the server.
|
|
2475
|
-
* @type {int}
|
|
2476
|
-
* @private
|
|
2473
|
+
/**
|
|
2474
|
+
* The Heartbeat interval send by the server.
|
|
2475
|
+
* @type {int}
|
|
2476
|
+
* @private
|
|
2477
2477
|
*/
|
|
2478
2478
|
var _heartbeatInterval = 0;
|
|
2479
2479
|
|
|
2480
|
-
/**
|
|
2481
|
-
* The Heartbeat bytes send by the server.
|
|
2482
|
-
* @type {string}
|
|
2483
|
-
* @private
|
|
2480
|
+
/**
|
|
2481
|
+
* The Heartbeat bytes send by the server.
|
|
2482
|
+
* @type {string}
|
|
2483
|
+
* @private
|
|
2484
2484
|
*/
|
|
2485
2485
|
var _heartbeatPadding = 'X';
|
|
2486
2486
|
|
|
2487
|
-
/**
|
|
2488
|
-
* {boolean} If request is currently aborted.
|
|
2489
|
-
*
|
|
2490
|
-
* @private
|
|
2487
|
+
/**
|
|
2488
|
+
* {boolean} If request is currently aborted.
|
|
2489
|
+
*
|
|
2490
|
+
* @private
|
|
2491
2491
|
*/
|
|
2492
2492
|
var _abortingConnection = false;
|
|
2493
2493
|
|
|
2494
|
-
/**
|
|
2495
|
-
* A local "channel' of communication.
|
|
2496
|
-
*
|
|
2497
|
-
* @private
|
|
2494
|
+
/**
|
|
2495
|
+
* A local "channel' of communication.
|
|
2496
|
+
*
|
|
2497
|
+
* @private
|
|
2498
2498
|
*/
|
|
2499
2499
|
var _localSocketF = null;
|
|
2500
2500
|
|
|
2501
|
-
/**
|
|
2502
|
-
* The storage used.
|
|
2503
|
-
*
|
|
2504
|
-
* @private
|
|
2501
|
+
/**
|
|
2502
|
+
* The storage used.
|
|
2503
|
+
*
|
|
2504
|
+
* @private
|
|
2505
2505
|
*/
|
|
2506
2506
|
var _storageService;
|
|
2507
2507
|
|
|
2508
|
-
/**
|
|
2509
|
-
* Local communication
|
|
2510
|
-
*
|
|
2511
|
-
* @private
|
|
2508
|
+
/**
|
|
2509
|
+
* Local communication
|
|
2510
|
+
*
|
|
2511
|
+
* @private
|
|
2512
2512
|
*/
|
|
2513
2513
|
var _localStorageService = null;
|
|
2514
2514
|
|
|
2515
|
-
/**
|
|
2516
|
-
* A Unique ID
|
|
2517
|
-
*
|
|
2518
|
-
* @private
|
|
2515
|
+
/**
|
|
2516
|
+
* A Unique ID
|
|
2517
|
+
*
|
|
2518
|
+
* @private
|
|
2519
2519
|
*/
|
|
2520
2520
|
var guid = atmosphere.util.now();
|
|
2521
2521
|
|
|
@@ -2525,21 +2525,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2525
2525
|
/** Key for connection sharing */
|
|
2526
2526
|
var _sharingKey;
|
|
2527
2527
|
|
|
2528
|
-
/**
|
|
2529
|
-
* {boolean} If window beforeUnload event has been called.
|
|
2530
|
-
* Flag will be reset after 5000 ms
|
|
2531
|
-
*
|
|
2532
|
-
* @private
|
|
2528
|
+
/**
|
|
2529
|
+
* {boolean} If window beforeUnload event has been called.
|
|
2530
|
+
* Flag will be reset after 5000 ms
|
|
2531
|
+
*
|
|
2532
|
+
* @private
|
|
2533
2533
|
*/
|
|
2534
2534
|
var _beforeUnloadState = false;
|
|
2535
2535
|
|
|
2536
2536
|
// Automatic call to subscribe
|
|
2537
2537
|
_subscribe(options);
|
|
2538
2538
|
|
|
2539
|
-
/**
|
|
2540
|
-
* Initialize atmosphere request object.
|
|
2541
|
-
*
|
|
2542
|
-
* @private
|
|
2539
|
+
/**
|
|
2540
|
+
* Initialize atmosphere request object.
|
|
2541
|
+
*
|
|
2542
|
+
* @private
|
|
2543
2543
|
*/
|
|
2544
2544
|
function _init() {
|
|
2545
2545
|
_subscribed = true;
|
|
@@ -2552,20 +2552,20 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2552
2552
|
_ieStream = null;
|
|
2553
2553
|
}
|
|
2554
2554
|
|
|
2555
|
-
/**
|
|
2556
|
-
* Re-initialize atmosphere object.
|
|
2557
|
-
*
|
|
2558
|
-
* @private
|
|
2555
|
+
/**
|
|
2556
|
+
* Re-initialize atmosphere object.
|
|
2557
|
+
*
|
|
2558
|
+
* @private
|
|
2559
2559
|
*/
|
|
2560
2560
|
function _reinit() {
|
|
2561
2561
|
_clearState();
|
|
2562
2562
|
_init();
|
|
2563
2563
|
}
|
|
2564
2564
|
|
|
2565
|
-
/**
|
|
2566
|
-
* Returns true if the given level is equal or above the configured log level.
|
|
2567
|
-
*
|
|
2568
|
-
* @private
|
|
2565
|
+
/**
|
|
2566
|
+
* Returns true if the given level is equal or above the configured log level.
|
|
2567
|
+
*
|
|
2568
|
+
* @private
|
|
2569
2569
|
*/
|
|
2570
2570
|
function _canLog(level) {
|
|
2571
2571
|
if (level == 'debug') {
|
|
@@ -2587,9 +2587,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2587
2587
|
}
|
|
2588
2588
|
}
|
|
2589
2589
|
|
|
2590
|
-
/**
|
|
2591
|
-
*
|
|
2592
|
-
* @private
|
|
2590
|
+
/**
|
|
2591
|
+
*
|
|
2592
|
+
* @private
|
|
2593
2593
|
*/
|
|
2594
2594
|
function _verifyStreamingLength(ajaxRequest, rq) {
|
|
2595
2595
|
// Wait to be sure we have the full message before closing.
|
|
@@ -2599,10 +2599,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2599
2599
|
return false;
|
|
2600
2600
|
}
|
|
2601
2601
|
|
|
2602
|
-
/**
|
|
2603
|
-
* Disconnect
|
|
2604
|
-
*
|
|
2605
|
-
* @private
|
|
2602
|
+
/**
|
|
2603
|
+
* Disconnect
|
|
2604
|
+
*
|
|
2605
|
+
* @private
|
|
2606
2606
|
*/
|
|
2607
2607
|
function _disconnect() {
|
|
2608
2608
|
if (_request.enableProtocol && !_request.disableDisconnect && !_request.firstMessage) {
|
|
@@ -2639,10 +2639,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
2641
|
|
|
2642
|
-
/**
|
|
2643
|
-
* Close request.
|
|
2644
|
-
*
|
|
2645
|
-
* @private
|
|
2642
|
+
/**
|
|
2643
|
+
* Close request.
|
|
2644
|
+
*
|
|
2645
|
+
* @private
|
|
2646
2646
|
*/
|
|
2647
2647
|
function _close() {
|
|
2648
2648
|
_debug("Closing (AtmosphereRequest._close() called)");
|
|
@@ -2729,12 +2729,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2729
2729
|
}
|
|
2730
2730
|
}
|
|
2731
2731
|
|
|
2732
|
-
/**
|
|
2733
|
-
* Subscribe request using request transport. <br>
|
|
2734
|
-
* If request is currently opened, this one will be closed.
|
|
2735
|
-
*
|
|
2736
|
-
* @param {Object} Request parameters.
|
|
2737
|
-
* @private
|
|
2732
|
+
/**
|
|
2733
|
+
* Subscribe request using request transport. <br>
|
|
2734
|
+
* If request is currently opened, this one will be closed.
|
|
2735
|
+
*
|
|
2736
|
+
* @param {Object} Request parameters.
|
|
2737
|
+
* @private
|
|
2738
2738
|
*/
|
|
2739
2739
|
function _subscribe(options) {
|
|
2740
2740
|
_reinit();
|
|
@@ -2747,21 +2747,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2747
2747
|
}
|
|
2748
2748
|
}
|
|
2749
2749
|
|
|
2750
|
-
/**
|
|
2751
|
-
* Check if web socket is supported (check for custom implementation provided by request object or browser implementation).
|
|
2752
|
-
*
|
|
2753
|
-
* @returns {boolean} True if web socket is supported, false otherwise.
|
|
2754
|
-
* @private
|
|
2750
|
+
/**
|
|
2751
|
+
* Check if web socket is supported (check for custom implementation provided by request object or browser implementation).
|
|
2752
|
+
*
|
|
2753
|
+
* @returns {boolean} True if web socket is supported, false otherwise.
|
|
2754
|
+
* @private
|
|
2755
2755
|
*/
|
|
2756
2756
|
function _supportWebsocket() {
|
|
2757
2757
|
return _request.webSocketImpl != null || window.WebSocket || window.MozWebSocket;
|
|
2758
2758
|
}
|
|
2759
2759
|
|
|
2760
|
-
/**
|
|
2761
|
-
* Check if server side events (SSE) is supported (check for custom implementation provided by request object or browser implementation).
|
|
2762
|
-
*
|
|
2763
|
-
* @returns {boolean} True if web socket is supported, false otherwise.
|
|
2764
|
-
* @private
|
|
2760
|
+
/**
|
|
2761
|
+
* Check if server side events (SSE) is supported (check for custom implementation provided by request object or browser implementation).
|
|
2762
|
+
*
|
|
2763
|
+
* @returns {boolean} True if web socket is supported, false otherwise.
|
|
2764
|
+
* @private
|
|
2765
2765
|
*/
|
|
2766
2766
|
function _supportSSE() {
|
|
2767
2767
|
// Origin parts
|
|
@@ -2777,11 +2777,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2777
2777
|
return window.EventSource && (!crossOrigin || !atmosphere.util.browser.safari || atmosphere.util.browser.vmajor >= 7);
|
|
2778
2778
|
}
|
|
2779
2779
|
|
|
2780
|
-
/**
|
|
2781
|
-
* Open request using request transport. <br>
|
|
2782
|
-
* If request transport is 'websocket' but websocket can't be opened, request will automatically reconnect using fallback transport.
|
|
2783
|
-
*
|
|
2784
|
-
* @private
|
|
2780
|
+
/**
|
|
2781
|
+
* Open request using request transport. <br>
|
|
2782
|
+
* If request transport is 'websocket' but websocket can't be opened, request will automatically reconnect using fallback transport.
|
|
2783
|
+
*
|
|
2784
|
+
* @private
|
|
2785
2785
|
*/
|
|
2786
2786
|
function _execute() {
|
|
2787
2787
|
// Shared across multiple tabs/windows.
|
|
@@ -3195,8 +3195,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3195
3195
|
_storageService = storageService;
|
|
3196
3196
|
}
|
|
3197
3197
|
|
|
3198
|
-
/**
|
|
3199
|
-
* @private
|
|
3198
|
+
/**
|
|
3199
|
+
* @private
|
|
3200
3200
|
*/
|
|
3201
3201
|
function _open(state, transport, request) {
|
|
3202
3202
|
if (_request.shared && transport !== 'local') {
|
|
@@ -3230,11 +3230,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3230
3230
|
}
|
|
3231
3231
|
}
|
|
3232
3232
|
|
|
3233
|
-
/**
|
|
3234
|
-
* Execute request using jsonp transport.
|
|
3235
|
-
*
|
|
3236
|
-
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
3237
|
-
* @private
|
|
3233
|
+
/**
|
|
3234
|
+
* Execute request using jsonp transport.
|
|
3235
|
+
*
|
|
3236
|
+
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
3237
|
+
* @private
|
|
3238
3238
|
*/
|
|
3239
3239
|
function _jsonp(request) {
|
|
3240
3240
|
// When CORS is enabled, make sure we force the proper transport.
|
|
@@ -3364,12 +3364,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3364
3364
|
_jqxhr.open();
|
|
3365
3365
|
}
|
|
3366
3366
|
|
|
3367
|
-
/**
|
|
3368
|
-
* Build websocket object.
|
|
3369
|
-
*
|
|
3370
|
-
* @param location {string} Web socket url.
|
|
3371
|
-
* @returns {websocket} Web socket object.
|
|
3372
|
-
* @private
|
|
3367
|
+
/**
|
|
3368
|
+
* Build websocket object.
|
|
3369
|
+
*
|
|
3370
|
+
* @param location {string} Web socket url.
|
|
3371
|
+
* @returns {websocket} Web socket object.
|
|
3372
|
+
* @private
|
|
3373
3373
|
*/
|
|
3374
3374
|
function _getWebSocket(location) {
|
|
3375
3375
|
if (_request.webSocketImpl != null) {
|
|
@@ -3385,32 +3385,32 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3385
3385
|
}
|
|
3386
3386
|
}
|
|
3387
3387
|
|
|
3388
|
-
/**
|
|
3389
|
-
* Build web socket url from request url.
|
|
3390
|
-
*
|
|
3391
|
-
* @return {string} Web socket url (start with "ws" or "wss" for secure web socket).
|
|
3392
|
-
* @private
|
|
3388
|
+
/**
|
|
3389
|
+
* Build web socket url from request url.
|
|
3390
|
+
*
|
|
3391
|
+
* @return {string} Web socket url (start with "ws" or "wss" for secure web socket).
|
|
3392
|
+
* @private
|
|
3393
3393
|
*/
|
|
3394
3394
|
function _buildWebSocketUrl() {
|
|
3395
3395
|
return _attachHeaders(_request, atmosphere.util.getAbsoluteURL(_request.webSocketUrl || _request.url)).replace(/^http/, "ws");
|
|
3396
3396
|
}
|
|
3397
3397
|
|
|
3398
|
-
/**
|
|
3399
|
-
* Build SSE url from request url.
|
|
3400
|
-
*
|
|
3401
|
-
* @return a url with Atmosphere's headers
|
|
3402
|
-
* @private
|
|
3398
|
+
/**
|
|
3399
|
+
* Build SSE url from request url.
|
|
3400
|
+
*
|
|
3401
|
+
* @return a url with Atmosphere's headers
|
|
3402
|
+
* @private
|
|
3403
3403
|
*/
|
|
3404
3404
|
function _buildSSEUrl() {
|
|
3405
3405
|
var url = _attachHeaders(_request);
|
|
3406
3406
|
return url;
|
|
3407
3407
|
}
|
|
3408
3408
|
|
|
3409
|
-
/**
|
|
3410
|
-
* Open SSE. <br>
|
|
3411
|
-
* Automatically use fallback transport if SSE can't be opened.
|
|
3412
|
-
*
|
|
3413
|
-
* @private
|
|
3409
|
+
/**
|
|
3410
|
+
* Open SSE. <br>
|
|
3411
|
+
* Automatically use fallback transport if SSE can't be opened.
|
|
3412
|
+
*
|
|
3413
|
+
* @private
|
|
3414
3414
|
*/
|
|
3415
3415
|
function _executeSSE(sseOpened) {
|
|
3416
3416
|
|
|
@@ -3491,9 +3491,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3491
3491
|
|
|
3492
3492
|
// https://github.com/remy/polyfills/blob/master/EventSource.js
|
|
3493
3493
|
// Since we polling.
|
|
3494
|
-
/* if (_sse.URL) {
|
|
3495
|
-
_sse.interval = 100;
|
|
3496
|
-
_sse.URL = _buildSSEUrl();
|
|
3494
|
+
/* if (_sse.URL) {
|
|
3495
|
+
_sse.interval = 100;
|
|
3496
|
+
_sse.URL = _buildSSEUrl();
|
|
3497
3497
|
} */
|
|
3498
3498
|
|
|
3499
3499
|
if (!skipCallbackInvocation) {
|
|
@@ -3542,11 +3542,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3542
3542
|
};
|
|
3543
3543
|
}
|
|
3544
3544
|
|
|
3545
|
-
/**
|
|
3546
|
-
* Open web socket. <br>
|
|
3547
|
-
* Automatically use fallback transport if web socket can't be opened.
|
|
3548
|
-
*
|
|
3549
|
-
* @private
|
|
3545
|
+
/**
|
|
3546
|
+
* Open web socket. <br>
|
|
3547
|
+
* Automatically use fallback transport if web socket can't be opened.
|
|
3548
|
+
*
|
|
3549
|
+
* @private
|
|
3550
3550
|
*/
|
|
3551
3551
|
function _executeWebSocket(webSocketOpened) {
|
|
3552
3552
|
|
|
@@ -3886,12 +3886,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3886
3886
|
_invokeCallback();
|
|
3887
3887
|
}
|
|
3888
3888
|
|
|
3889
|
-
/**
|
|
3890
|
-
* Track received message and make sure callbacks/functions are only invoked when the complete message has been received.
|
|
3891
|
-
*
|
|
3892
|
-
* @param message
|
|
3893
|
-
* @param request
|
|
3894
|
-
* @param response
|
|
3889
|
+
/**
|
|
3890
|
+
* Track received message and make sure callbacks/functions are only invoked when the complete message has been received.
|
|
3891
|
+
*
|
|
3892
|
+
* @param message
|
|
3893
|
+
* @param request
|
|
3894
|
+
* @param response
|
|
3895
3895
|
*/
|
|
3896
3896
|
function _trackMessageSize(message, request, response) {
|
|
3897
3897
|
// skip message tracking for binary messages
|
|
@@ -3950,11 +3950,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3950
3950
|
return false;
|
|
3951
3951
|
}
|
|
3952
3952
|
|
|
3953
|
-
/**
|
|
3954
|
-
* Reconnect request with fallback transport. <br>
|
|
3955
|
-
* Used in case websocket can't be opened.
|
|
3956
|
-
*
|
|
3957
|
-
* @private
|
|
3953
|
+
/**
|
|
3954
|
+
* Reconnect request with fallback transport. <br>
|
|
3955
|
+
* Used in case websocket can't be opened.
|
|
3956
|
+
*
|
|
3957
|
+
* @private
|
|
3958
3958
|
*/
|
|
3959
3959
|
function _reconnectWithFallbackTransport(errorMessage) {
|
|
3960
3960
|
atmosphere.util.log(_request.logLevel, [errorMessage]);
|
|
@@ -3983,13 +3983,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3983
3983
|
}
|
|
3984
3984
|
}
|
|
3985
3985
|
|
|
3986
|
-
/**
|
|
3987
|
-
* Get url from request and attach headers to it.
|
|
3988
|
-
*
|
|
3989
|
-
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
3990
|
-
*
|
|
3991
|
-
* @returns {Object} Request object, if undefined, _request object will be used.
|
|
3992
|
-
* @private
|
|
3986
|
+
/**
|
|
3987
|
+
* Get url from request and attach headers to it.
|
|
3988
|
+
*
|
|
3989
|
+
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
3990
|
+
*
|
|
3991
|
+
* @returns {Object} Request object, if undefined, _request object will be used.
|
|
3992
|
+
* @private
|
|
3993
3993
|
*/
|
|
3994
3994
|
function _attachHeaders(request, url) {
|
|
3995
3995
|
var rq = _request;
|
|
@@ -4074,11 +4074,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4074
4074
|
}
|
|
4075
4075
|
}
|
|
4076
4076
|
|
|
4077
|
-
/**
|
|
4078
|
-
* Execute ajax request. <br>
|
|
4079
|
-
*
|
|
4080
|
-
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
4081
|
-
* @private
|
|
4077
|
+
/**
|
|
4078
|
+
* Execute ajax request. <br>
|
|
4079
|
+
*
|
|
4080
|
+
* @param request {Object} request Request parameters, if undefined _request object will be used.
|
|
4081
|
+
* @private
|
|
4082
4082
|
*/
|
|
4083
4083
|
function _executeRequest(request) {
|
|
4084
4084
|
var rq = _request;
|
|
@@ -4371,12 +4371,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4371
4371
|
_reconnect(ajaxRequest, rq, 500);
|
|
4372
4372
|
}
|
|
4373
4373
|
|
|
4374
|
-
/**
|
|
4375
|
-
* Do ajax request.
|
|
4376
|
-
*
|
|
4377
|
-
* @param ajaxRequest Ajax request.
|
|
4378
|
-
* @param request Request parameters.
|
|
4379
|
-
* @param create If ajax request has to be open.
|
|
4374
|
+
/**
|
|
4375
|
+
* Do ajax request.
|
|
4376
|
+
*
|
|
4377
|
+
* @param ajaxRequest Ajax request.
|
|
4378
|
+
* @param request Request parameters.
|
|
4379
|
+
* @param create If ajax request has to be open.
|
|
4380
4380
|
*/
|
|
4381
4381
|
function _doRequest(ajaxRequest, request, create) {
|
|
4382
4382
|
// Prevent Android to cache request
|
|
@@ -4753,12 +4753,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4753
4753
|
};
|
|
4754
4754
|
}
|
|
4755
4755
|
|
|
4756
|
-
/**
|
|
4757
|
-
* Send message. <br>
|
|
4758
|
-
* Will be automatically dispatch to other connected.
|
|
4759
|
-
*
|
|
4760
|
-
* @param {Object, string} Message to send.
|
|
4761
|
-
* @private
|
|
4756
|
+
/**
|
|
4757
|
+
* Send message. <br>
|
|
4758
|
+
* Will be automatically dispatch to other connected.
|
|
4759
|
+
*
|
|
4760
|
+
* @param {Object, string} Message to send.
|
|
4761
|
+
* @private
|
|
4762
4762
|
*/
|
|
4763
4763
|
function _push(message) {
|
|
4764
4764
|
|
|
@@ -4814,22 +4814,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4814
4814
|
}
|
|
4815
4815
|
}
|
|
4816
4816
|
|
|
4817
|
-
/**
|
|
4818
|
-
* Send a message using currently opened ajax request (using http-streaming or long-polling). <br>
|
|
4819
|
-
*
|
|
4820
|
-
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4821
|
-
* @private
|
|
4817
|
+
/**
|
|
4818
|
+
* Send a message using currently opened ajax request (using http-streaming or long-polling). <br>
|
|
4819
|
+
*
|
|
4820
|
+
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4821
|
+
* @private
|
|
4822
4822
|
*/
|
|
4823
4823
|
function _pushAjaxMessage(message) {
|
|
4824
4824
|
var rq = _getPushRequest(message);
|
|
4825
4825
|
_executeRequest(rq);
|
|
4826
4826
|
}
|
|
4827
4827
|
|
|
4828
|
-
/**
|
|
4829
|
-
* Send a message using currently opened ie streaming (using http-streaming or long-polling). <br>
|
|
4830
|
-
*
|
|
4831
|
-
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4832
|
-
* @private
|
|
4828
|
+
/**
|
|
4829
|
+
* Send a message using currently opened ie streaming (using http-streaming or long-polling). <br>
|
|
4830
|
+
*
|
|
4831
|
+
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4832
|
+
* @private
|
|
4833
4833
|
*/
|
|
4834
4834
|
function _pushIE(message) {
|
|
4835
4835
|
if (_request.enableXDR && atmosphere.util.checkCORSSupport()) {
|
|
@@ -4842,11 +4842,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4842
4842
|
}
|
|
4843
4843
|
}
|
|
4844
4844
|
|
|
4845
|
-
/**
|
|
4846
|
-
* Send a message using jsonp transport. <br>
|
|
4847
|
-
*
|
|
4848
|
-
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4849
|
-
* @private
|
|
4845
|
+
/**
|
|
4846
|
+
* Send a message using jsonp transport. <br>
|
|
4847
|
+
*
|
|
4848
|
+
* @param {string, Object} Message to send. This is an object, string message is saved in data member.
|
|
4849
|
+
* @private
|
|
4850
4850
|
*/
|
|
4851
4851
|
function _pushJsonp(message) {
|
|
4852
4852
|
_pushAjaxMessage(message);
|
|
@@ -4860,11 +4860,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4860
4860
|
return msg;
|
|
4861
4861
|
}
|
|
4862
4862
|
|
|
4863
|
-
/**
|
|
4864
|
-
* Build request use to push message using method 'POST' <br>. Transport is defined as 'polling' and 'suspend' is set to false.
|
|
4865
|
-
*
|
|
4866
|
-
* @return {Object} Request object use to push message.
|
|
4867
|
-
* @private
|
|
4863
|
+
/**
|
|
4864
|
+
* Build request use to push message using method 'POST' <br>. Transport is defined as 'polling' and 'suspend' is set to false.
|
|
4865
|
+
*
|
|
4866
|
+
* @return {Object} Request object use to push message.
|
|
4867
|
+
* @private
|
|
4868
4868
|
*/
|
|
4869
4869
|
function _getPushRequest(message) {
|
|
4870
4870
|
var msg = _getStringMessage(message);
|
|
@@ -4906,9 +4906,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
4906
4906
|
return rq;
|
|
4907
4907
|
}
|
|
4908
4908
|
|
|
4909
|
-
/**
|
|
4910
|
-
* Send a message using currently opened websocket. <br>
|
|
4911
|
-
*
|
|
4909
|
+
/**
|
|
4910
|
+
* Send a message using currently opened websocket. <br>
|
|
4911
|
+
*
|
|
4912
4912
|
*/
|
|
4913
4913
|
function _pushWebSocket(message) {
|
|
4914
4914
|
var msg = atmosphere.util.isBinary(message) ? message : _getStringMessage(message);
|
|
@@ -5058,10 +5058,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5058
5058
|
}
|
|
5059
5059
|
}
|
|
5060
5060
|
|
|
5061
|
-
/**
|
|
5062
|
-
* Invoke request callbacks.
|
|
5063
|
-
*
|
|
5064
|
-
* @private
|
|
5061
|
+
/**
|
|
5062
|
+
* Invoke request callbacks.
|
|
5063
|
+
*
|
|
5064
|
+
* @private
|
|
5065
5065
|
*/
|
|
5066
5066
|
function _invokeCallback() {
|
|
5067
5067
|
var call = function call(index, func) {
|
|
@@ -5900,21 +5900,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
5900
5900
|
|
|
5901
5901
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
|
|
5902
5902
|
|
|
5903
|
-
/*
|
|
5904
|
-
Note: Usage of formatters can cause a potential performance penalty
|
|
5903
|
+
/*
|
|
5904
|
+
Note: Usage of formatters can cause a potential performance penalty
|
|
5905
5905
|
*/
|
|
5906
5906
|
|
|
5907
5907
|
/* Keep synchronized with com.quotemedia.streamer.client.fmt.FmtMessage */
|
|
5908
5908
|
|
|
5909
5909
|
var fmt = {};
|
|
5910
5910
|
|
|
5911
|
-
/**
|
|
5912
|
-
* Creates a new message formatter.
|
|
5913
|
-
* @constructor
|
|
5911
|
+
/**
|
|
5912
|
+
* Creates a new message formatter.
|
|
5913
|
+
* @constructor
|
|
5914
5914
|
*/
|
|
5915
5915
|
fmt.Formatter = function () {
|
|
5916
|
-
/**
|
|
5917
|
-
* Formatters by message type.
|
|
5916
|
+
/**
|
|
5917
|
+
* Formatters by message type.
|
|
5918
5918
|
*/
|
|
5919
5919
|
this.formatters = {};
|
|
5920
5920
|
this.formatters[fmt.Formatter._UNKOWNTYPE] = this._fmtunknown;
|
|
@@ -5973,6 +5973,7 @@ fmt.Formatter = function () {
|
|
|
5973
5973
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.DIVIDEND] = this._fmtdividend;
|
|
5974
5974
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.EARNINGS] = this._fmtearnings;
|
|
5975
5975
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.SPLIT] = this._fmtsplit;
|
|
5976
|
+
this.formatters[_streamerApi.messages.MessageTypeNames.data.SYMBOLCHANGED] = this._fmtsymbolChanged;
|
|
5976
5977
|
};
|
|
5977
5978
|
|
|
5978
5979
|
fmt.Formatter._UNKOWNTYPE = '__UNKNOWN__';
|
|
@@ -6550,6 +6551,8 @@ fmt.Formatter.prototype._fmttradeNotification = function (val) {
|
|
|
6550
6551
|
var s = new fmt.StringBuilder();
|
|
6551
6552
|
s.append("TN");
|
|
6552
6553
|
s.sep();
|
|
6554
|
+
s.append(val.traceId);
|
|
6555
|
+
s.sep();
|
|
6553
6556
|
s.append(val.accountId);
|
|
6554
6557
|
s.sep();
|
|
6555
6558
|
s.append(val.enduserId);
|
|
@@ -6694,6 +6697,23 @@ fmt.Formatter.prototype._fmtsplit = function (val) {
|
|
|
6694
6697
|
return s.toString();
|
|
6695
6698
|
};
|
|
6696
6699
|
|
|
6700
|
+
fmt.Formatter.prototype._fmtsymbolChanged = function (val) {
|
|
6701
|
+
var s = new fmt.StringBuilder();
|
|
6702
|
+
s.append("SBCG");
|
|
6703
|
+
s.sep();
|
|
6704
|
+
s.append(val.symbolId);
|
|
6705
|
+
s.sep();
|
|
6706
|
+
s.append(val.symbol);
|
|
6707
|
+
s.sep();
|
|
6708
|
+
s.append(val.oldSymbol);
|
|
6709
|
+
s.sep();
|
|
6710
|
+
s.append(val.newSymbol);
|
|
6711
|
+
s.sep();
|
|
6712
|
+
s.datetime(val.day);
|
|
6713
|
+
|
|
6714
|
+
return s.toString();
|
|
6715
|
+
};
|
|
6716
|
+
|
|
6697
6717
|
fmt.Formatter.prototype._fmtheartbeat = function (val) {
|
|
6698
6718
|
var s = new fmt.StringBuilder();
|
|
6699
6719
|
s.append("HEARBEAT");
|
|
@@ -6981,9 +7001,9 @@ fmt.Formatter.prototype._fmtmisseddatasent = function (val) {
|
|
|
6981
7001
|
return s.toString();
|
|
6982
7002
|
};
|
|
6983
7003
|
|
|
6984
|
-
/**
|
|
6985
|
-
* Create a new sting builder.
|
|
6986
|
-
* @constructor
|
|
7004
|
+
/**
|
|
7005
|
+
* Create a new sting builder.
|
|
7006
|
+
* @constructor
|
|
6987
7007
|
*/
|
|
6988
7008
|
fmt.StringBuilder = function () {
|
|
6989
7009
|
this._str = '';
|
|
@@ -7244,16 +7264,16 @@ function asLogger(logger) {
|
|
|
7244
7264
|
exports.__esModule = true;
|
|
7245
7265
|
/* @see http://usejsdoc.org */
|
|
7246
7266
|
|
|
7247
|
-
/**
|
|
7248
|
-
* Streamer api namespace.
|
|
7249
|
-
* @namespace
|
|
7267
|
+
/**
|
|
7268
|
+
* Streamer api namespace.
|
|
7269
|
+
* @namespace
|
|
7250
7270
|
*/
|
|
7251
7271
|
|
|
7252
7272
|
/* ****************************************************************************************************************** */
|
|
7253
7273
|
|
|
7254
|
-
/**
|
|
7255
|
-
* Supported encodings.
|
|
7256
|
-
* @enum
|
|
7274
|
+
/**
|
|
7275
|
+
* Supported encodings.
|
|
7276
|
+
* @enum
|
|
7257
7277
|
*/
|
|
7258
7278
|
var Encodings = exports.Encodings = {
|
|
7259
7279
|
UNDEFINED: "undefined",
|
|
@@ -7266,9 +7286,9 @@ var Encodings = exports.Encodings = {
|
|
|
7266
7286
|
BASE64_CHAR: "B"
|
|
7267
7287
|
};
|
|
7268
7288
|
|
|
7269
|
-
/**
|
|
7270
|
-
* Supported mime types.
|
|
7271
|
-
* @enum
|
|
7289
|
+
/**
|
|
7290
|
+
* Supported mime types.
|
|
7291
|
+
* @enum
|
|
7272
7292
|
*/
|
|
7273
7293
|
var MimeTypes = exports.MimeTypes = {
|
|
7274
7294
|
UNDEFINED: "undefined",
|
|
@@ -7284,12 +7304,12 @@ var MimeTypes = exports.MimeTypes = {
|
|
|
7284
7304
|
QITCH_CHAR: "I"
|
|
7285
7305
|
};
|
|
7286
7306
|
|
|
7287
|
-
/**
|
|
7288
|
-
* Returns the with '0' left padded string representation of the number.
|
|
7289
|
-
* @param num {number} the number to create string for
|
|
7290
|
-
* @param len {number} the target length of the string
|
|
7291
|
-
* @return {string} the with '0' left padded string
|
|
7292
|
-
* @throws Will throw an error if number doesn't fit within target length
|
|
7307
|
+
/**
|
|
7308
|
+
* Returns the with '0' left padded string representation of the number.
|
|
7309
|
+
* @param num {number} the number to create string for
|
|
7310
|
+
* @param len {number} the target length of the string
|
|
7311
|
+
* @return {string} the with '0' left padded string
|
|
7312
|
+
* @throws Will throw an error if number doesn't fit within target length
|
|
7293
7313
|
*/
|
|
7294
7314
|
var lpad = exports.lpad = function lpad(num, len) {
|
|
7295
7315
|
var _numstr = num.toString();
|
|
@@ -7615,13 +7635,13 @@ var BIG_INT_FORTY = _jsbi2["default"].BigInt(40);
|
|
|
7615
7635
|
var BIG_INT_FORTY_EIGHT = _jsbi2["default"].BigInt(48);
|
|
7616
7636
|
var BIG_INT_FIFTY_SIX = _jsbi2["default"].BigInt(56);
|
|
7617
7637
|
|
|
7618
|
-
/*
|
|
7619
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
7638
|
+
/*
|
|
7639
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
7620
7640
|
*/
|
|
7621
|
-
/**
|
|
7622
|
-
* Translates bytes into numbers and vice versa.
|
|
7623
|
-
* Use multiplication instead of shifts because in javascript shifts are slower than multiplication
|
|
7624
|
-
* (under the hood shifts call ToInt32 which is slower than ToNumber in multiplication).
|
|
7641
|
+
/**
|
|
7642
|
+
* Translates bytes into numbers and vice versa.
|
|
7643
|
+
* Use multiplication instead of shifts because in javascript shifts are slower than multiplication
|
|
7644
|
+
* (under the hood shifts call ToInt32 which is slower than ToNumber in multiplication).
|
|
7625
7645
|
*/
|
|
7626
7646
|
|
|
7627
7647
|
var Bytes = function () {
|
|
@@ -7635,11 +7655,11 @@ var Bytes = function () {
|
|
|
7635
7655
|
return dst;
|
|
7636
7656
|
};
|
|
7637
7657
|
|
|
7638
|
-
/**
|
|
7639
|
-
* Gets numeric value that is in range of short (Int16) from byte array
|
|
7640
|
-
* @param src The source array
|
|
7641
|
-
* @param offset The offset
|
|
7642
|
-
* @returns {number} Resulting short value
|
|
7658
|
+
/**
|
|
7659
|
+
* Gets numeric value that is in range of short (Int16) from byte array
|
|
7660
|
+
* @param src The source array
|
|
7661
|
+
* @param offset The offset
|
|
7662
|
+
* @returns {number} Resulting short value
|
|
7643
7663
|
*/
|
|
7644
7664
|
|
|
7645
7665
|
|
|
@@ -7656,11 +7676,11 @@ var Bytes = function () {
|
|
|
7656
7676
|
return dst;
|
|
7657
7677
|
};
|
|
7658
7678
|
|
|
7659
|
-
/**
|
|
7660
|
-
* Gets numeric value that is in range of integer (Int32) from byte array
|
|
7661
|
-
* @param src The source array
|
|
7662
|
-
* @param offset The offset
|
|
7663
|
-
* @returns {number} Resulting int value
|
|
7679
|
+
/**
|
|
7680
|
+
* Gets numeric value that is in range of integer (Int32) from byte array
|
|
7681
|
+
* @param src The source array
|
|
7682
|
+
* @param offset The offset
|
|
7683
|
+
* @returns {number} Resulting int value
|
|
7664
7684
|
*/
|
|
7665
7685
|
|
|
7666
7686
|
|
|
@@ -7671,11 +7691,11 @@ var Bytes = function () {
|
|
|
7671
7691
|
src[offset + 3] & 0xff;
|
|
7672
7692
|
};
|
|
7673
7693
|
|
|
7674
|
-
/**
|
|
7675
|
-
* Gets numeric value that is in range of long (Int64) from byte array.
|
|
7676
|
-
* @param src The source array
|
|
7677
|
-
* @param offset The offset
|
|
7678
|
-
* @returns {JSBI} Resulting string representation of long.
|
|
7694
|
+
/**
|
|
7695
|
+
* Gets numeric value that is in range of long (Int64) from byte array.
|
|
7696
|
+
* @param src The source array
|
|
7697
|
+
* @param offset The offset
|
|
7698
|
+
* @returns {JSBI} Resulting string representation of long.
|
|
7679
7699
|
*/
|
|
7680
7700
|
|
|
7681
7701
|
|
|
@@ -7717,8 +7737,8 @@ var UShort = function () {
|
|
|
7717
7737
|
return UShort;
|
|
7718
7738
|
}();
|
|
7719
7739
|
|
|
7720
|
-
/**
|
|
7721
|
-
* Length in bytes
|
|
7740
|
+
/**
|
|
7741
|
+
* Length in bytes
|
|
7722
7742
|
*/
|
|
7723
7743
|
|
|
7724
7744
|
|
|
@@ -7748,8 +7768,8 @@ var UByte = function () {
|
|
|
7748
7768
|
return UByte;
|
|
7749
7769
|
}();
|
|
7750
7770
|
|
|
7751
|
-
/**
|
|
7752
|
-
* Length in bytes
|
|
7771
|
+
/**
|
|
7772
|
+
* Length in bytes
|
|
7753
7773
|
*/
|
|
7754
7774
|
|
|
7755
7775
|
|
|
@@ -7779,8 +7799,8 @@ var UInt = function () {
|
|
|
7779
7799
|
return UInt;
|
|
7780
7800
|
}();
|
|
7781
7801
|
|
|
7782
|
-
/**
|
|
7783
|
-
* Length in bytes
|
|
7802
|
+
/**
|
|
7803
|
+
* Length in bytes
|
|
7784
7804
|
*/
|
|
7785
7805
|
|
|
7786
7806
|
|
|
@@ -8026,24 +8046,24 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
8026
8046
|
|
|
8027
8047
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8028
8048
|
|
|
8029
|
-
/*
|
|
8030
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
8049
|
+
/*
|
|
8050
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
8031
8051
|
*/
|
|
8032
8052
|
var Qitch = function () {
|
|
8033
8053
|
function Qitch() {
|
|
8034
8054
|
_classCallCheck(this, Qitch);
|
|
8035
8055
|
}
|
|
8036
8056
|
|
|
8037
|
-
/**
|
|
8038
|
-
* Copies an array from the specified source array, beginning at sourceIndex,
|
|
8039
|
-
* to the specified position of the destination array.
|
|
8040
|
-
* The number of components copied is equal to the length argument. The elements are copied
|
|
8041
|
-
* into a destination array starting from destinationIndex.
|
|
8042
|
-
* @param sourceArray The source array
|
|
8043
|
-
* @param sourceIndex The starting position in the source array.
|
|
8044
|
-
* @param destinationArray The destination array
|
|
8045
|
-
* @param destinationIndex The starting position in the destination array.
|
|
8046
|
-
* @param length The number of array elements to be copied.
|
|
8057
|
+
/**
|
|
8058
|
+
* Copies an array from the specified source array, beginning at sourceIndex,
|
|
8059
|
+
* to the specified position of the destination array.
|
|
8060
|
+
* The number of components copied is equal to the length argument. The elements are copied
|
|
8061
|
+
* into a destination array starting from destinationIndex.
|
|
8062
|
+
* @param sourceArray The source array
|
|
8063
|
+
* @param sourceIndex The starting position in the source array.
|
|
8064
|
+
* @param destinationArray The destination array
|
|
8065
|
+
* @param destinationIndex The starting position in the destination array.
|
|
8066
|
+
* @param length The number of array elements to be copied.
|
|
8047
8067
|
*/
|
|
8048
8068
|
Qitch.copyArray = function copyArray(sourceArray, sourceIndex, destinationArray, destinationIndex, length) {
|
|
8049
8069
|
if (length === 0) {
|
|
@@ -8070,12 +8090,12 @@ var Qitch = function () {
|
|
|
8070
8090
|
}
|
|
8071
8091
|
};
|
|
8072
8092
|
|
|
8073
|
-
/**
|
|
8074
|
-
* Gets boolean value from source byte array at specified position.
|
|
8075
|
-
* @param src The source array.
|
|
8076
|
-
* @param offset The offset.
|
|
8077
|
-
* @returns {boolean} Returns obtained value.
|
|
8078
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8093
|
+
/**
|
|
8094
|
+
* Gets boolean value from source byte array at specified position.
|
|
8095
|
+
* @param src The source array.
|
|
8096
|
+
* @param offset The offset.
|
|
8097
|
+
* @returns {boolean} Returns obtained value.
|
|
8098
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8079
8099
|
*/
|
|
8080
8100
|
|
|
8081
8101
|
|
|
@@ -8086,13 +8106,13 @@ var Qitch = function () {
|
|
|
8086
8106
|
throw "Invalid source. Expected: Int8Array";
|
|
8087
8107
|
};
|
|
8088
8108
|
|
|
8089
|
-
/**
|
|
8090
|
-
* Puts boolean value into destination array.
|
|
8091
|
-
* @param dst The destination array
|
|
8092
|
-
* @param offset The offset.
|
|
8093
|
-
* @param val Boolean value.
|
|
8094
|
-
* @returns {Int8Array} destination array.
|
|
8095
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8109
|
+
/**
|
|
8110
|
+
* Puts boolean value into destination array.
|
|
8111
|
+
* @param dst The destination array
|
|
8112
|
+
* @param offset The offset.
|
|
8113
|
+
* @param val Boolean value.
|
|
8114
|
+
* @returns {Int8Array} destination array.
|
|
8115
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8096
8116
|
*/
|
|
8097
8117
|
|
|
8098
8118
|
|
|
@@ -8104,13 +8124,13 @@ var Qitch = function () {
|
|
|
8104
8124
|
throw "Invalid destination. Expected: Int8Array";
|
|
8105
8125
|
};
|
|
8106
8126
|
|
|
8107
|
-
/**
|
|
8108
|
-
* Puts byte value into destination array.
|
|
8109
|
-
* @param dst The destination array
|
|
8110
|
-
* @param offset The offset.
|
|
8111
|
-
* @param val Byte value.
|
|
8112
|
-
* @returns {Int8Array} destination array.
|
|
8113
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8127
|
+
/**
|
|
8128
|
+
* Puts byte value into destination array.
|
|
8129
|
+
* @param dst The destination array
|
|
8130
|
+
* @param offset The offset.
|
|
8131
|
+
* @param val Byte value.
|
|
8132
|
+
* @returns {Int8Array} destination array.
|
|
8133
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8114
8134
|
*/
|
|
8115
8135
|
|
|
8116
8136
|
|
|
@@ -8122,12 +8142,12 @@ var Qitch = function () {
|
|
|
8122
8142
|
throw "Invalid destination. Expected: Int8Array";
|
|
8123
8143
|
};
|
|
8124
8144
|
|
|
8125
|
-
/**
|
|
8126
|
-
* Gets integer (int32) value from source byte array at specified position.
|
|
8127
|
-
* @param src The source array.
|
|
8128
|
-
* @param offset The offset.
|
|
8129
|
-
* @returns {number} Returns obtained value.
|
|
8130
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8145
|
+
/**
|
|
8146
|
+
* Gets integer (int32) value from source byte array at specified position.
|
|
8147
|
+
* @param src The source array.
|
|
8148
|
+
* @param offset The offset.
|
|
8149
|
+
* @returns {number} Returns obtained value.
|
|
8150
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8131
8151
|
*/
|
|
8132
8152
|
|
|
8133
8153
|
|
|
@@ -8138,13 +8158,13 @@ var Qitch = function () {
|
|
|
8138
8158
|
throw "Invalid source. Expected: Int8Array";
|
|
8139
8159
|
};
|
|
8140
8160
|
|
|
8141
|
-
/**
|
|
8142
|
-
* Sets integer (int32) value to destination array
|
|
8143
|
-
* @param dst destination array
|
|
8144
|
-
* @param offset offset
|
|
8145
|
-
* @param val integer value
|
|
8146
|
-
* @returns {Int8Array} destination array.
|
|
8147
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8161
|
+
/**
|
|
8162
|
+
* Sets integer (int32) value to destination array
|
|
8163
|
+
* @param dst destination array
|
|
8164
|
+
* @param offset offset
|
|
8165
|
+
* @param val integer value
|
|
8166
|
+
* @returns {Int8Array} destination array.
|
|
8167
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8148
8168
|
*/
|
|
8149
8169
|
|
|
8150
8170
|
|
|
@@ -8155,12 +8175,12 @@ var Qitch = function () {
|
|
|
8155
8175
|
throw "Invalid destination. Expected: Int8Array";
|
|
8156
8176
|
};
|
|
8157
8177
|
|
|
8158
|
-
/**
|
|
8159
|
-
* Gets unsigned integer (uint32) value from source byte array at specified position.
|
|
8160
|
-
* @param src The source array.
|
|
8161
|
-
* @param offset The offset.
|
|
8162
|
-
* @returns {number} Returns obtained value.
|
|
8163
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8178
|
+
/**
|
|
8179
|
+
* Gets unsigned integer (uint32) value from source byte array at specified position.
|
|
8180
|
+
* @param src The source array.
|
|
8181
|
+
* @param offset The offset.
|
|
8182
|
+
* @returns {number} Returns obtained value.
|
|
8183
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8164
8184
|
*/
|
|
8165
8185
|
|
|
8166
8186
|
|
|
@@ -8171,13 +8191,13 @@ var Qitch = function () {
|
|
|
8171
8191
|
throw "Invalid source. Expected: Int8Array";
|
|
8172
8192
|
};
|
|
8173
8193
|
|
|
8174
|
-
/**
|
|
8175
|
-
* Sets unsigned integer (uint32) value to destination array
|
|
8176
|
-
* @param dst destination array
|
|
8177
|
-
* @param offset offset
|
|
8178
|
-
* @param val unsigned integer value
|
|
8179
|
-
* @returns {Int8Array} destination array.
|
|
8180
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8194
|
+
/**
|
|
8195
|
+
* Sets unsigned integer (uint32) value to destination array
|
|
8196
|
+
* @param dst destination array
|
|
8197
|
+
* @param offset offset
|
|
8198
|
+
* @param val unsigned integer value
|
|
8199
|
+
* @returns {Int8Array} destination array.
|
|
8200
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8181
8201
|
*/
|
|
8182
8202
|
|
|
8183
8203
|
|
|
@@ -8188,13 +8208,13 @@ var Qitch = function () {
|
|
|
8188
8208
|
throw "Invalid destination. Expected: Int8Array";
|
|
8189
8209
|
};
|
|
8190
8210
|
|
|
8191
|
-
/**
|
|
8192
|
-
* Gets single character from source byte array at specified position.
|
|
8193
|
-
* @param src The source array.
|
|
8194
|
-
* @param offset The offset.
|
|
8195
|
-
* @returns {null|String} Returns null if offset is out of array index range or
|
|
8196
|
-
* value is equal to {@link Constants#ASCII_NULL}, otherwise returns the obtained value.
|
|
8197
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8211
|
+
/**
|
|
8212
|
+
* Gets single character from source byte array at specified position.
|
|
8213
|
+
* @param src The source array.
|
|
8214
|
+
* @param offset The offset.
|
|
8215
|
+
* @returns {null|String} Returns null if offset is out of array index range or
|
|
8216
|
+
* value is equal to {@link Constants#ASCII_NULL}, otherwise returns the obtained value.
|
|
8217
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8198
8218
|
*/
|
|
8199
8219
|
|
|
8200
8220
|
|
|
@@ -8209,13 +8229,13 @@ var Qitch = function () {
|
|
|
8209
8229
|
throw "Invalid source. Expected: Int8Array";
|
|
8210
8230
|
};
|
|
8211
8231
|
|
|
8212
|
-
/**
|
|
8213
|
-
* Gets long (int64) value from source byte array at specified position. Since javascript doesn't support long values,
|
|
8214
|
-
* it is returned as {@link JSBI.BigInt}.
|
|
8215
|
-
* @param src The source array.
|
|
8216
|
-
* @param offset The offset.
|
|
8217
|
-
* @returns {JSBI} Returns obtained value.
|
|
8218
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8232
|
+
/**
|
|
8233
|
+
* Gets long (int64) value from source byte array at specified position. Since javascript doesn't support long values,
|
|
8234
|
+
* it is returned as {@link JSBI.BigInt}.
|
|
8235
|
+
* @param src The source array.
|
|
8236
|
+
* @param offset The offset.
|
|
8237
|
+
* @returns {JSBI} Returns obtained value.
|
|
8238
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8219
8239
|
*/
|
|
8220
8240
|
|
|
8221
8241
|
|
|
@@ -8226,14 +8246,14 @@ var Qitch = function () {
|
|
|
8226
8246
|
throw "Invalid source. Expected: Int8Array";
|
|
8227
8247
|
};
|
|
8228
8248
|
|
|
8229
|
-
/**
|
|
8230
|
-
* Gets double value from byte source array at specified position.
|
|
8231
|
-
* In QITCH double values are sent as longs and then divided by {@link Constants#PRICE_DIVISOR}. Since javascript
|
|
8232
|
-
* doesn't support long values, the result is returned as {@link BigNumber}.
|
|
8233
|
-
* @param src The source array.
|
|
8234
|
-
* @param offset The offset.
|
|
8235
|
-
* @returns {BigNumber} Returns obtained value.
|
|
8236
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8249
|
+
/**
|
|
8250
|
+
* Gets double value from byte source array at specified position.
|
|
8251
|
+
* In QITCH double values are sent as longs and then divided by {@link Constants#PRICE_DIVISOR}. Since javascript
|
|
8252
|
+
* doesn't support long values, the result is returned as {@link BigNumber}.
|
|
8253
|
+
* @param src The source array.
|
|
8254
|
+
* @param offset The offset.
|
|
8255
|
+
* @returns {BigNumber} Returns obtained value.
|
|
8256
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8237
8257
|
*/
|
|
8238
8258
|
|
|
8239
8259
|
|
|
@@ -8244,12 +8264,12 @@ var Qitch = function () {
|
|
|
8244
8264
|
throw "Invalid source. Expected: Int8Array";
|
|
8245
8265
|
};
|
|
8246
8266
|
|
|
8247
|
-
/**
|
|
8248
|
-
* Gets signed byte from source byte array at specified position.
|
|
8249
|
-
* @param src The source array.
|
|
8250
|
-
* @param offset The offset.
|
|
8251
|
-
* @returns {number} Returns obtained value.
|
|
8252
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8267
|
+
/**
|
|
8268
|
+
* Gets signed byte from source byte array at specified position.
|
|
8269
|
+
* @param src The source array.
|
|
8270
|
+
* @param offset The offset.
|
|
8271
|
+
* @returns {number} Returns obtained value.
|
|
8272
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8253
8273
|
*/
|
|
8254
8274
|
|
|
8255
8275
|
|
|
@@ -8260,14 +8280,14 @@ var Qitch = function () {
|
|
|
8260
8280
|
throw "Invalid source. Expected: Int8Array";
|
|
8261
8281
|
};
|
|
8262
8282
|
|
|
8263
|
-
/**
|
|
8264
|
-
* Gets timestamp value from source byte array at specified offset. Since javascript doesn't support long values,
|
|
8265
|
-
* it is returned as {@link JSBI.BigInt}
|
|
8266
|
-
* @param src The source array.
|
|
8267
|
-
* @param offset The offset.
|
|
8268
|
-
* @returns {null|JSBI} Returns null if value is equal to {@link Constants#TIMESTAMP_NULL}
|
|
8269
|
-
* otherwise returns the obtained value.
|
|
8270
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8283
|
+
/**
|
|
8284
|
+
* Gets timestamp value from source byte array at specified offset. Since javascript doesn't support long values,
|
|
8285
|
+
* it is returned as {@link JSBI.BigInt}
|
|
8286
|
+
* @param src The source array.
|
|
8287
|
+
* @param offset The offset.
|
|
8288
|
+
* @returns {null|JSBI} Returns null if value is equal to {@link Constants#TIMESTAMP_NULL}
|
|
8289
|
+
* otherwise returns the obtained value.
|
|
8290
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8271
8291
|
*/
|
|
8272
8292
|
|
|
8273
8293
|
|
|
@@ -8279,12 +8299,12 @@ var Qitch = function () {
|
|
|
8279
8299
|
throw "Invalid source. Expected: Int8Array";
|
|
8280
8300
|
};
|
|
8281
8301
|
|
|
8282
|
-
/**
|
|
8283
|
-
* Gets locate code value from source byte array at specified offset.
|
|
8284
|
-
* @param src The source array.
|
|
8285
|
-
* @param offset The offset.
|
|
8286
|
-
* @returns {number} Returns obtained value.
|
|
8287
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8302
|
+
/**
|
|
8303
|
+
* Gets locate code value from source byte array at specified offset.
|
|
8304
|
+
* @param src The source array.
|
|
8305
|
+
* @param offset The offset.
|
|
8306
|
+
* @returns {number} Returns obtained value.
|
|
8307
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8288
8308
|
*/
|
|
8289
8309
|
|
|
8290
8310
|
|
|
@@ -8295,13 +8315,13 @@ var Qitch = function () {
|
|
|
8295
8315
|
throw "Invalid source. Expected: Int8Array";
|
|
8296
8316
|
};
|
|
8297
8317
|
|
|
8298
|
-
/**
|
|
8299
|
-
* Gets symbol value from source byte array at specified offset.
|
|
8300
|
-
* @param src The source array.
|
|
8301
|
-
* @param offset The offset.
|
|
8302
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + symbol length in bytes is bigger than length of source array),
|
|
8303
|
-
* otherwise returns obtained value.
|
|
8304
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8318
|
+
/**
|
|
8319
|
+
* Gets symbol value from source byte array at specified offset.
|
|
8320
|
+
* @param src The source array.
|
|
8321
|
+
* @param offset The offset.
|
|
8322
|
+
* @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),
|
|
8323
|
+
* otherwise returns obtained value.
|
|
8324
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8305
8325
|
*/
|
|
8306
8326
|
|
|
8307
8327
|
|
|
@@ -8315,13 +8335,13 @@ var Qitch = function () {
|
|
|
8315
8335
|
throw "Invalid source. Expected: Int8Array";
|
|
8316
8336
|
};
|
|
8317
8337
|
|
|
8318
|
-
/**
|
|
8319
|
-
* Puts symbol value into destination array.
|
|
8320
|
-
* @param dst The destination array.
|
|
8321
|
-
* @param offset The offset.
|
|
8322
|
-
* @param val Symbol value.
|
|
8323
|
-
* @returns {Int8Array} destination array.
|
|
8324
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8338
|
+
/**
|
|
8339
|
+
* Puts symbol value into destination array.
|
|
8340
|
+
* @param dst The destination array.
|
|
8341
|
+
* @param offset The offset.
|
|
8342
|
+
* @param val Symbol value.
|
|
8343
|
+
* @returns {Int8Array} destination array.
|
|
8344
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8325
8345
|
*/
|
|
8326
8346
|
|
|
8327
8347
|
|
|
@@ -8332,14 +8352,14 @@ var Qitch = function () {
|
|
|
8332
8352
|
throw "Invalid destination. Expected: Int8Array";
|
|
8333
8353
|
};
|
|
8334
8354
|
|
|
8335
|
-
/**
|
|
8336
|
-
* Gets String value from source byte array at specified offset.
|
|
8337
|
-
* @param src The source array.
|
|
8338
|
-
* @param offset The offset.
|
|
8339
|
-
* @param maxLength The max length of returning value.
|
|
8340
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + maxLength in bytes is bigger than length of source array),
|
|
8341
|
-
* otherwise returns obtained value.
|
|
8342
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8355
|
+
/**
|
|
8356
|
+
* Gets String value from source byte array at specified offset.
|
|
8357
|
+
* @param src The source array.
|
|
8358
|
+
* @param offset The offset.
|
|
8359
|
+
* @param maxLength The max length of returning value.
|
|
8360
|
+
* @returns {null|String} Returns null in case if specified offset is too big (offset + maxLength in bytes is bigger than length of source array),
|
|
8361
|
+
* otherwise returns obtained value.
|
|
8362
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8343
8363
|
*/
|
|
8344
8364
|
|
|
8345
8365
|
|
|
@@ -8350,14 +8370,14 @@ var Qitch = function () {
|
|
|
8350
8370
|
throw "Invalid source. Expected: Int8Array";
|
|
8351
8371
|
};
|
|
8352
8372
|
|
|
8353
|
-
/**
|
|
8354
|
-
* Puts String value into destination array.
|
|
8355
|
-
* @param dst The destination array.
|
|
8356
|
-
* @param offset The offset.
|
|
8357
|
-
* @param val String value.
|
|
8358
|
-
* @param maxLength The max length of returning value.
|
|
8359
|
-
* @returns {Int8Array} destination array.
|
|
8360
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8373
|
+
/**
|
|
8374
|
+
* Puts String value into destination array.
|
|
8375
|
+
* @param dst The destination array.
|
|
8376
|
+
* @param offset The offset.
|
|
8377
|
+
* @param val String value.
|
|
8378
|
+
* @param maxLength The max length of returning value.
|
|
8379
|
+
* @returns {Int8Array} destination array.
|
|
8380
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8361
8381
|
*/
|
|
8362
8382
|
|
|
8363
8383
|
|
|
@@ -8368,13 +8388,13 @@ var Qitch = function () {
|
|
|
8368
8388
|
throw "Invalid destination. Expected: Int8Array";
|
|
8369
8389
|
};
|
|
8370
8390
|
|
|
8371
|
-
/**
|
|
8372
|
-
* Gets excode value from source byte array at specified offset.
|
|
8373
|
-
* @param src The source array.
|
|
8374
|
-
* @param offset The offset.
|
|
8375
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + excode length in bytes is bigger than length of source array),
|
|
8376
|
-
* otherwise returns obtained value.
|
|
8377
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8391
|
+
/**
|
|
8392
|
+
* Gets excode value from source byte array at specified offset.
|
|
8393
|
+
* @param src The source array.
|
|
8394
|
+
* @param offset The offset.
|
|
8395
|
+
* @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),
|
|
8396
|
+
* otherwise returns obtained value.
|
|
8397
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8378
8398
|
*/
|
|
8379
8399
|
|
|
8380
8400
|
|
|
@@ -8388,13 +8408,13 @@ var Qitch = function () {
|
|
|
8388
8408
|
throw "Invalid source. Expected: Int8Array";
|
|
8389
8409
|
};
|
|
8390
8410
|
|
|
8391
|
-
/**
|
|
8392
|
-
* Puts excode value into destination array.
|
|
8393
|
-
* @param dst The destination array.
|
|
8394
|
-
* @param offset The offset.
|
|
8395
|
-
* @param val excode value.
|
|
8396
|
-
* @returns {Int8Array} destination array.
|
|
8397
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8411
|
+
/**
|
|
8412
|
+
* Puts excode value into destination array.
|
|
8413
|
+
* @param dst The destination array.
|
|
8414
|
+
* @param offset The offset.
|
|
8415
|
+
* @param val excode value.
|
|
8416
|
+
* @returns {Int8Array} destination array.
|
|
8417
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8398
8418
|
*/
|
|
8399
8419
|
|
|
8400
8420
|
|
|
@@ -8405,13 +8425,13 @@ var Qitch = function () {
|
|
|
8405
8425
|
throw "Invalid destination. Expected: Int8Array";
|
|
8406
8426
|
};
|
|
8407
8427
|
|
|
8408
|
-
/**
|
|
8409
|
-
* Gets mmid value from source byte array at specified offset.
|
|
8410
|
-
* @param src The source array.
|
|
8411
|
-
* @param offset The offset.
|
|
8412
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + excode length in bytes is bigger than length of source array),
|
|
8413
|
-
* otherwise returns obtained value.
|
|
8414
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8428
|
+
/**
|
|
8429
|
+
* Gets mmid value from source byte array at specified offset.
|
|
8430
|
+
* @param src The source array.
|
|
8431
|
+
* @param offset The offset.
|
|
8432
|
+
* @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),
|
|
8433
|
+
* otherwise returns obtained value.
|
|
8434
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8415
8435
|
*/
|
|
8416
8436
|
|
|
8417
8437
|
|
|
@@ -8425,13 +8445,13 @@ var Qitch = function () {
|
|
|
8425
8445
|
throw "Invalid source. Expected: Int8Array";
|
|
8426
8446
|
};
|
|
8427
8447
|
|
|
8428
|
-
/**
|
|
8429
|
-
* Gets numeric order id value from source byte array at specified offset. Since javascript doesn't support long values,
|
|
8430
|
-
* it is returned as {@link JSBI.BigInt}
|
|
8431
|
-
* @param src The source array.
|
|
8432
|
-
* @param offset The offset.
|
|
8433
|
-
* @returns {JSBI} Returns obtained value.
|
|
8434
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8448
|
+
/**
|
|
8449
|
+
* Gets numeric order id value from source byte array at specified offset. Since javascript doesn't support long values,
|
|
8450
|
+
* it is returned as {@link JSBI.BigInt}
|
|
8451
|
+
* @param src The source array.
|
|
8452
|
+
* @param offset The offset.
|
|
8453
|
+
* @returns {JSBI} Returns obtained value.
|
|
8454
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8435
8455
|
*/
|
|
8436
8456
|
|
|
8437
8457
|
|
|
@@ -8442,13 +8462,13 @@ var Qitch = function () {
|
|
|
8442
8462
|
throw "Invalid source. Expected: Int8Array";
|
|
8443
8463
|
};
|
|
8444
8464
|
|
|
8445
|
-
/**
|
|
8446
|
-
* Gets order id as string from source byte array at specified offset.
|
|
8447
|
-
* @param src The source array.
|
|
8448
|
-
* @param offset The offset.
|
|
8449
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + order id length in bytes is bigger than length of source array),
|
|
8450
|
-
* otherwise returns obtained value.
|
|
8451
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8465
|
+
/**
|
|
8466
|
+
* Gets order id as string from source byte array at specified offset.
|
|
8467
|
+
* @param src The source array.
|
|
8468
|
+
* @param offset The offset.
|
|
8469
|
+
* @returns {null|String} Returns null in case if specified offset is too big (offset + order id length in bytes is bigger than length of source array),
|
|
8470
|
+
* otherwise returns obtained value.
|
|
8471
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8452
8472
|
*/
|
|
8453
8473
|
|
|
8454
8474
|
|
|
@@ -8462,13 +8482,13 @@ var Qitch = function () {
|
|
|
8462
8482
|
throw "Invalid source. Expected: Int8Array";
|
|
8463
8483
|
};
|
|
8464
8484
|
|
|
8465
|
-
/**
|
|
8466
|
-
* Gets currency id from source byte array at specified offset.
|
|
8467
|
-
* @param src The source array.
|
|
8468
|
-
* @param offset The offset.
|
|
8469
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + currency id length in bytes is bigger than length of source array),
|
|
8470
|
-
* otherwise returns obtained value.
|
|
8471
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8485
|
+
/**
|
|
8486
|
+
* Gets currency id from source byte array at specified offset.
|
|
8487
|
+
* @param src The source array.
|
|
8488
|
+
* @param offset The offset.
|
|
8489
|
+
* @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),
|
|
8490
|
+
* otherwise returns obtained value.
|
|
8491
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8472
8492
|
*/
|
|
8473
8493
|
|
|
8474
8494
|
|
|
@@ -8482,13 +8502,13 @@ var Qitch = function () {
|
|
|
8482
8502
|
throw "Invalid source. Expected: Int8Array";
|
|
8483
8503
|
};
|
|
8484
8504
|
|
|
8485
|
-
/**
|
|
8486
|
-
* Gets tick from source byte array at specified offset.
|
|
8487
|
-
* @param src The source array.
|
|
8488
|
-
* @param offset The offset.
|
|
8489
|
-
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8490
|
-
* otherwise character at specified offset is returned.
|
|
8491
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8505
|
+
/**
|
|
8506
|
+
* Gets tick from source byte array at specified offset.
|
|
8507
|
+
* @param src The source array.
|
|
8508
|
+
* @param offset The offset.
|
|
8509
|
+
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8510
|
+
* otherwise character at specified offset is returned.
|
|
8511
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8492
8512
|
*/
|
|
8493
8513
|
|
|
8494
8514
|
|
|
@@ -8502,13 +8522,13 @@ var Qitch = function () {
|
|
|
8502
8522
|
throw "Invalid source. Expected: Int8Array";
|
|
8503
8523
|
};
|
|
8504
8524
|
|
|
8505
|
-
/**
|
|
8506
|
-
* Gets order change type from source byte array at specified offset.
|
|
8507
|
-
* @param src The source array.
|
|
8508
|
-
* @param offset The offset.
|
|
8509
|
-
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8510
|
-
* otherwise {@link messages.market.OrderChangeType} value that corresponds to the character at specified offset is returned.
|
|
8511
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8525
|
+
/**
|
|
8526
|
+
* Gets order change type from source byte array at specified offset.
|
|
8527
|
+
* @param src The source array.
|
|
8528
|
+
* @param offset The offset.
|
|
8529
|
+
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8530
|
+
* otherwise {@link messages.market.OrderChangeType} value that corresponds to the character at specified offset is returned.
|
|
8531
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8512
8532
|
*/
|
|
8513
8533
|
|
|
8514
8534
|
|
|
@@ -8526,13 +8546,13 @@ var Qitch = function () {
|
|
|
8526
8546
|
throw "Invalid source. Expected: Int8Array";
|
|
8527
8547
|
};
|
|
8528
8548
|
|
|
8529
|
-
/**
|
|
8530
|
-
* Gets order side from source byte array at specified offset.
|
|
8531
|
-
* @param src The source array.
|
|
8532
|
-
* @param offset The offset.
|
|
8533
|
-
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8534
|
-
* otherwise character at specified offset is returned.
|
|
8535
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8549
|
+
/**
|
|
8550
|
+
* Gets order side from source byte array at specified offset.
|
|
8551
|
+
* @param src The source array.
|
|
8552
|
+
* @param offset The offset.
|
|
8553
|
+
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8554
|
+
* otherwise character at specified offset is returned.
|
|
8555
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8536
8556
|
*/
|
|
8537
8557
|
|
|
8538
8558
|
|
|
@@ -8550,13 +8570,13 @@ var Qitch = function () {
|
|
|
8550
8570
|
throw "Invalid source. Expected: Int8Array";
|
|
8551
8571
|
};
|
|
8552
8572
|
|
|
8553
|
-
/**
|
|
8554
|
-
* Gets range indicator from source byte array at specified offset.
|
|
8555
|
-
* @param src The source array.
|
|
8556
|
-
* @param offset The offset.
|
|
8557
|
-
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8558
|
-
* otherwise character at specified offset is returned.
|
|
8559
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8573
|
+
/**
|
|
8574
|
+
* Gets range indicator from source byte array at specified offset.
|
|
8575
|
+
* @param src The source array.
|
|
8576
|
+
* @param offset The offset.
|
|
8577
|
+
* @returns {string|null} Returns null in case if offset is out of array index range,
|
|
8578
|
+
* otherwise character at specified offset is returned.
|
|
8579
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8560
8580
|
*/
|
|
8561
8581
|
|
|
8562
8582
|
|
|
@@ -8570,13 +8590,13 @@ var Qitch = function () {
|
|
|
8570
8590
|
throw "Invalid source. Expected: Int8Array";
|
|
8571
8591
|
};
|
|
8572
8592
|
|
|
8573
|
-
/**
|
|
8574
|
-
* Gets instrument type from source byte array at specified offset.
|
|
8575
|
-
* @param src The source array.
|
|
8576
|
-
* @param offset The offset.
|
|
8577
|
-
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8578
|
-
* otherwise {@link messages.market.InstrumentType} value that corresponds to the byte at specified offset is returned.
|
|
8579
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8593
|
+
/**
|
|
8594
|
+
* Gets instrument type from source byte array at specified offset.
|
|
8595
|
+
* @param src The source array.
|
|
8596
|
+
* @param offset The offset.
|
|
8597
|
+
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8598
|
+
* otherwise {@link messages.market.InstrumentType} value that corresponds to the byte at specified offset is returned.
|
|
8599
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8580
8600
|
*/
|
|
8581
8601
|
|
|
8582
8602
|
|
|
@@ -8590,13 +8610,13 @@ var Qitch = function () {
|
|
|
8590
8610
|
throw "Invalid source. Expected: Int8Array";
|
|
8591
8611
|
};
|
|
8592
8612
|
|
|
8593
|
-
/**
|
|
8594
|
-
* Gets imbalance type from source byte array at specified offset.
|
|
8595
|
-
* @param src The source array.
|
|
8596
|
-
* @param offset The offset.
|
|
8597
|
-
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8598
|
-
* otherwise {@link messages.market.ImbalanceType} value that corresponds to the byte at specified offset is returned.
|
|
8599
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8613
|
+
/**
|
|
8614
|
+
* Gets imbalance type from source byte array at specified offset.
|
|
8615
|
+
* @param src The source array.
|
|
8616
|
+
* @param offset The offset.
|
|
8617
|
+
* @returns {null|*} Returns null in case if offset is out of array index range,
|
|
8618
|
+
* otherwise {@link messages.market.ImbalanceType} value that corresponds to the byte at specified offset is returned.
|
|
8619
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8600
8620
|
*/
|
|
8601
8621
|
|
|
8602
8622
|
|
|
@@ -8610,13 +8630,13 @@ var Qitch = function () {
|
|
|
8610
8630
|
throw "Invalid source. Expected: Int8Array";
|
|
8611
8631
|
};
|
|
8612
8632
|
|
|
8613
|
-
/**
|
|
8614
|
-
* Gets order refernece from source byte array at specified offset.
|
|
8615
|
-
* @param src The source array.
|
|
8616
|
-
* @param offset The offset.
|
|
8617
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + order reference length in bytes is bigger than length of source array),
|
|
8618
|
-
* otherwise returns obtained value.
|
|
8619
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8633
|
+
/**
|
|
8634
|
+
* Gets order refernece from source byte array at specified offset.
|
|
8635
|
+
* @param src The source array.
|
|
8636
|
+
* @param offset The offset.
|
|
8637
|
+
* @returns {null|String} Returns null in case if specified offset is too big (offset + order reference length in bytes is bigger than length of source array),
|
|
8638
|
+
* otherwise returns obtained value.
|
|
8639
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8620
8640
|
*/
|
|
8621
8641
|
|
|
8622
8642
|
|
|
@@ -8630,13 +8650,13 @@ var Qitch = function () {
|
|
|
8630
8650
|
throw "Invalid source. Expected: Int8Array";
|
|
8631
8651
|
};
|
|
8632
8652
|
|
|
8633
|
-
/**
|
|
8634
|
-
* Gets response reason from source byte array at specified offset.
|
|
8635
|
-
* @param src The source array.
|
|
8636
|
-
* @param offset The offset.
|
|
8637
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + reason length in bytes is bigger than length of source array),
|
|
8638
|
-
* otherwise returns obtained value.
|
|
8639
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8653
|
+
/**
|
|
8654
|
+
* Gets response reason from source byte array at specified offset.
|
|
8655
|
+
* @param src The source array.
|
|
8656
|
+
* @param offset The offset.
|
|
8657
|
+
* @returns {null|String} Returns null in case if specified offset is too big (offset + reason length in bytes is bigger than length of source array),
|
|
8658
|
+
* otherwise returns obtained value.
|
|
8659
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8640
8660
|
*/
|
|
8641
8661
|
|
|
8642
8662
|
|
|
@@ -8650,13 +8670,13 @@ var Qitch = function () {
|
|
|
8650
8670
|
throw "Invalid source. Expected: Int8Array";
|
|
8651
8671
|
};
|
|
8652
8672
|
|
|
8653
|
-
/**
|
|
8654
|
-
* Gets streamer version from source byte array at specified offset.
|
|
8655
|
-
* @param src The source array.
|
|
8656
|
-
* @param offset The offset.
|
|
8657
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + version length in bytes is bigger than length of source array),
|
|
8658
|
-
* otherwise returns obtained value.
|
|
8659
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8673
|
+
/**
|
|
8674
|
+
* Gets streamer version from source byte array at specified offset.
|
|
8675
|
+
* @param src The source array.
|
|
8676
|
+
* @param offset The offset.
|
|
8677
|
+
* @returns {null|String} Returns null in case if specified offset is too big (offset + version length in bytes is bigger than length of source array),
|
|
8678
|
+
* otherwise returns obtained value.
|
|
8679
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8660
8680
|
*/
|
|
8661
8681
|
|
|
8662
8682
|
|
|
@@ -8670,13 +8690,13 @@ var Qitch = function () {
|
|
|
8670
8690
|
throw "Invalid source. Expected: Int8Array";
|
|
8671
8691
|
};
|
|
8672
8692
|
|
|
8673
|
-
/**
|
|
8674
|
-
* Gets server instance from source byte array at specified offset.
|
|
8675
|
-
* @param src The source array.
|
|
8676
|
-
* @param offset The offset.
|
|
8677
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + server instance length in bytes is bigger than length of source array),
|
|
8678
|
-
* otherwise returns obtained value.
|
|
8679
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8693
|
+
/**
|
|
8694
|
+
* Gets server instance from source byte array at specified offset.
|
|
8695
|
+
* @param src The source array.
|
|
8696
|
+
* @param offset The offset.
|
|
8697
|
+
* @returns {null|String} Returns null in case if specified offset is too big (offset + server instance length in bytes is bigger than length of source array),
|
|
8698
|
+
* otherwise returns obtained value.
|
|
8699
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8680
8700
|
*/
|
|
8681
8701
|
|
|
8682
8702
|
|
|
@@ -8690,13 +8710,13 @@ var Qitch = function () {
|
|
|
8690
8710
|
throw "Invalid source. Expected: Int8Array";
|
|
8691
8711
|
};
|
|
8692
8712
|
|
|
8693
|
-
/**
|
|
8694
|
-
* Gets the note message from source byte array at specified offset.
|
|
8695
|
-
* @param src The source array.
|
|
8696
|
-
* @param offset The offset.
|
|
8697
|
-
* @returns {null|String} Returns null in case if specified offset is too big (offset + note length in bytes is bigger than length of source array),
|
|
8698
|
-
* otherwise returns obtained value.
|
|
8699
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8713
|
+
/**
|
|
8714
|
+
* Gets the note message from source byte array at specified offset.
|
|
8715
|
+
* @param src The source array.
|
|
8716
|
+
* @param offset The offset.
|
|
8717
|
+
* @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),
|
|
8718
|
+
* otherwise returns obtained value.
|
|
8719
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8700
8720
|
*/
|
|
8701
8721
|
|
|
8702
8722
|
|
|
@@ -8710,13 +8730,13 @@ var Qitch = function () {
|
|
|
8710
8730
|
throw "Invalid source. Expected: Int8Array";
|
|
8711
8731
|
};
|
|
8712
8732
|
|
|
8713
|
-
/**
|
|
8714
|
-
* Puts action value into destination array.
|
|
8715
|
-
* @param dst The destination array.
|
|
8716
|
-
* @param offset The offset.
|
|
8717
|
-
* @param val Action value.
|
|
8718
|
-
* @returns {Int8Array} destination array.
|
|
8719
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8733
|
+
/**
|
|
8734
|
+
* Puts action value into destination array.
|
|
8735
|
+
* @param dst The destination array.
|
|
8736
|
+
* @param offset The offset.
|
|
8737
|
+
* @param val Action value.
|
|
8738
|
+
* @returns {Int8Array} destination array.
|
|
8739
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8720
8740
|
*/
|
|
8721
8741
|
|
|
8722
8742
|
|
|
@@ -8728,13 +8748,13 @@ var Qitch = function () {
|
|
|
8728
8748
|
throw "Invalid destination. Expected: Int8Array";
|
|
8729
8749
|
};
|
|
8730
8750
|
|
|
8731
|
-
/**
|
|
8732
|
-
* Puts mimetype value into destination array.
|
|
8733
|
-
* @param dst The destination array.
|
|
8734
|
-
* @param offset The offset.
|
|
8735
|
-
* @param val Mimetype value.
|
|
8736
|
-
* @returns {Int8Array} destination array.
|
|
8737
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8751
|
+
/**
|
|
8752
|
+
* Puts mimetype value into destination array.
|
|
8753
|
+
* @param dst The destination array.
|
|
8754
|
+
* @param offset The offset.
|
|
8755
|
+
* @param val Mimetype value.
|
|
8756
|
+
* @returns {Int8Array} destination array.
|
|
8757
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8738
8758
|
*/
|
|
8739
8759
|
|
|
8740
8760
|
|
|
@@ -8745,13 +8765,13 @@ var Qitch = function () {
|
|
|
8745
8765
|
throw "Invalid destination. Expected: Int8Array";
|
|
8746
8766
|
};
|
|
8747
8767
|
|
|
8748
|
-
/**
|
|
8749
|
-
* Puts conflation value into destination array. If conflation is null, -1 will be put instead.
|
|
8750
|
-
* @param dst The destination array.
|
|
8751
|
-
* @param offset The offset.
|
|
8752
|
-
* @param val Conflation value.
|
|
8753
|
-
* @returns {Int8Array} destination array.
|
|
8754
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8768
|
+
/**
|
|
8769
|
+
* Puts conflation value into destination array. If conflation is null, -1 will be put instead.
|
|
8770
|
+
* @param dst The destination array.
|
|
8771
|
+
* @param offset The offset.
|
|
8772
|
+
* @param val Conflation value.
|
|
8773
|
+
* @returns {Int8Array} destination array.
|
|
8774
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8755
8775
|
*/
|
|
8756
8776
|
|
|
8757
8777
|
|
|
@@ -8762,13 +8782,13 @@ var Qitch = function () {
|
|
|
8762
8782
|
throw "Invalid destination. Expected: Int8Array";
|
|
8763
8783
|
};
|
|
8764
8784
|
|
|
8765
|
-
/**
|
|
8766
|
-
* Gets marketdata type from source byte array at specified offset.
|
|
8767
|
-
* @param src The source array.
|
|
8768
|
-
* @param offset The offset.
|
|
8769
|
-
* @returns {null|String} Returns null in case if offset is out of array index range,
|
|
8770
|
-
* otherwise {@link messages.control.MarketdataType} value that corresponds to the byte at specified offset is returned.
|
|
8771
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8785
|
+
/**
|
|
8786
|
+
* Gets marketdata type from source byte array at specified offset.
|
|
8787
|
+
* @param src The source array.
|
|
8788
|
+
* @param offset The offset.
|
|
8789
|
+
* @returns {null|String} Returns null in case if offset is out of array index range,
|
|
8790
|
+
* otherwise {@link messages.control.MarketdataType} value that corresponds to the byte at specified offset is returned.
|
|
8791
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8772
8792
|
*/
|
|
8773
8793
|
|
|
8774
8794
|
|
|
@@ -8782,13 +8802,13 @@ var Qitch = function () {
|
|
|
8782
8802
|
throw "Invalid source. Expected: Int8Array";
|
|
8783
8803
|
};
|
|
8784
8804
|
|
|
8785
|
-
/**
|
|
8786
|
-
* Puts marketdata type value into destination array.
|
|
8787
|
-
* @param dst The destination array.
|
|
8788
|
-
* @param offset The offset.
|
|
8789
|
-
* @param val Marketdatatype value.
|
|
8790
|
-
* @returns {Int8Array} destination array.
|
|
8791
|
-
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8805
|
+
/**
|
|
8806
|
+
* Puts marketdata type value into destination array.
|
|
8807
|
+
* @param dst The destination array.
|
|
8808
|
+
* @param offset The offset.
|
|
8809
|
+
* @param val Marketdatatype value.
|
|
8810
|
+
* @returns {Int8Array} destination array.
|
|
8811
|
+
* @throws Exception in case if dst is not {@link Int8Array}
|
|
8792
8812
|
*/
|
|
8793
8813
|
|
|
8794
8814
|
|
|
@@ -8800,13 +8820,13 @@ var Qitch = function () {
|
|
|
8800
8820
|
throw "Invalid destination. Expected: Int8Array";
|
|
8801
8821
|
};
|
|
8802
8822
|
|
|
8803
|
-
/**
|
|
8804
|
-
* Gets entitlement type from source byte array at specified offset.
|
|
8805
|
-
* @param src The source array.
|
|
8806
|
-
* @param offset The offset.
|
|
8807
|
-
* @returns {null|String} Returns null in case if offset is out of array index range,
|
|
8808
|
-
* otherwise {@link messages.control.StreamEntitlementType} value that corresponds to the byte at specified offset is returned.
|
|
8809
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8823
|
+
/**
|
|
8824
|
+
* Gets entitlement type from source byte array at specified offset.
|
|
8825
|
+
* @param src The source array.
|
|
8826
|
+
* @param offset The offset.
|
|
8827
|
+
* @returns {null|String} Returns null in case if offset is out of array index range,
|
|
8828
|
+
* otherwise {@link messages.control.StreamEntitlementType} value that corresponds to the byte at specified offset is returned.
|
|
8829
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8810
8830
|
*/
|
|
8811
8831
|
|
|
8812
8832
|
|
|
@@ -8820,12 +8840,12 @@ var Qitch = function () {
|
|
|
8820
8840
|
throw "Invalid source. Expected: Int8Array";
|
|
8821
8841
|
};
|
|
8822
8842
|
|
|
8823
|
-
/**
|
|
8824
|
-
* Gets stream entitlement entry from source byte array at specified offset.
|
|
8825
|
-
* @param src The source array.
|
|
8826
|
-
* @param offset The offset.
|
|
8827
|
-
* @returns {messages.control.StreamEntitlement}
|
|
8828
|
-
* @throws Exception in case if src is not {@link Int8Array}
|
|
8843
|
+
/**
|
|
8844
|
+
* Gets stream entitlement entry from source byte array at specified offset.
|
|
8845
|
+
* @param src The source array.
|
|
8846
|
+
* @param offset The offset.
|
|
8847
|
+
* @returns {messages.control.StreamEntitlement}
|
|
8848
|
+
* @throws Exception in case if src is not {@link Int8Array}
|
|
8829
8849
|
*/
|
|
8830
8850
|
|
|
8831
8851
|
|
|
@@ -8858,8 +8878,8 @@ var _jsbi2 = _interopRequireDefault(_jsbi);
|
|
|
8858
8878
|
|
|
8859
8879
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8860
8880
|
|
|
8861
|
-
/*
|
|
8862
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
8881
|
+
/*
|
|
8882
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
8863
8883
|
*/
|
|
8864
8884
|
var ASCII_NULL = exports.ASCII_NULL = 0;
|
|
8865
8885
|
var ASCIICHAR_NULL = exports.ASCIICHAR_NULL = '0';
|
|
@@ -9228,9 +9248,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
9228
9248
|
|
|
9229
9249
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9230
9250
|
|
|
9231
|
-
/**
|
|
9232
|
-
* Decodes a stream of message blocks into messages.
|
|
9233
|
-
* This class is stateful and cannot be shared between multiple streams.
|
|
9251
|
+
/**
|
|
9252
|
+
* Decodes a stream of message blocks into messages.
|
|
9253
|
+
* This class is stateful and cannot be shared between multiple streams.
|
|
9234
9254
|
*/
|
|
9235
9255
|
var BlockDecoder = function () {
|
|
9236
9256
|
function BlockDecoder(decoders, capacity) {
|
|
@@ -9252,9 +9272,9 @@ var BlockDecoder = function () {
|
|
|
9252
9272
|
this.doflip = false;
|
|
9253
9273
|
}
|
|
9254
9274
|
|
|
9255
|
-
/**
|
|
9256
|
-
* The number of messages in the current block.
|
|
9257
|
-
* @returns {number} The number of messages or -1 if no block is being decoded
|
|
9275
|
+
/**
|
|
9276
|
+
* The number of messages in the current block.
|
|
9277
|
+
* @returns {number} The number of messages or -1 if no block is being decoded
|
|
9258
9278
|
*/
|
|
9259
9279
|
|
|
9260
9280
|
|
|
@@ -9262,9 +9282,9 @@ var BlockDecoder = function () {
|
|
|
9262
9282
|
return this.state.messagecount;
|
|
9263
9283
|
};
|
|
9264
9284
|
|
|
9265
|
-
/**
|
|
9266
|
-
* Returns the sequence number of the current block.
|
|
9267
|
-
* @returns {number} the sequence number of the current block.
|
|
9285
|
+
/**
|
|
9286
|
+
* Returns the sequence number of the current block.
|
|
9287
|
+
* @returns {number} the sequence number of the current block.
|
|
9268
9288
|
*/
|
|
9269
9289
|
|
|
9270
9290
|
|
|
@@ -9272,13 +9292,13 @@ var BlockDecoder = function () {
|
|
|
9272
9292
|
return this.state.blocksequencenumber;
|
|
9273
9293
|
};
|
|
9274
9294
|
|
|
9275
|
-
/**
|
|
9276
|
-
* Adds bytes to internal buffer.
|
|
9277
|
-
* Call {@link decode} to decode the buffered data.
|
|
9278
|
-
* @param bytes The array from witch bytes are to be added.
|
|
9279
|
-
* @param offset The offset within the array of the fist byte to be added.
|
|
9280
|
-
* @param length The number of bytes to be added from the given array.
|
|
9281
|
-
* @returns {Number} Number of bytes that weren't added due to buffer not having enough space.
|
|
9295
|
+
/**
|
|
9296
|
+
* Adds bytes to internal buffer.
|
|
9297
|
+
* Call {@link decode} to decode the buffered data.
|
|
9298
|
+
* @param bytes The array from witch bytes are to be added.
|
|
9299
|
+
* @param offset The offset within the array of the fist byte to be added.
|
|
9300
|
+
* @param length The number of bytes to be added from the given array.
|
|
9301
|
+
* @returns {Number} Number of bytes that weren't added due to buffer not having enough space.
|
|
9282
9302
|
*/
|
|
9283
9303
|
|
|
9284
9304
|
|
|
@@ -9307,11 +9327,11 @@ var BlockDecoder = function () {
|
|
|
9307
9327
|
return numOfLeftoverBytes;
|
|
9308
9328
|
};
|
|
9309
9329
|
|
|
9310
|
-
/**
|
|
9311
|
-
* Incrementally decodes the data in the internal buffer.
|
|
9312
|
-
* Successive calls to this method will return the next decoded message as long enough data is avail
|
|
9313
|
-
* If not enough data is available null will be returned until more data is added.
|
|
9314
|
-
* @returns {*} The next decoded message or null if not enough data is available.
|
|
9330
|
+
/**
|
|
9331
|
+
* Incrementally decodes the data in the internal buffer.
|
|
9332
|
+
* Successive calls to this method will return the next decoded message as long enough data is avail
|
|
9333
|
+
* If not enough data is available null will be returned until more data is added.
|
|
9334
|
+
* @returns {*} The next decoded message or null if not enough data is available.
|
|
9315
9335
|
*/
|
|
9316
9336
|
|
|
9317
9337
|
|
|
@@ -9670,8 +9690,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
9670
9690
|
|
|
9671
9691
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9672
9692
|
|
|
9673
|
-
/*
|
|
9674
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
9693
|
+
/*
|
|
9694
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
9675
9695
|
*/
|
|
9676
9696
|
var QitchDecoder = function () {
|
|
9677
9697
|
function QitchDecoder(bufferSize) {
|
|
@@ -11373,8 +11393,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
11373
11393
|
|
|
11374
11394
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11375
11395
|
|
|
11376
|
-
/*
|
|
11377
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
11396
|
+
/*
|
|
11397
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
11378
11398
|
*/
|
|
11379
11399
|
var QitchEncoder = function () {
|
|
11380
11400
|
function QitchEncoder() {
|
|
@@ -11383,12 +11403,12 @@ var QitchEncoder = function () {
|
|
|
11383
11403
|
this.encoder = new MessageEncoder();
|
|
11384
11404
|
}
|
|
11385
11405
|
|
|
11386
|
-
/**
|
|
11387
|
-
* Encodes a message into its binary representation.
|
|
11388
|
-
* @param msg Msg {SMessage} the message to encode
|
|
11389
|
-
* @param offset The offset used to write message into a buffer
|
|
11390
|
-
* @returns {ArrayBuffer} the encoded bytes
|
|
11391
|
-
* @throws Throws an error if message cannot be encoded
|
|
11406
|
+
/**
|
|
11407
|
+
* Encodes a message into its binary representation.
|
|
11408
|
+
* @param msg Msg {SMessage} the message to encode
|
|
11409
|
+
* @param offset The offset used to write message into a buffer
|
|
11410
|
+
* @returns {ArrayBuffer} the encoded bytes
|
|
11411
|
+
* @throws Throws an error if message cannot be encoded
|
|
11392
11412
|
*/
|
|
11393
11413
|
|
|
11394
11414
|
|
|
@@ -12610,11 +12630,11 @@ exports["default"] = new function () {
|
|
|
12610
12630
|
|
|
12611
12631
|
// Generated by CoffeeScript 1.7.1
|
|
12612
12632
|
|
|
12613
|
-
/*
|
|
12614
|
-
Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
|
|
12615
|
-
|
|
12616
|
-
Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
|
|
12617
|
-
Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
|
|
12633
|
+
/*
|
|
12634
|
+
Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
|
|
12635
|
+
|
|
12636
|
+
Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
|
|
12637
|
+
Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
|
|
12618
12638
|
*/
|
|
12619
12639
|
|
|
12620
12640
|
(function () {
|
|
@@ -12967,6 +12987,17 @@ exports["default"] = new function () {
|
|
|
12967
12987
|
}
|
|
12968
12988
|
};
|
|
12969
12989
|
|
|
12990
|
+
Client.prototype.sendCustomFrame = function (destination, frame, headers, body) {
|
|
12991
|
+
if (headers == null) {
|
|
12992
|
+
headers = {};
|
|
12993
|
+
}
|
|
12994
|
+
if (body == null) {
|
|
12995
|
+
body = '';
|
|
12996
|
+
}
|
|
12997
|
+
headers.destination = destination;
|
|
12998
|
+
return this._transmit(frame, headers, body);
|
|
12999
|
+
};
|
|
13000
|
+
|
|
12970
13001
|
Client.prototype.send = function (destination, headers, body) {
|
|
12971
13002
|
if (headers == null) {
|
|
12972
13003
|
headers = {};
|
|
@@ -13150,6 +13181,9 @@ var StompConnection = function () {
|
|
|
13150
13181
|
var socketProxy = { // Late binding for socket
|
|
13151
13182
|
send: function send(message) {
|
|
13152
13183
|
return _this.socket.send(message);
|
|
13184
|
+
},
|
|
13185
|
+
sendCustomFrame: function sendCustomFrame(dest, frame, headers, msg) {
|
|
13186
|
+
return _this.socket.sendCustomFrame(dest, frame, headers, msg);
|
|
13153
13187
|
}
|
|
13154
13188
|
};
|
|
13155
13189
|
|
|
@@ -13287,6 +13321,18 @@ var StompConnection = function () {
|
|
|
13287
13321
|
}
|
|
13288
13322
|
};
|
|
13289
13323
|
|
|
13324
|
+
StompConnection.prototype.sendCustomFrame = function sendCustomFrame(dest, frame, headers, msg) {
|
|
13325
|
+
try {
|
|
13326
|
+
this.transmitter.sendCustomFrame(dest, frame, headers, msg);
|
|
13327
|
+
} catch (err) {
|
|
13328
|
+
this.events.fire("error", events.error("Error sending custom frame message", {
|
|
13329
|
+
reason: err.message,
|
|
13330
|
+
cause: err,
|
|
13331
|
+
code: -4
|
|
13332
|
+
}));
|
|
13333
|
+
}
|
|
13334
|
+
};
|
|
13335
|
+
|
|
13290
13336
|
StompConnection.prototype.isReconnect = function isReconnect() {
|
|
13291
13337
|
return this.request['x-Stream-isReconnect'];
|
|
13292
13338
|
};
|
|
@@ -13403,6 +13449,7 @@ var StompStream = function () {
|
|
|
13403
13449
|
this.pendingAlertSubscription = {};
|
|
13404
13450
|
this.pendingTradeSubscription = {};
|
|
13405
13451
|
this.pendingTradeUnsubscription = {};
|
|
13452
|
+
this.pendingSCFMessages = {};
|
|
13406
13453
|
|
|
13407
13454
|
this.on("error", function (err) {
|
|
13408
13455
|
_this.log.warn(err);
|
|
@@ -13429,6 +13476,43 @@ var StompStream = function () {
|
|
|
13429
13476
|
return this.events.on(event, listener);
|
|
13430
13477
|
};
|
|
13431
13478
|
|
|
13479
|
+
StompStream.prototype.SCFSendMessage = function SCFSendMessage(destination, frame, headers, message, callbackOrNothing) {
|
|
13480
|
+
var jsonMessage = JSON.parse(message);
|
|
13481
|
+
|
|
13482
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
13483
|
+
|
|
13484
|
+
if (this.isClosed()) {
|
|
13485
|
+
var event = events.error("Stream is disconnected", {
|
|
13486
|
+
code: -1,
|
|
13487
|
+
reason: "Already disconnected"
|
|
13488
|
+
});
|
|
13489
|
+
this.events.fire("error", event);
|
|
13490
|
+
if (callback) {
|
|
13491
|
+
callback(event);
|
|
13492
|
+
}
|
|
13493
|
+
return;
|
|
13494
|
+
}
|
|
13495
|
+
|
|
13496
|
+
var subscription = {
|
|
13497
|
+
ids: [],
|
|
13498
|
+
dataTypes: jsonMessage["@T"],
|
|
13499
|
+
action: jsonMessage["action"],
|
|
13500
|
+
callback: callback
|
|
13501
|
+
};
|
|
13502
|
+
|
|
13503
|
+
if (jsonMessage === undefined || jsonMessage === null) {
|
|
13504
|
+
callback(null, null);
|
|
13505
|
+
return;
|
|
13506
|
+
}
|
|
13507
|
+
|
|
13508
|
+
var id = this.requestid.next();
|
|
13509
|
+
subscription.ids.push(id);
|
|
13510
|
+
this.pendingSCFMessages[id] = subscription;
|
|
13511
|
+
jsonMessage.id = id;
|
|
13512
|
+
|
|
13513
|
+
this.sendCustomFrame(destination, frame, headers, jsonMessage);
|
|
13514
|
+
};
|
|
13515
|
+
|
|
13432
13516
|
StompStream.prototype.subscribe = function subscribe(symbols, types, optsOrCallback, callbackOrNothing) {
|
|
13433
13517
|
var _this2 = this;
|
|
13434
13518
|
|
|
@@ -13874,7 +13958,9 @@ var StompStream = function () {
|
|
|
13874
13958
|
};
|
|
13875
13959
|
|
|
13876
13960
|
StompStream.prototype._handlejsonmsg = function _handlejsonmsg(msg) {
|
|
13877
|
-
if ((0, _streamerUtils.iscontrolmessage)(msg)) {
|
|
13961
|
+
if ((0, _streamerUtils.iscontrolmessage)(msg) && msg.__id in this.pendingSCFMessages) {
|
|
13962
|
+
this.SCFHandlectrlmsg(msg);
|
|
13963
|
+
} else if ((0, _streamerUtils.iscontrolmessage)(msg)) {
|
|
13878
13964
|
this.handlectrlmsg(msg);
|
|
13879
13965
|
} else if ((0, _streamerUtils.isdatamessage)(msg)) {
|
|
13880
13966
|
this._handledatamsg(msg);
|
|
@@ -14049,6 +14135,33 @@ var StompStream = function () {
|
|
|
14049
14135
|
}
|
|
14050
14136
|
};
|
|
14051
14137
|
|
|
14138
|
+
StompStream.prototype.SCFHandlectrlmsg = function SCFHandlectrlmsg(msg) {
|
|
14139
|
+
this.log.debug(_formatting.msgfmt.fmt(msg));
|
|
14140
|
+
console.log(this.pendingSCFMessages);
|
|
14141
|
+
var request = this.pendingSCFMessages[msg.__id];
|
|
14142
|
+
var callback = request.callback;
|
|
14143
|
+
|
|
14144
|
+
(0, _utils.removeFromArray)(request.ids, msg.__id);
|
|
14145
|
+
delete this.pendingSCFMessages[msg.__id];
|
|
14146
|
+
|
|
14147
|
+
if (msg.code != 200) {
|
|
14148
|
+
var event = events.error("Error subscribing", {
|
|
14149
|
+
code: msg.code,
|
|
14150
|
+
reason: msg.reason
|
|
14151
|
+
});
|
|
14152
|
+
this.events.fire("error", event);
|
|
14153
|
+
if (callback) {
|
|
14154
|
+
request.callback(event);
|
|
14155
|
+
}
|
|
14156
|
+
return;
|
|
14157
|
+
}
|
|
14158
|
+
if (request.ids.length === 0) {
|
|
14159
|
+
if (callback) {
|
|
14160
|
+
callback(null, request);
|
|
14161
|
+
}
|
|
14162
|
+
}
|
|
14163
|
+
};
|
|
14164
|
+
|
|
14052
14165
|
StompStream.prototype.onHeartbeat = function onHeartbeat(msg) {};
|
|
14053
14166
|
|
|
14054
14167
|
StompStream.prototype.onSubscribeResponse = function onSubscribeResponse(msg) {
|
|
@@ -14602,6 +14715,12 @@ var StompStream = function () {
|
|
|
14602
14715
|
}
|
|
14603
14716
|
};
|
|
14604
14717
|
|
|
14718
|
+
StompStream.prototype.sendCustomFrame = function sendCustomFrame(dest, frame, headers, msg) {
|
|
14719
|
+
if (this.conn) {
|
|
14720
|
+
this.conn.sendCustomFrame(dest, frame, headers, msg);
|
|
14721
|
+
}
|
|
14722
|
+
};
|
|
14723
|
+
|
|
14605
14724
|
StompStream.prototype.doClose = function doClose(msg) {
|
|
14606
14725
|
if (!this.isClosed()) {
|
|
14607
14726
|
var conn = this.conn;
|
|
@@ -14825,6 +14944,9 @@ var StompStreamingService = function () {
|
|
|
14825
14944
|
stompClient.disconnect(function () {
|
|
14826
14945
|
handlers(headers).onClose();
|
|
14827
14946
|
});
|
|
14947
|
+
},
|
|
14948
|
+
sendCustomFrame: function sendCustomFrame(dest, frame, inputHeaders, msg) {
|
|
14949
|
+
stompClient.sendCustomFrame(dest, frame, inputHeaders, msg);
|
|
14828
14950
|
}
|
|
14829
14951
|
};
|
|
14830
14952
|
};
|
|
@@ -14886,1166 +15008,1167 @@ exports["default"] = StompStreamingService;
|
|
|
14886
15008
|
exports.__esModule = true;
|
|
14887
15009
|
/* @see http://usejsdoc.org */
|
|
14888
15010
|
|
|
14889
|
-
/**
|
|
14890
|
-
* Streamer api namespace.
|
|
14891
|
-
* @namespace
|
|
15011
|
+
/**
|
|
15012
|
+
* Streamer api namespace.
|
|
15013
|
+
* @namespace
|
|
14892
15014
|
*/
|
|
14893
15015
|
|
|
14894
15016
|
var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
|
|
14895
|
-
var VERSION = exports.VERSION = "2.
|
|
15017
|
+
var VERSION = exports.VERSION = "2.44.0";
|
|
14896
15018
|
|
|
14897
|
-
/**
|
|
14898
|
-
* Streamer message api namespace.
|
|
14899
|
-
* @namespace
|
|
15019
|
+
/**
|
|
15020
|
+
* Streamer message api namespace.
|
|
15021
|
+
* @namespace
|
|
14900
15022
|
*/
|
|
14901
15023
|
var messages = exports.messages = {};
|
|
14902
15024
|
|
|
14903
|
-
/**
|
|
14904
|
-
* Streamer control message namespace. * @namespace
|
|
15025
|
+
/**
|
|
15026
|
+
* Streamer control message namespace. * @namespace
|
|
14905
15027
|
*/
|
|
14906
15028
|
messages.control = {};
|
|
14907
15029
|
|
|
14908
|
-
/**
|
|
14909
|
-
* Streamer market data message namespace.
|
|
14910
|
-
* @namespace
|
|
15030
|
+
/**
|
|
15031
|
+
* Streamer market data message namespace.
|
|
15032
|
+
* @namespace
|
|
14911
15033
|
*/
|
|
14912
15034
|
messages.market = {};
|
|
14913
15035
|
|
|
14914
15036
|
/* ****************************************************************************************************************** */
|
|
14915
15037
|
|
|
14916
|
-
/**
|
|
14917
|
-
*
|
|
14918
|
-
* @type {string}
|
|
15038
|
+
/**
|
|
15039
|
+
*
|
|
15040
|
+
* @type {string}
|
|
14919
15041
|
*/
|
|
14920
15042
|
messages.JSON_TYPE_PROPERTY = '@T';
|
|
14921
15043
|
|
|
14922
|
-
/**
|
|
14923
|
-
* Message type identifiers.<br>
|
|
14924
|
-
* Ensure identifiers are unique within this name space.
|
|
14925
|
-
* @namespace
|
|
15044
|
+
/**
|
|
15045
|
+
* Message type identifiers.<br>
|
|
15046
|
+
* Ensure identifiers are unique within this name space.
|
|
15047
|
+
* @namespace
|
|
14926
15048
|
*/
|
|
14927
15049
|
messages.MessageTypeNames = {
|
|
14928
|
-
|
|
14929
|
-
|
|
14930
|
-
|
|
14931
|
-
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
|
|
14935
|
-
|
|
14936
|
-
|
|
14937
|
-
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
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
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
14989
|
-
|
|
14990
|
-
|
|
14991
|
-
|
|
14992
|
-
|
|
14993
|
-
|
|
14994
|
-
|
|
15050
|
+
/**
|
|
15051
|
+
* Name space for control message type identifiers.
|
|
15052
|
+
* @namespace
|
|
15053
|
+
*/
|
|
15054
|
+
ctrl: {
|
|
15055
|
+
HEARTBEAT: 'C1',
|
|
15056
|
+
SUBSCRIBE: 'C2',
|
|
15057
|
+
SUBSCRIBE_RESPONSE: 'C3',
|
|
15058
|
+
UNSUBSCRIBE_RESPONSE: 'C4',
|
|
15059
|
+
CONNECT_RESPONSE: 'C5',
|
|
15060
|
+
CONNECTION_CLOSE: 'C6',
|
|
15061
|
+
FLOW: 'C7',
|
|
15062
|
+
SLOW_CONNECTION: 'C8',
|
|
15063
|
+
INITIAL_DATA_SENT: 'C9',
|
|
15064
|
+
RESUBSCRIBE_MESSAGE: 'C10',
|
|
15065
|
+
STATS: 'C12',
|
|
15066
|
+
STATS_RESPONSE: 'C13',
|
|
15067
|
+
EXCHANGE_SUBSCRIBE: 'C14',
|
|
15068
|
+
EXCHANGE_RESPONSE: 'C15',
|
|
15069
|
+
EXCHANGE_UNSUBSCRIBE_RESPONSE: 'C16',
|
|
15070
|
+
NEWS_SUBSCRIBE: 'C17',
|
|
15071
|
+
NEWS_SUBSCRIBE_RESPONSE: 'C18',
|
|
15072
|
+
ALERTS_SUBUNSUB: 'C19',
|
|
15073
|
+
ALERTS_SUBUNSUB_RESPONSE: 'C20',
|
|
15074
|
+
TRADE_SUBSCRIBE: 'C21',
|
|
15075
|
+
TRADE_SUBSCRIBE_RESPONSE: 'C22',
|
|
15076
|
+
NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
|
|
15077
|
+
NEWS_COMMAND: 'C24',
|
|
15078
|
+
NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
|
|
15079
|
+
NEWS_CMD_FILTER_RESPONSE: 'C26',
|
|
15080
|
+
AUTHENTICATION: 'C27',
|
|
15081
|
+
OPEN_FLOW: 'C28',
|
|
15082
|
+
RECONNECT_RESPONSE: 'C29',
|
|
15083
|
+
TRADE_UNSUBSCRIBE_RESPONSE: 'C30',
|
|
15084
|
+
MISSED_DATA_SENT: 'C31'
|
|
15085
|
+
},
|
|
15086
|
+
/**
|
|
15087
|
+
* Name space for data message type identifiers.<br>
|
|
15088
|
+
* Prefix with 'D'.
|
|
15089
|
+
* @namespace
|
|
15090
|
+
*/
|
|
15091
|
+
data: {
|
|
15092
|
+
QUOTE: 'D1',
|
|
15093
|
+
PRICEDATA: 'D2',
|
|
15094
|
+
TRADE: 'D3',
|
|
15095
|
+
BOOKORDER: 'D4',
|
|
15096
|
+
BOOKDELETE: 'D5',
|
|
15097
|
+
PURGEBOOK: 'D6',
|
|
15098
|
+
MMQUOTE: 'D7',
|
|
15099
|
+
INTERVAL: 'D8',
|
|
15100
|
+
NETHOUSEPOSITION: 'D9',
|
|
15101
|
+
SYMBOLINFO: 'D10',
|
|
15102
|
+
SYMBOLSTATUS: 'D11',
|
|
15103
|
+
DERIVATIVEINFO: 'D12',
|
|
15104
|
+
LASTSALE: 'D13',
|
|
15105
|
+
LIMITUPLIMITDOWN: 'D14',
|
|
15106
|
+
IVGREEKS: 'D15',
|
|
15107
|
+
IMBALANCESTATUS: 'D16',
|
|
15108
|
+
ALERT: 'D17',
|
|
15109
|
+
NEWS: 'D18',
|
|
15110
|
+
TRADENOTIFICATION: 'D19',
|
|
15111
|
+
NEWSCMDFILTER: 'D20',
|
|
15112
|
+
NEWSERROR: 'D21',
|
|
15113
|
+
DIVIDEND: 'D22',
|
|
15114
|
+
EARNINGS: 'D23',
|
|
15115
|
+
SPLIT: 'D24',
|
|
15116
|
+
SYMBOLCHANGED: 'D25'
|
|
15117
|
+
}
|
|
14995
15118
|
};
|
|
14996
15119
|
|
|
14997
|
-
/**
|
|
14998
|
-
* Super type of all exports.
|
|
14999
|
-
* @abstract
|
|
15000
|
-
* @constructor
|
|
15120
|
+
/**
|
|
15121
|
+
* Super type of all exports.
|
|
15122
|
+
* @abstract
|
|
15123
|
+
* @constructor
|
|
15001
15124
|
*/
|
|
15002
15125
|
messages.Message = function () {};
|
|
15003
15126
|
|
|
15004
15127
|
messages.Message.prototype.init = function (typeid) {
|
|
15005
|
-
|
|
15128
|
+
this[messages.JSON_TYPE_PROPERTY] = typeid;
|
|
15006
15129
|
};
|
|
15007
15130
|
|
|
15008
15131
|
/* ****************************************************************************************************************** */
|
|
15009
15132
|
|
|
15010
|
-
/**
|
|
15011
|
-
* Creates a control message base object.
|
|
15012
|
-
* @abstract
|
|
15013
|
-
* @constructor
|
|
15133
|
+
/**
|
|
15134
|
+
* Creates a control message base object.
|
|
15135
|
+
* @abstract
|
|
15136
|
+
* @constructor
|
|
15014
15137
|
*/
|
|
15015
15138
|
messages.control.CtrlMessage = function () {};
|
|
15016
15139
|
messages.control.CtrlMessage.prototype = new messages.Message();
|
|
15017
15140
|
|
|
15018
|
-
/**
|
|
15019
|
-
* Creates a heartbeat message.
|
|
15020
|
-
* @constructor
|
|
15141
|
+
/**
|
|
15142
|
+
* Creates a heartbeat message.
|
|
15143
|
+
* @constructor
|
|
15021
15144
|
*/
|
|
15022
15145
|
messages.control.Heartbeat = function () {
|
|
15023
|
-
|
|
15146
|
+
this.init(messages.MessageTypeNames.ctrl.HEARTBEAT);
|
|
15024
15147
|
|
|
15025
|
-
|
|
15026
|
-
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
|
|
15030
|
-
|
|
15148
|
+
/**
|
|
15149
|
+
* Timestamp when heartbeat was generated.
|
|
15150
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15151
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15152
|
+
*/
|
|
15153
|
+
this.timestamp = null;
|
|
15031
15154
|
};
|
|
15032
15155
|
messages.control.Heartbeat.prototype = new messages.control.CtrlMessage();
|
|
15033
|
-
/**
|
|
15034
|
-
* Creates a stats message.
|
|
15035
|
-
* @constructor
|
|
15156
|
+
/**
|
|
15157
|
+
* Creates a stats message.
|
|
15158
|
+
* @constructor
|
|
15036
15159
|
*/
|
|
15037
15160
|
messages.control.StatsMessage = function () {
|
|
15038
|
-
|
|
15161
|
+
this.init(messages.MessageTypeNames.ctrl.STATS);
|
|
15039
15162
|
};
|
|
15040
15163
|
messages.control.StatsMessage.prototype = new messages.control.CtrlMessage();
|
|
15041
15164
|
|
|
15042
|
-
/**
|
|
15043
|
-
* Creates a subscribe message.
|
|
15044
|
-
* @constructor
|
|
15165
|
+
/**
|
|
15166
|
+
* Creates a subscribe message.
|
|
15167
|
+
* @constructor
|
|
15045
15168
|
*/
|
|
15046
15169
|
messages.control.SubscribeMessage = function () {
|
|
15047
|
-
|
|
15170
|
+
this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
|
|
15048
15171
|
|
|
15049
|
-
|
|
15050
|
-
|
|
15051
|
-
|
|
15052
|
-
|
|
15053
|
-
|
|
15054
|
-
|
|
15055
|
-
|
|
15056
|
-
/**
|
|
15057
|
-
* List of ticker symbols to subscribe/un-subscribe for.
|
|
15058
|
-
* @type {Array.<string>}
|
|
15059
|
-
*/
|
|
15060
|
-
this.symbols = [];
|
|
15172
|
+
/**
|
|
15173
|
+
* The action the server will taken when receiving this message.
|
|
15174
|
+
* @type {string}
|
|
15175
|
+
* @see exports.messages.control.Action
|
|
15176
|
+
*/
|
|
15177
|
+
this.action = null;
|
|
15061
15178
|
|
|
15062
|
-
|
|
15063
|
-
|
|
15064
|
-
|
|
15065
|
-
|
|
15066
|
-
|
|
15067
|
-
this.types = [];
|
|
15179
|
+
/**
|
|
15180
|
+
* List of ticker symbols to subscribe/un-subscribe for.
|
|
15181
|
+
* @type {Array.<string>}
|
|
15182
|
+
*/
|
|
15183
|
+
this.symbols = [];
|
|
15068
15184
|
|
|
15069
|
-
|
|
15070
|
-
|
|
15071
|
-
|
|
15072
|
-
|
|
15073
|
-
|
|
15074
|
-
|
|
15185
|
+
/**
|
|
15186
|
+
* List of streaming message types to subscribe each ticker symbol for.
|
|
15187
|
+
* @type {Array.<string>}
|
|
15188
|
+
* @see exports.messages.control.MarketdataType
|
|
15189
|
+
*/
|
|
15190
|
+
this.types = [];
|
|
15075
15191
|
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
|
|
15192
|
+
/**
|
|
15193
|
+
* Requested message mime-type format.
|
|
15194
|
+
* @type {string}
|
|
15195
|
+
* @see exports.messages.MimeTypes
|
|
15196
|
+
*/
|
|
15197
|
+
this.mimetype = null;
|
|
15198
|
+
|
|
15199
|
+
/**
|
|
15200
|
+
* Requested conflation. Null indicates using the default conflation.
|
|
15201
|
+
* @type {int}
|
|
15202
|
+
*/
|
|
15203
|
+
this.conflation = null;
|
|
15081
15204
|
};
|
|
15082
15205
|
messages.control.SubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15083
15206
|
|
|
15084
|
-
/**
|
|
15085
|
-
* Creates an exchange subscribe message.
|
|
15086
|
-
* @constructor
|
|
15207
|
+
/**
|
|
15208
|
+
* Creates an exchange subscribe message.
|
|
15209
|
+
* @constructor
|
|
15087
15210
|
*/
|
|
15088
15211
|
messages.control.ExchangeSubscribeMessage = function () {
|
|
15089
|
-
|
|
15212
|
+
this.init(messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE);
|
|
15090
15213
|
|
|
15091
|
-
|
|
15092
|
-
|
|
15093
|
-
|
|
15094
|
-
|
|
15095
|
-
|
|
15096
|
-
|
|
15214
|
+
/**
|
|
15215
|
+
* The action the server will taken when receiving this message.
|
|
15216
|
+
* @type {string}
|
|
15217
|
+
* @see exports.messages.control.Action
|
|
15218
|
+
*/
|
|
15219
|
+
this.action = null;
|
|
15097
15220
|
|
|
15098
|
-
|
|
15099
|
-
|
|
15100
|
-
|
|
15101
|
-
|
|
15102
|
-
|
|
15221
|
+
/**
|
|
15222
|
+
* The Exchange to subscribe/un-subscribe for.
|
|
15223
|
+
* @type {Array.<string>}
|
|
15224
|
+
*/
|
|
15225
|
+
this.exchange = null;
|
|
15103
15226
|
|
|
15104
|
-
|
|
15105
|
-
|
|
15106
|
-
|
|
15107
|
-
|
|
15108
|
-
|
|
15109
|
-
|
|
15227
|
+
/**
|
|
15228
|
+
* Requested message mime-type format.
|
|
15229
|
+
* @type {string}
|
|
15230
|
+
* @see exports.messages.MimeTypes
|
|
15231
|
+
*/
|
|
15232
|
+
this.mimetype = null;
|
|
15110
15233
|
|
|
15111
|
-
|
|
15112
|
-
|
|
15113
|
-
|
|
15114
|
-
|
|
15115
|
-
|
|
15234
|
+
/**
|
|
15235
|
+
* Requested conflation. Null indicates using the default conflation.
|
|
15236
|
+
* @type {int}
|
|
15237
|
+
*/
|
|
15238
|
+
this.conflation = null;
|
|
15116
15239
|
};
|
|
15117
15240
|
messages.control.ExchangeSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15118
15241
|
|
|
15119
|
-
/**
|
|
15120
|
-
* Creates an news subscribe message.
|
|
15121
|
-
* @constructor
|
|
15242
|
+
/**
|
|
15243
|
+
* Creates an news subscribe message.
|
|
15244
|
+
* @constructor
|
|
15122
15245
|
*/
|
|
15123
15246
|
messages.control.NewsSubscribeMessage = function () {
|
|
15124
|
-
|
|
15247
|
+
this.init(messages.MessageTypeNames.ctrl.NEWS_SUBSCRIBE);
|
|
15125
15248
|
|
|
15126
|
-
|
|
15127
|
-
|
|
15128
|
-
|
|
15129
|
-
|
|
15130
|
-
|
|
15131
|
-
|
|
15249
|
+
/**
|
|
15250
|
+
* The action the server will taken when receiving this message.
|
|
15251
|
+
* @type {string}
|
|
15252
|
+
* @see exports.messages.control.Action
|
|
15253
|
+
*/
|
|
15254
|
+
this.action = null;
|
|
15132
15255
|
|
|
15133
|
-
|
|
15134
|
-
|
|
15135
|
-
|
|
15136
|
-
|
|
15137
|
-
|
|
15256
|
+
/**
|
|
15257
|
+
* The news filters to subscribe for.
|
|
15258
|
+
* @type {Array.<string>}
|
|
15259
|
+
*/
|
|
15260
|
+
this.newsFilters = null;
|
|
15138
15261
|
|
|
15139
|
-
|
|
15140
|
-
|
|
15141
|
-
|
|
15142
|
-
|
|
15143
|
-
|
|
15144
|
-
|
|
15262
|
+
/**
|
|
15263
|
+
* Requested message mime-type format.
|
|
15264
|
+
* @type {string}
|
|
15265
|
+
* @see exports.messages.MimeTypes
|
|
15266
|
+
*/
|
|
15267
|
+
this.mimetype = null;
|
|
15145
15268
|
};
|
|
15146
15269
|
messages.control.NewsSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15147
15270
|
|
|
15148
|
-
/**
|
|
15149
|
-
* Creates an news reset message.
|
|
15150
|
-
* @constructor
|
|
15271
|
+
/**
|
|
15272
|
+
* Creates an news reset message.
|
|
15273
|
+
* @constructor
|
|
15151
15274
|
*/
|
|
15152
15275
|
messages.control.NewsCommandMessage = function () {
|
|
15153
|
-
|
|
15276
|
+
this.init(messages.MessageTypeNames.ctrl.NEWS_COMMAND);
|
|
15154
15277
|
|
|
15155
|
-
|
|
15156
|
-
|
|
15157
|
-
|
|
15158
|
-
|
|
15159
|
-
|
|
15160
|
-
|
|
15278
|
+
/**
|
|
15279
|
+
* The action the server will taken when receiving this message.
|
|
15280
|
+
* @type {string}
|
|
15281
|
+
* @see exports.messages.control.Action
|
|
15282
|
+
*/
|
|
15283
|
+
this.newsAction = null;
|
|
15161
15284
|
|
|
15162
|
-
|
|
15163
|
-
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
|
-
|
|
15167
|
-
|
|
15285
|
+
/**
|
|
15286
|
+
* Requested message mime-type format.
|
|
15287
|
+
* @type {string}
|
|
15288
|
+
* @see exports.messages.MimeTypes
|
|
15289
|
+
*/
|
|
15290
|
+
this.mimetype = null;
|
|
15168
15291
|
};
|
|
15169
15292
|
messages.control.NewsCommandMessage.prototype = new messages.control.CtrlMessage();
|
|
15170
15293
|
|
|
15171
|
-
/**
|
|
15172
|
-
* Creates an news subscribe message.
|
|
15173
|
-
* @constructor
|
|
15294
|
+
/**
|
|
15295
|
+
* Creates an news subscribe message.
|
|
15296
|
+
* @constructor
|
|
15174
15297
|
*/
|
|
15175
15298
|
messages.control.AlertsSubUnsubMessage = function () {
|
|
15176
|
-
|
|
15299
|
+
this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB);
|
|
15177
15300
|
|
|
15178
|
-
|
|
15179
|
-
|
|
15180
|
-
|
|
15181
|
-
|
|
15182
|
-
|
|
15301
|
+
/**
|
|
15302
|
+
* sub/unsub for alerts.
|
|
15303
|
+
* @type {string}
|
|
15304
|
+
*/
|
|
15305
|
+
this.operation = null;
|
|
15183
15306
|
|
|
15184
|
-
|
|
15185
|
-
|
|
15186
|
-
|
|
15187
|
-
|
|
15188
|
-
|
|
15189
|
-
|
|
15307
|
+
/**
|
|
15308
|
+
* Requested message mime-type format.
|
|
15309
|
+
* @type {string}
|
|
15310
|
+
* @see exports.messages.MimeTypes
|
|
15311
|
+
*/
|
|
15312
|
+
this.mimetype = null;
|
|
15190
15313
|
};
|
|
15191
15314
|
messages.control.AlertsSubUnsubMessage.prototype = new messages.control.CtrlMessage();
|
|
15192
15315
|
|
|
15193
|
-
/**
|
|
15194
|
-
* Creates Trade notification subscribe message.
|
|
15195
|
-
* @constructor
|
|
15316
|
+
/**
|
|
15317
|
+
* Creates Trade notification subscribe message.
|
|
15318
|
+
* @constructor
|
|
15196
15319
|
*/
|
|
15197
15320
|
|
|
15198
15321
|
messages.control.TradeSubscribeMessage = function () {
|
|
15199
|
-
|
|
15322
|
+
this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE);
|
|
15200
15323
|
|
|
15201
|
-
|
|
15202
|
-
|
|
15203
|
-
|
|
15204
|
-
|
|
15205
|
-
|
|
15206
|
-
|
|
15324
|
+
/**
|
|
15325
|
+
* The action the server will taken when receiving this message.
|
|
15326
|
+
* @type {string}
|
|
15327
|
+
* @see exports.messages.control.Action
|
|
15328
|
+
*/
|
|
15329
|
+
this.action = null;
|
|
15207
15330
|
|
|
15208
|
-
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15331
|
+
/**
|
|
15332
|
+
* The subscribe/un-subscribe for trade notifications.
|
|
15333
|
+
* @type {Array.<string>}
|
|
15334
|
+
*/
|
|
15335
|
+
this.notificationType = null;
|
|
15213
15336
|
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15337
|
+
/**
|
|
15338
|
+
* Requested message mime-type format.
|
|
15339
|
+
* @type {string}
|
|
15340
|
+
* @see exports.messages.MimeTypes
|
|
15341
|
+
*/
|
|
15342
|
+
this.mimetype = null;
|
|
15220
15343
|
};
|
|
15221
15344
|
messages.control.TradeSubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15222
15345
|
|
|
15223
|
-
/**
|
|
15224
|
-
* Base class for response exports.
|
|
15225
|
-
* @abstract
|
|
15346
|
+
/**
|
|
15347
|
+
* Base class for response exports.
|
|
15348
|
+
* @abstract
|
|
15226
15349
|
*/
|
|
15227
15350
|
messages.control.BaseResponse = function () {
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
|
|
15233
|
-
|
|
15351
|
+
/**
|
|
15352
|
+
* The response code.
|
|
15353
|
+
* @type {number}
|
|
15354
|
+
* @see {@link messages.control.ResponseCodes}
|
|
15355
|
+
*/
|
|
15356
|
+
this.code = null;
|
|
15234
15357
|
|
|
15235
|
-
|
|
15236
|
-
|
|
15237
|
-
|
|
15238
|
-
|
|
15239
|
-
|
|
15240
|
-
|
|
15358
|
+
/**
|
|
15359
|
+
* The response reason.
|
|
15360
|
+
* @type {string}
|
|
15361
|
+
* @see {@link messages.control.ResponseCodes}
|
|
15362
|
+
*/
|
|
15363
|
+
this.reason = null;
|
|
15241
15364
|
};
|
|
15242
15365
|
messages.control.BaseResponse.prototype = new messages.control.CtrlMessage();
|
|
15243
15366
|
|
|
15244
|
-
/**
|
|
15245
|
-
* Creates a subscribe response message.
|
|
15246
|
-
* @constructor
|
|
15367
|
+
/**
|
|
15368
|
+
* Creates a subscribe response message.
|
|
15369
|
+
* @constructor
|
|
15247
15370
|
*/
|
|
15248
15371
|
messages.control.SubscribeResponse = function () {
|
|
15249
|
-
|
|
15372
|
+
this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE);
|
|
15250
15373
|
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
|
|
15374
|
+
/**
|
|
15375
|
+
*
|
|
15376
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
15377
|
+
*/
|
|
15378
|
+
this.entitlements = null;
|
|
15256
15379
|
|
|
15257
|
-
|
|
15258
|
-
|
|
15259
|
-
|
|
15260
|
-
|
|
15261
|
-
|
|
15380
|
+
/**
|
|
15381
|
+
*
|
|
15382
|
+
* @type {Array.<string>}
|
|
15383
|
+
*/
|
|
15384
|
+
this.invalidsymbols = null;
|
|
15262
15385
|
|
|
15263
|
-
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
|
|
15267
|
-
|
|
15386
|
+
/**
|
|
15387
|
+
*
|
|
15388
|
+
* @type {Array.<string>}
|
|
15389
|
+
*/
|
|
15390
|
+
this.rejectedsymbols = null;
|
|
15268
15391
|
|
|
15269
|
-
|
|
15270
|
-
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15392
|
+
/**
|
|
15393
|
+
*
|
|
15394
|
+
* @type {Array.<string>}
|
|
15395
|
+
*/
|
|
15396
|
+
this.messagefilters = null;
|
|
15274
15397
|
};
|
|
15275
15398
|
messages.control.SubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15276
15399
|
|
|
15277
|
-
/**
|
|
15278
|
-
* Creates an exchange subscribe response message.
|
|
15279
|
-
* @constructor
|
|
15400
|
+
/**
|
|
15401
|
+
* Creates an exchange subscribe response message.
|
|
15402
|
+
* @constructor
|
|
15280
15403
|
*/
|
|
15281
15404
|
messages.control.ExchangeSubscribeResponse = function () {
|
|
15282
|
-
|
|
15405
|
+
this.init(messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE);
|
|
15283
15406
|
};
|
|
15284
15407
|
|
|
15285
15408
|
messages.control.ExchangeSubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15286
15409
|
|
|
15287
|
-
/**
|
|
15288
|
-
* Creates an Alert un-subscribe response message.
|
|
15289
|
-
* @constructor
|
|
15410
|
+
/**
|
|
15411
|
+
* Creates an Alert un-subscribe response message.
|
|
15412
|
+
* @constructor
|
|
15290
15413
|
*/
|
|
15291
15414
|
messages.control.AlertSubUnsubResponse = function () {
|
|
15292
|
-
|
|
15415
|
+
this.init(messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB_RESPONSE);
|
|
15293
15416
|
};
|
|
15294
15417
|
messages.control.AlertSubUnsubResponse.prototype = new messages.control.BaseResponse();
|
|
15295
15418
|
|
|
15296
|
-
/**
|
|
15297
|
-
* Creates Trade notification subscribe response message.
|
|
15298
|
-
* @constructor
|
|
15419
|
+
/**
|
|
15420
|
+
* Creates Trade notification subscribe response message.
|
|
15421
|
+
* @constructor
|
|
15299
15422
|
*/
|
|
15300
15423
|
messages.control.TradeSubscribeResponse = function () {
|
|
15301
|
-
|
|
15424
|
+
this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE_RESPONSE);
|
|
15302
15425
|
};
|
|
15303
15426
|
|
|
15304
15427
|
messages.control.TradeSubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15305
15428
|
|
|
15306
|
-
/**
|
|
15307
|
-
* Creates an un-subscribe response message.
|
|
15308
|
-
* @constructor
|
|
15429
|
+
/**
|
|
15430
|
+
* Creates an un-subscribe response message.
|
|
15431
|
+
* @constructor
|
|
15309
15432
|
*/
|
|
15310
15433
|
messages.control.UnsubscribeResponse = function () {
|
|
15311
|
-
|
|
15434
|
+
this.init(messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE);
|
|
15312
15435
|
|
|
15313
|
-
|
|
15314
|
-
|
|
15315
|
-
|
|
15316
|
-
|
|
15317
|
-
|
|
15436
|
+
/**
|
|
15437
|
+
*
|
|
15438
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
15439
|
+
*/
|
|
15440
|
+
this.unsubscribed = null;
|
|
15318
15441
|
};
|
|
15319
15442
|
messages.control.UnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15320
15443
|
|
|
15321
|
-
/**
|
|
15322
|
-
* Creates an exchange unsubscribe response message.
|
|
15323
|
-
* @constructor
|
|
15444
|
+
/**
|
|
15445
|
+
* Creates an exchange unsubscribe response message.
|
|
15446
|
+
* @constructor
|
|
15324
15447
|
*/
|
|
15325
15448
|
messages.control.ExchangeUnsubscribeResponse = function () {
|
|
15326
|
-
|
|
15449
|
+
this.init(messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE);
|
|
15327
15450
|
};
|
|
15328
15451
|
|
|
15329
15452
|
messages.control.ExchangeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15330
15453
|
|
|
15331
|
-
/**
|
|
15332
|
-
* Creates an news un-subscribe response message.
|
|
15333
|
-
* @constructor
|
|
15454
|
+
/**
|
|
15455
|
+
* Creates an news un-subscribe response message.
|
|
15456
|
+
* @constructor
|
|
15334
15457
|
*/
|
|
15335
15458
|
messages.control.NewsUnsubscribeResponse = function () {
|
|
15336
|
-
|
|
15459
|
+
this.init(messages.MessageTypeNames.ctrl.NEWS_UNSUBSCRIBE_RESPONSE);
|
|
15337
15460
|
|
|
15338
|
-
|
|
15339
|
-
|
|
15340
|
-
|
|
15341
|
-
|
|
15342
|
-
|
|
15461
|
+
/**
|
|
15462
|
+
*
|
|
15463
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
15464
|
+
*/
|
|
15465
|
+
this.unsubscribed = null;
|
|
15343
15466
|
};
|
|
15344
15467
|
messages.control.NewsUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15345
15468
|
|
|
15346
|
-
/**
|
|
15347
|
-
* Creates Trade notification subscribe response message.
|
|
15348
|
-
* @constructor
|
|
15469
|
+
/**
|
|
15470
|
+
* Creates Trade notification subscribe response message.
|
|
15471
|
+
* @constructor
|
|
15349
15472
|
*/
|
|
15350
15473
|
messages.control.TradeUnsubscribeResponse = function () {
|
|
15351
|
-
|
|
15474
|
+
this.init(messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE);
|
|
15352
15475
|
};
|
|
15353
15476
|
|
|
15354
15477
|
messages.control.TradeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
15355
|
-
/**
|
|
15356
|
-
* Creates a stream entitlement info.
|
|
15357
|
-
* @constructor
|
|
15478
|
+
/**
|
|
15479
|
+
* Creates a stream entitlement info.
|
|
15480
|
+
* @constructor
|
|
15358
15481
|
*/
|
|
15359
15482
|
messages.control.StreamEntitlement = function () {
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15483
|
+
/**
|
|
15484
|
+
* The symbol the entitlement is for.
|
|
15485
|
+
* @type {string}
|
|
15486
|
+
*/
|
|
15487
|
+
this.symbol = null;
|
|
15365
15488
|
|
|
15366
|
-
|
|
15367
|
-
|
|
15368
|
-
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15489
|
+
/**
|
|
15490
|
+
* The market data type the entitlement is for.
|
|
15491
|
+
* @type {string}
|
|
15492
|
+
* @see messages.control.MarketdataType
|
|
15493
|
+
*/
|
|
15494
|
+
this.marketdatatype = null;
|
|
15372
15495
|
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15496
|
+
/**
|
|
15497
|
+
*
|
|
15498
|
+
* @type {string}
|
|
15499
|
+
* @see messages.control.StreamEntitlementType
|
|
15500
|
+
*/
|
|
15501
|
+
this.entitlement = null;
|
|
15379
15502
|
};
|
|
15380
15503
|
|
|
15381
|
-
/**
|
|
15382
|
-
* Creates a new connect response message.
|
|
15383
|
-
* @constructor
|
|
15504
|
+
/**
|
|
15505
|
+
* Creates a new connect response message.
|
|
15506
|
+
* @constructor
|
|
15384
15507
|
*/
|
|
15385
15508
|
messages.control.ConnectResponse = function () {
|
|
15386
|
-
|
|
15509
|
+
this.init(messages.MessageTypeNames.ctrl.CONNECT_RESPONSE);
|
|
15387
15510
|
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15511
|
+
/**
|
|
15512
|
+
* The server version.
|
|
15513
|
+
* @type {string}
|
|
15514
|
+
*/
|
|
15515
|
+
this.version = null;
|
|
15393
15516
|
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15517
|
+
/**
|
|
15518
|
+
* The flow control check interval.
|
|
15519
|
+
* @type {number}
|
|
15520
|
+
*/
|
|
15521
|
+
this.flowControlCheckInterval = null;
|
|
15399
15522
|
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15523
|
+
/**
|
|
15524
|
+
* The server instance connected to.
|
|
15525
|
+
* @type {string}
|
|
15526
|
+
*/
|
|
15527
|
+
this.serverInstance = null;
|
|
15405
15528
|
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15529
|
+
/**
|
|
15530
|
+
* The conflation rate in milliseconds.
|
|
15531
|
+
* @type {number}
|
|
15532
|
+
*/
|
|
15533
|
+
this.conflationMs = null;
|
|
15411
15534
|
};
|
|
15412
15535
|
messages.control.ConnectResponse.prototype = new messages.control.BaseResponse();
|
|
15413
15536
|
|
|
15414
|
-
/**
|
|
15415
|
-
* Creates a new reconnect response message
|
|
15416
|
-
* @constructor
|
|
15537
|
+
/**
|
|
15538
|
+
* Creates a new reconnect response message
|
|
15539
|
+
* @constructor
|
|
15417
15540
|
*/
|
|
15418
15541
|
messages.control.ReconnectResponse = function () {
|
|
15419
|
-
|
|
15542
|
+
undefined.init(messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE);
|
|
15420
15543
|
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
|
|
15425
|
-
|
|
15544
|
+
/**
|
|
15545
|
+
* The server version.
|
|
15546
|
+
* @type {string}
|
|
15547
|
+
*/
|
|
15548
|
+
undefined.version = null;
|
|
15426
15549
|
|
|
15427
|
-
|
|
15428
|
-
|
|
15429
|
-
|
|
15430
|
-
|
|
15431
|
-
|
|
15550
|
+
/**
|
|
15551
|
+
* The flow control check interval.
|
|
15552
|
+
* @type {number}
|
|
15553
|
+
*/
|
|
15554
|
+
undefined.flowControlCheckInterval = null;
|
|
15432
15555
|
|
|
15433
|
-
|
|
15434
|
-
|
|
15435
|
-
|
|
15436
|
-
|
|
15437
|
-
|
|
15556
|
+
/**
|
|
15557
|
+
* The server instance connected to.
|
|
15558
|
+
* @type {string}
|
|
15559
|
+
*/
|
|
15560
|
+
undefined.serverInstance = null;
|
|
15438
15561
|
|
|
15439
|
-
|
|
15440
|
-
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
|
|
15562
|
+
/**
|
|
15563
|
+
* The conflation rate in milliseconds.
|
|
15564
|
+
* @type {number}
|
|
15565
|
+
*/
|
|
15566
|
+
undefined.conflationMs = null;
|
|
15444
15567
|
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15568
|
+
/**
|
|
15569
|
+
* The previous subscriptions
|
|
15570
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
15571
|
+
*/
|
|
15572
|
+
undefined.previousSubscriptions = null;
|
|
15450
15573
|
};
|
|
15451
15574
|
|
|
15452
|
-
/**
|
|
15453
|
-
* Creates a connection response message.
|
|
15454
|
-
* @constructor
|
|
15575
|
+
/**
|
|
15576
|
+
* Creates a connection response message.
|
|
15577
|
+
* @constructor
|
|
15455
15578
|
*/
|
|
15456
15579
|
messages.control.ConnectionClose = function () {
|
|
15457
|
-
|
|
15580
|
+
this.init(messages.MessageTypeNames.ctrl.CONNECTION_CLOSE);
|
|
15458
15581
|
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
|
|
15462
|
-
|
|
15463
|
-
|
|
15464
|
-
|
|
15582
|
+
/**
|
|
15583
|
+
* The connection close reason code.
|
|
15584
|
+
* @type {number}
|
|
15585
|
+
* @see {@link messages.control.ResponseCodes}
|
|
15586
|
+
*/
|
|
15587
|
+
this.code = null;
|
|
15465
15588
|
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15589
|
+
/**
|
|
15590
|
+
* The connection close reason message.
|
|
15591
|
+
* @type {string}
|
|
15592
|
+
* @see {@link messages.control.ResponseCodes}
|
|
15593
|
+
*/
|
|
15594
|
+
this.reason = null;
|
|
15472
15595
|
};
|
|
15473
15596
|
messages.control.ConnectionClose.prototype = new messages.control.CtrlMessage();
|
|
15474
15597
|
|
|
15475
|
-
/**
|
|
15476
|
-
* Creates a slow connection response message.
|
|
15477
|
-
* @constructor
|
|
15598
|
+
/**
|
|
15599
|
+
* Creates a slow connection response message.
|
|
15600
|
+
* @constructor
|
|
15478
15601
|
*/
|
|
15479
15602
|
messages.control.SlowConnection = function () {
|
|
15480
|
-
|
|
15603
|
+
this.init(messages.MessageTypeNames.ctrl.SLOW_CONNECTION);
|
|
15481
15604
|
|
|
15482
|
-
|
|
15483
|
-
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15605
|
+
/**
|
|
15606
|
+
* The number of times that the connection has exceeded already.
|
|
15607
|
+
* @type {number}
|
|
15608
|
+
*/
|
|
15609
|
+
this.timesExceeded = null;
|
|
15487
15610
|
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15611
|
+
/**
|
|
15612
|
+
* The max number allowed. The connection may close after reaching this number.
|
|
15613
|
+
* @type {number}
|
|
15614
|
+
*/
|
|
15615
|
+
this.maxExceed = null;
|
|
15493
15616
|
};
|
|
15494
15617
|
messages.control.SlowConnection.prototype = new messages.control.CtrlMessage();
|
|
15495
15618
|
|
|
15496
|
-
/**
|
|
15497
|
-
* Creates a flow control message.
|
|
15498
|
-
* @constructor
|
|
15619
|
+
/**
|
|
15620
|
+
* Creates a flow control message.
|
|
15621
|
+
* @constructor
|
|
15499
15622
|
*/
|
|
15500
15623
|
messages.control.FlowMessage = function () {
|
|
15501
|
-
|
|
15624
|
+
this.init(messages.MessageTypeNames.ctrl.FLOW);
|
|
15502
15625
|
|
|
15503
|
-
|
|
15504
|
-
|
|
15505
|
-
|
|
15506
|
-
|
|
15507
|
-
|
|
15508
|
-
|
|
15626
|
+
/**
|
|
15627
|
+
* Last received sequence number.
|
|
15628
|
+
* @type {number}
|
|
15629
|
+
* @see {@link messages.LongSequence}
|
|
15630
|
+
*/
|
|
15631
|
+
this.sequence = null;
|
|
15509
15632
|
};
|
|
15510
15633
|
messages.control.FlowMessage.prototype = new messages.control.CtrlMessage();
|
|
15511
15634
|
|
|
15512
|
-
/**
|
|
15513
|
-
* Creates an Auth message for Stomp connection Auth verification.
|
|
15514
|
-
* @constructor
|
|
15635
|
+
/**
|
|
15636
|
+
* Creates an Auth message for Stomp connection Auth verification.
|
|
15637
|
+
* @constructor
|
|
15515
15638
|
*/
|
|
15516
15639
|
messages.control.AuthenticationMessage = function () {
|
|
15517
|
-
|
|
15640
|
+
this.init(messages.MessageTypeNames.ctrl.AUTHENTICATION);
|
|
15518
15641
|
|
|
15519
|
-
|
|
15520
|
-
|
|
15521
|
-
|
|
15522
|
-
|
|
15523
|
-
|
|
15642
|
+
/**
|
|
15643
|
+
* Auth method.
|
|
15644
|
+
* @type {String}
|
|
15645
|
+
*/
|
|
15646
|
+
this.authenticationMethod = null;
|
|
15524
15647
|
|
|
15525
|
-
|
|
15526
|
-
|
|
15527
|
-
|
|
15528
|
-
|
|
15529
|
-
|
|
15648
|
+
/**
|
|
15649
|
+
* Auth WMID if using enterprise token auth method we need to have both wmid and authorization.
|
|
15650
|
+
* @type {String}
|
|
15651
|
+
*/
|
|
15652
|
+
this.wmid = null;
|
|
15530
15653
|
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15654
|
+
/**
|
|
15655
|
+
* Auth token.
|
|
15656
|
+
* @type {String}
|
|
15657
|
+
*/
|
|
15658
|
+
this.authorization = null;
|
|
15536
15659
|
|
|
15537
|
-
|
|
15538
|
-
|
|
15539
|
-
|
|
15540
|
-
|
|
15541
|
-
|
|
15660
|
+
/**
|
|
15661
|
+
* Requested conflation. Null indicates using the default conflation.
|
|
15662
|
+
* @type {number}
|
|
15663
|
+
*/
|
|
15664
|
+
this.conflation = 150;
|
|
15542
15665
|
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15666
|
+
/**
|
|
15667
|
+
*
|
|
15668
|
+
* @type {Boolean}
|
|
15669
|
+
*/
|
|
15670
|
+
this.rejectExcessiveConnection = false;
|
|
15548
15671
|
};
|
|
15549
15672
|
messages.control.AuthenticationMessage.prototype = new messages.control.CtrlMessage();
|
|
15550
15673
|
|
|
15551
|
-
/**
|
|
15552
|
-
* Creates a stats response message.
|
|
15553
|
-
* @constructor
|
|
15674
|
+
/**
|
|
15675
|
+
* Creates a stats response message.
|
|
15676
|
+
* @constructor
|
|
15554
15677
|
*/
|
|
15555
15678
|
messages.control.StatsResponse = function () {
|
|
15556
|
-
|
|
15679
|
+
this.init(messages.MessageTypeNames.ctrl.STATS_RESPONSE);
|
|
15557
15680
|
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
15567
|
-
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15576
|
-
|
|
15577
|
-
|
|
15578
|
-
|
|
15579
|
-
|
|
15580
|
-
|
|
15581
|
-
|
|
15582
|
-
|
|
15583
|
-
|
|
15584
|
-
|
|
15585
|
-
|
|
15586
|
-
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15595
|
-
|
|
15596
|
-
|
|
15597
|
-
|
|
15681
|
+
/**
|
|
15682
|
+
*
|
|
15683
|
+
* @type {number}
|
|
15684
|
+
*/
|
|
15685
|
+
this.numberOfSubscribedSymbolsL1 = null;
|
|
15686
|
+
/**
|
|
15687
|
+
*
|
|
15688
|
+
* @type {number}
|
|
15689
|
+
*/
|
|
15690
|
+
this.numberOfAvailableSymbolsL1 = null;
|
|
15691
|
+
/**
|
|
15692
|
+
*
|
|
15693
|
+
* @type {number}
|
|
15694
|
+
*/
|
|
15695
|
+
this.numberOfSubscribedSymbolsL2 = null;
|
|
15696
|
+
/**
|
|
15697
|
+
*
|
|
15698
|
+
* @type {number}
|
|
15699
|
+
*/
|
|
15700
|
+
this.numberOfAvailableSymbolsL2 = null;
|
|
15701
|
+
/**
|
|
15702
|
+
*
|
|
15703
|
+
* @type {number}
|
|
15704
|
+
*/
|
|
15705
|
+
this.numberOfOpenedConnections = null;
|
|
15706
|
+
/**
|
|
15707
|
+
*
|
|
15708
|
+
* @type {number}
|
|
15709
|
+
*/
|
|
15710
|
+
this.numberOfAvailableConnections = null;
|
|
15711
|
+
/**
|
|
15712
|
+
*
|
|
15713
|
+
* @type {number}
|
|
15714
|
+
*/
|
|
15715
|
+
this.numberOfSubscribedExchanges = null;
|
|
15716
|
+
/**
|
|
15717
|
+
*
|
|
15718
|
+
* @type {number}
|
|
15719
|
+
*/
|
|
15720
|
+
this.numberOfSubscribedTrades = null;
|
|
15598
15721
|
};
|
|
15599
15722
|
messages.control.StatsResponse.prototype = new messages.control.BaseResponse();
|
|
15600
15723
|
|
|
15601
|
-
/**
|
|
15602
|
-
* Creates a Initial Data Sent response message.
|
|
15603
|
-
* @constructor
|
|
15724
|
+
/**
|
|
15725
|
+
* Creates a Initial Data Sent response message.
|
|
15726
|
+
* @constructor
|
|
15604
15727
|
*/
|
|
15605
15728
|
messages.control.InitialDataSent = function () {
|
|
15606
|
-
|
|
15729
|
+
this.init(messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT);
|
|
15607
15730
|
|
|
15608
|
-
|
|
15609
|
-
|
|
15610
|
-
|
|
15611
|
-
|
|
15612
|
-
|
|
15613
|
-
|
|
15731
|
+
/**
|
|
15732
|
+
* The timestamp of message creation.
|
|
15733
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15734
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15735
|
+
*/
|
|
15736
|
+
this.timestamp = null;
|
|
15614
15737
|
};
|
|
15615
15738
|
messages.control.InitialDataSent.prototype = new messages.control.CtrlMessage();
|
|
15616
15739
|
|
|
15617
|
-
/**
|
|
15618
|
-
* Creates a Resubscribe message.
|
|
15619
|
-
* @constructor
|
|
15740
|
+
/**
|
|
15741
|
+
* Creates a Resubscribe message.
|
|
15742
|
+
* @constructor
|
|
15620
15743
|
*/
|
|
15621
15744
|
messages.control.ResubscribeMessage = function () {
|
|
15622
|
-
|
|
15745
|
+
this.init(messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE);
|
|
15623
15746
|
|
|
15624
|
-
|
|
15625
|
-
|
|
15626
|
-
|
|
15627
|
-
|
|
15628
|
-
|
|
15629
|
-
|
|
15747
|
+
/**
|
|
15748
|
+
* The timestamp of message creation.
|
|
15749
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15750
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15751
|
+
*/
|
|
15752
|
+
this.timestamp = null;
|
|
15630
15753
|
};
|
|
15631
15754
|
messages.control.ResubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
15632
15755
|
|
|
15633
|
-
/**
|
|
15634
|
-
* Creates a Missed Data Sent response message.
|
|
15635
|
-
* @constructor
|
|
15756
|
+
/**
|
|
15757
|
+
* Creates a Missed Data Sent response message.
|
|
15758
|
+
* @constructor
|
|
15636
15759
|
*/
|
|
15637
15760
|
messages.control.MissedDataSent = function () {
|
|
15638
|
-
|
|
15761
|
+
this.init(messages.MessageTypeNames.ctrl.MISSED_DATA_SENT);
|
|
15639
15762
|
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15645
|
-
|
|
15763
|
+
/**
|
|
15764
|
+
* The timestamp of message creation.
|
|
15765
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
15766
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
15767
|
+
*/
|
|
15768
|
+
this.timestamp = null;
|
|
15646
15769
|
};
|
|
15647
15770
|
messages.control.MissedDataSent.prototype = new messages.control.CtrlMessage();
|
|
15648
15771
|
|
|
15649
|
-
/**
|
|
15650
|
-
* Stream entitlement types.
|
|
15651
|
-
* @enum
|
|
15652
|
-
* @readonly
|
|
15772
|
+
/**
|
|
15773
|
+
* Stream entitlement types.
|
|
15774
|
+
* @enum
|
|
15775
|
+
* @readonly
|
|
15653
15776
|
*/
|
|
15654
15777
|
messages.control.StreamEntitlementType = {
|
|
15655
|
-
|
|
15656
|
-
|
|
15657
|
-
|
|
15658
|
-
|
|
15659
|
-
|
|
15660
|
-
|
|
15661
|
-
|
|
15662
|
-
|
|
15778
|
+
RT: "Realtime",
|
|
15779
|
+
RTO: "Realtime CBOE ONE",
|
|
15780
|
+
RTN: "Realtime NASDAQ",
|
|
15781
|
+
RTB: "Realtime BATS",
|
|
15782
|
+
DL: "Delayed",
|
|
15783
|
+
DLO: "Delayed CBOE One",
|
|
15784
|
+
DLN: "Delayed NASDAQ",
|
|
15785
|
+
NA: "Not Entitled"
|
|
15663
15786
|
};
|
|
15664
15787
|
|
|
15665
|
-
/**
|
|
15666
|
-
* Enumeration for subscription actions.
|
|
15667
|
-
* @enum
|
|
15668
|
-
* @readonly
|
|
15788
|
+
/**
|
|
15789
|
+
* Enumeration for subscription actions.
|
|
15790
|
+
* @enum
|
|
15791
|
+
* @readonly
|
|
15669
15792
|
*/
|
|
15670
15793
|
messages.control.Action = {
|
|
15671
|
-
|
|
15672
|
-
|
|
15794
|
+
SUBSCRIBE: "SUBSCRIBE",
|
|
15795
|
+
UNSUBSCRIBE: "UNSUBSCRIBE"
|
|
15673
15796
|
};
|
|
15674
15797
|
|
|
15675
|
-
/**
|
|
15676
|
-
* Enumeration for associations.
|
|
15677
|
-
* @enum
|
|
15678
|
-
* @readonly
|
|
15798
|
+
/**
|
|
15799
|
+
* Enumeration for associations.
|
|
15800
|
+
* @enum
|
|
15801
|
+
* @readonly
|
|
15679
15802
|
*/
|
|
15680
15803
|
messages.control.Association = {
|
|
15681
|
-
|
|
15682
|
-
|
|
15683
|
-
|
|
15804
|
+
AND: "AND",
|
|
15805
|
+
OR: "OR",
|
|
15806
|
+
NOT: "NOT"
|
|
15684
15807
|
};
|
|
15685
15808
|
|
|
15686
|
-
/**
|
|
15687
|
-
* Enumeration for streaming message types.
|
|
15688
|
-
* @enum
|
|
15689
|
-
* @readonly
|
|
15690
|
-
* @deprecated Use the messages.market.SubscriptionTypes along with messages.market.MarketDataResponseTypes
|
|
15809
|
+
/**
|
|
15810
|
+
* Enumeration for streaming message types.
|
|
15811
|
+
* @enum
|
|
15812
|
+
* @readonly
|
|
15813
|
+
* @deprecated Use the messages.market.SubscriptionTypes along with messages.market.MarketDataResponseTypes
|
|
15691
15814
|
*/
|
|
15692
15815
|
messages.control.MarketdataType = {
|
|
15693
|
-
|
|
15694
|
-
|
|
15695
|
-
|
|
15696
|
-
|
|
15697
|
-
|
|
15698
|
-
|
|
15699
|
-
|
|
15700
|
-
|
|
15701
|
-
|
|
15702
|
-
|
|
15703
|
-
|
|
15704
|
-
|
|
15705
|
-
|
|
15706
|
-
|
|
15816
|
+
QUOTE: "QUOTE",
|
|
15817
|
+
PRICEDATA: "PRICEDATA",
|
|
15818
|
+
TRADE: "TRADE",
|
|
15819
|
+
MMQUOTE: "MMQUOTE",
|
|
15820
|
+
ORDERBOOK: "ORDERBOOK",
|
|
15821
|
+
INTERVAL: "INTERVAL",
|
|
15822
|
+
NETHOUSEPOSITION: "NETHOUSEPOSITION",
|
|
15823
|
+
LASTSALE: "LASTSALE",
|
|
15824
|
+
BOOKORDER: "BOOKORDER",
|
|
15825
|
+
BOOKDELETE: "BOOKDELETE",
|
|
15826
|
+
PURGEBOOK: "PURGEBOOK",
|
|
15827
|
+
LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
|
|
15828
|
+
IVGREEKS: "IVGREEKS",
|
|
15829
|
+
IMBALANCESTATUS: "IMBALANCESTATUS"
|
|
15707
15830
|
};
|
|
15708
15831
|
|
|
15709
|
-
/**
|
|
15710
|
-
* Enum for the allowed subscription types
|
|
15711
|
-
* @enum
|
|
15712
|
-
* @readonly
|
|
15832
|
+
/**
|
|
15833
|
+
* Enum for the allowed subscription types
|
|
15834
|
+
* @enum
|
|
15835
|
+
* @readonly
|
|
15713
15836
|
*/
|
|
15714
15837
|
messages.market.SubscriptionTypes = {
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
|
|
15718
|
-
|
|
15719
|
-
|
|
15720
|
-
|
|
15721
|
-
|
|
15722
|
-
|
|
15723
|
-
|
|
15724
|
-
|
|
15725
|
-
|
|
15838
|
+
QUOTE: "QUOTE",
|
|
15839
|
+
PRICEDATA: "PRICEDATA",
|
|
15840
|
+
TRADE: "TRADE",
|
|
15841
|
+
MMQUOTE: "MMQUOTE",
|
|
15842
|
+
ORDERBOOK: "ORDERBOOK",
|
|
15843
|
+
INTERVAL: "INTERVAL",
|
|
15844
|
+
NETHOUSEPOSITION: "NETHOUSEPOSITION",
|
|
15845
|
+
LASTSALE: "LASTSALE",
|
|
15846
|
+
LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
|
|
15847
|
+
IVGREEKS: "IVGREEKS",
|
|
15848
|
+
IMBALANCESTATUS: "IMBALANCESTATUS"
|
|
15726
15849
|
|
|
15727
|
-
|
|
15728
|
-
|
|
15729
|
-
|
|
15730
|
-
|
|
15731
|
-
|
|
15850
|
+
/**
|
|
15851
|
+
* Enum for streamer responses from server
|
|
15852
|
+
* @enum
|
|
15853
|
+
* @readonly
|
|
15854
|
+
*/
|
|
15732
15855
|
};messages.market.MarketDataResponseTypes = {
|
|
15733
|
-
|
|
15734
|
-
|
|
15735
|
-
|
|
15736
|
-
|
|
15737
|
-
|
|
15738
|
-
|
|
15739
|
-
|
|
15740
|
-
|
|
15741
|
-
|
|
15742
|
-
|
|
15743
|
-
|
|
15744
|
-
|
|
15745
|
-
|
|
15746
|
-
|
|
15747
|
-
|
|
15748
|
-
|
|
15749
|
-
|
|
15750
|
-
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
|
|
15856
|
+
QUOTE: "QUOTE",
|
|
15857
|
+
PRICEDATA: "PRICEDATA",
|
|
15858
|
+
TRADE: "TRADE",
|
|
15859
|
+
INTERVAL: "INTERVAL",
|
|
15860
|
+
NETHOUSEPOSITION: "NETHOUSEPOSITION",
|
|
15861
|
+
MMQUOTE: "MMQUOTE",
|
|
15862
|
+
BOOKORDER: "BOOKORDER",
|
|
15863
|
+
PURGEBOOK: "PURGEBOOK",
|
|
15864
|
+
BOOKDELETE: "BOOKDELETE",
|
|
15865
|
+
SYMBOLINFO: "SYMBOLINFO",
|
|
15866
|
+
SYMBOLSTATUS: "SYMBOLSTATUS",
|
|
15867
|
+
DERIVATIVEINFO: "DERIVATIVEINFO",
|
|
15868
|
+
LASTSALE: "LASTSALE",
|
|
15869
|
+
LIMITUPLIMITDOWN: "LIMITUPLIMITDOWN",
|
|
15870
|
+
IVGREEKS: "IVGREEKS",
|
|
15871
|
+
IMBALANCESTATUS: "IMBALANCESTATUS",
|
|
15872
|
+
ALERT: "ALERT",
|
|
15873
|
+
NEWS: "NEWS",
|
|
15874
|
+
TRADENOTIFICATION: "TRADENOTIFICATION",
|
|
15875
|
+
NEWSCMDFILTER: "NEWSCMDFILTER",
|
|
15876
|
+
NEWSERROR: "NEWSERROR",
|
|
15877
|
+
DIVIDEND: "DIVIDEND"
|
|
15755
15878
|
|
|
15756
|
-
|
|
15757
|
-
|
|
15758
|
-
|
|
15759
|
-
|
|
15760
|
-
|
|
15879
|
+
/**
|
|
15880
|
+
* Response codes and reasons.
|
|
15881
|
+
* @enum
|
|
15882
|
+
* @readonly
|
|
15883
|
+
*/
|
|
15761
15884
|
};messages.control.ResponseCodes = {
|
|
15762
|
-
|
|
15763
|
-
|
|
15885
|
+
OK_CODE: 200,
|
|
15886
|
+
OK_REASON: "OK",
|
|
15764
15887
|
|
|
15765
|
-
|
|
15766
|
-
|
|
15888
|
+
BADREQUEST_CODE: 400,
|
|
15889
|
+
BADREQUEST_REASON: "Bad Request",
|
|
15767
15890
|
|
|
15768
|
-
|
|
15769
|
-
|
|
15891
|
+
UNAUTHORIZED_CODE: 401,
|
|
15892
|
+
UNAUTHORIZED_REASON: "Unauthorized",
|
|
15770
15893
|
|
|
15771
|
-
|
|
15772
|
-
|
|
15894
|
+
TOOSLOW_CODE: 450,
|
|
15895
|
+
TOOSLOW_REASON: "Too slow",
|
|
15773
15896
|
|
|
15774
|
-
|
|
15775
|
-
|
|
15897
|
+
DATA_SOURCE_RESET: 454,
|
|
15898
|
+
DATA_SOURCE_RESET_REASON: "Data Source Was Reset",
|
|
15776
15899
|
|
|
15777
|
-
|
|
15778
|
-
|
|
15900
|
+
CONNECTION_LIMIT_EXCEEDED_CODE: 452,
|
|
15901
|
+
CONNECTION_LIMIT_EXCEEDED_REASON: "Connection Limit Exceeded",
|
|
15779
15902
|
|
|
15780
|
-
|
|
15781
|
-
|
|
15903
|
+
INTERNALSERVERERROR_CODE: 500,
|
|
15904
|
+
INTERNALSERVERERROR_REASON: "Internal Server Error"
|
|
15782
15905
|
};
|
|
15783
15906
|
|
|
15784
15907
|
/* ****************************************************************************************************************** */
|
|
15785
15908
|
|
|
15786
|
-
/**
|
|
15787
|
-
* Base type for all market data exports.
|
|
15788
|
-
* @constructor
|
|
15789
|
-
* @abstract
|
|
15909
|
+
/**
|
|
15910
|
+
* Base type for all market data exports.
|
|
15911
|
+
* @constructor
|
|
15912
|
+
* @abstract
|
|
15790
15913
|
*/
|
|
15791
15914
|
messages.market.DataMessage = function () {
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15915
|
+
/**
|
|
15916
|
+
* The message type.
|
|
15917
|
+
* @type {number}
|
|
15918
|
+
* @see messages.MessageTypeNames_0.data
|
|
15919
|
+
*/
|
|
15920
|
+
this.messageType = null;
|
|
15798
15921
|
};
|
|
15799
15922
|
messages.market.DataMessage.prototype = new messages.Message();
|
|
15800
15923
|
|
|
15801
|
-
/**
|
|
15802
|
-
*
|
|
15803
|
-
* @constructor
|
|
15924
|
+
/**
|
|
15925
|
+
*
|
|
15926
|
+
* @constructor
|
|
15804
15927
|
*/
|
|
15805
15928
|
messages.market.Quote = function () {
|
|
15806
|
-
|
|
15929
|
+
this.init(messages.MessageTypeNames.data.QUOTE);
|
|
15807
15930
|
|
|
15808
|
-
|
|
15931
|
+
// TODO properties
|
|
15809
15932
|
};
|
|
15810
15933
|
messages.market.Quote.prototype = new messages.market.DataMessage();
|
|
15811
15934
|
|
|
15812
|
-
/**
|
|
15813
|
-
*
|
|
15814
|
-
* @constructor
|
|
15935
|
+
/**
|
|
15936
|
+
*
|
|
15937
|
+
* @constructor
|
|
15815
15938
|
*/
|
|
15816
15939
|
messages.market.PriceData = function () {
|
|
15817
|
-
|
|
15940
|
+
this.init(messages.MessageTypeNames.data.PRICEDATA);
|
|
15818
15941
|
|
|
15819
|
-
|
|
15942
|
+
// TODO properties
|
|
15820
15943
|
};
|
|
15821
15944
|
messages.market.PriceData.prototype = new messages.market.DataMessage();
|
|
15822
15945
|
|
|
15823
|
-
/**
|
|
15824
|
-
*
|
|
15825
|
-
* @constructor
|
|
15946
|
+
/**
|
|
15947
|
+
*
|
|
15948
|
+
* @constructor
|
|
15826
15949
|
*/
|
|
15827
15950
|
messages.market.Trade = function () {
|
|
15828
|
-
|
|
15951
|
+
this.init(messages.MessageTypeNames.data.TRADE);
|
|
15829
15952
|
|
|
15830
|
-
|
|
15953
|
+
// TODO properties
|
|
15831
15954
|
};
|
|
15832
15955
|
messages.market.Trade.prototype = new messages.market.DataMessage();
|
|
15833
15956
|
|
|
15834
|
-
/**
|
|
15835
|
-
*
|
|
15836
|
-
* @constructor
|
|
15957
|
+
/**
|
|
15958
|
+
*
|
|
15959
|
+
* @constructor
|
|
15837
15960
|
*/
|
|
15838
15961
|
messages.market.MMQuote = function () {
|
|
15839
|
-
|
|
15962
|
+
this.init(messages.MessageTypeNames.data.MMQUOTE);
|
|
15840
15963
|
|
|
15841
|
-
|
|
15964
|
+
// TODO properties
|
|
15842
15965
|
};
|
|
15843
15966
|
messages.market.MMQuote.prototype = new messages.market.DataMessage();
|
|
15844
15967
|
|
|
15845
|
-
/**
|
|
15846
|
-
*
|
|
15847
|
-
* @constructor
|
|
15968
|
+
/**
|
|
15969
|
+
*
|
|
15970
|
+
* @constructor
|
|
15848
15971
|
*/
|
|
15849
15972
|
messages.market.PurgeBook = function () {
|
|
15850
|
-
|
|
15973
|
+
this.init(messages.MessageTypeNames.data.PURGEBOOK);
|
|
15851
15974
|
|
|
15852
|
-
|
|
15975
|
+
// TODO properties
|
|
15853
15976
|
};
|
|
15854
15977
|
messages.market.PurgeBook.prototype = new messages.market.DataMessage();
|
|
15855
15978
|
|
|
15856
|
-
/**
|
|
15857
|
-
*
|
|
15858
|
-
* @constructor
|
|
15979
|
+
/**
|
|
15980
|
+
*
|
|
15981
|
+
* @constructor
|
|
15859
15982
|
*/
|
|
15860
15983
|
messages.market.BookOrder = function () {
|
|
15861
|
-
|
|
15984
|
+
this.init(messages.MessageTypeNames.data.BOOKORDER);
|
|
15862
15985
|
|
|
15863
|
-
|
|
15986
|
+
// TODO properties
|
|
15864
15987
|
};
|
|
15865
15988
|
messages.market.BookOrder.prototype = new messages.market.DataMessage();
|
|
15866
15989
|
|
|
15867
|
-
/**
|
|
15868
|
-
*
|
|
15869
|
-
* @constructor
|
|
15990
|
+
/**
|
|
15991
|
+
*
|
|
15992
|
+
* @constructor
|
|
15870
15993
|
*/
|
|
15871
15994
|
messages.market.BookDelete = function () {
|
|
15872
|
-
|
|
15995
|
+
this.init(messages.MessageTypeNames.data.BOOKDELETE);
|
|
15873
15996
|
|
|
15874
|
-
|
|
15997
|
+
// TODO properties
|
|
15875
15998
|
};
|
|
15876
15999
|
messages.market.BookDelete.prototype = new messages.market.DataMessage();
|
|
15877
16000
|
|
|
15878
|
-
/**
|
|
15879
|
-
*
|
|
15880
|
-
* @constructor
|
|
16001
|
+
/**
|
|
16002
|
+
*
|
|
16003
|
+
* @constructor
|
|
15881
16004
|
*/
|
|
15882
16005
|
messages.market.Interval = function () {
|
|
15883
|
-
|
|
16006
|
+
this.init(messages.MessageTypeNames.data.INTERVAL);
|
|
15884
16007
|
|
|
15885
|
-
|
|
16008
|
+
// TODO properties
|
|
15886
16009
|
};
|
|
15887
16010
|
messages.market.Interval.prototype = new messages.market.DataMessage();
|
|
15888
16011
|
|
|
15889
|
-
/**
|
|
15890
|
-
*
|
|
15891
|
-
* @constructor
|
|
16012
|
+
/**
|
|
16013
|
+
*
|
|
16014
|
+
* @constructor
|
|
15892
16015
|
*/
|
|
15893
16016
|
messages.market.NethousePosition = function () {
|
|
15894
|
-
|
|
16017
|
+
this.init(messages.MessageTypeNames.data.NETHOUSEPOSITION);
|
|
15895
16018
|
|
|
15896
|
-
|
|
16019
|
+
// TODO properties
|
|
15897
16020
|
};
|
|
15898
16021
|
messages.market.NethousePosition.prototype = new messages.market.DataMessage();
|
|
15899
16022
|
|
|
15900
|
-
/**
|
|
15901
|
-
*
|
|
15902
|
-
* @constructor
|
|
16023
|
+
/**
|
|
16024
|
+
*
|
|
16025
|
+
* @constructor
|
|
15903
16026
|
*/
|
|
15904
16027
|
messages.market.SymbolInfo = function () {
|
|
15905
|
-
|
|
16028
|
+
this.init(messages.MessageTypeNames.data.SYMBOLINFO);
|
|
15906
16029
|
|
|
15907
|
-
|
|
16030
|
+
// TODO properties
|
|
15908
16031
|
};
|
|
15909
16032
|
messages.market.SymbolInfo.prototype = new messages.market.DataMessage();
|
|
15910
16033
|
|
|
15911
|
-
/**
|
|
15912
|
-
*
|
|
15913
|
-
* @constructor
|
|
16034
|
+
/**
|
|
16035
|
+
*
|
|
16036
|
+
* @constructor
|
|
15914
16037
|
*/
|
|
15915
16038
|
messages.market.SymbolStatus = function () {
|
|
15916
|
-
|
|
16039
|
+
this.init(messages.MessageTypeNames.data.SYMBOLSTATUS);
|
|
15917
16040
|
|
|
15918
|
-
|
|
16041
|
+
// TODO properties
|
|
15919
16042
|
};
|
|
15920
16043
|
messages.market.SymbolStatus.prototype = new messages.market.DataMessage();
|
|
15921
16044
|
|
|
15922
|
-
/**
|
|
15923
|
-
*
|
|
15924
|
-
* @constructor
|
|
16045
|
+
/**
|
|
16046
|
+
*
|
|
16047
|
+
* @constructor
|
|
15925
16048
|
*/
|
|
15926
16049
|
messages.market.DerivativeInfo = function () {
|
|
15927
|
-
|
|
16050
|
+
this.init(messages.MessageTypeNames.data.DERIVATIVEINFO);
|
|
15928
16051
|
|
|
15929
|
-
|
|
16052
|
+
// TODO properties
|
|
15930
16053
|
};
|
|
15931
16054
|
messages.market.DerivativeInfo.prototype = new messages.market.DataMessage();
|
|
15932
16055
|
|
|
15933
|
-
/**
|
|
15934
|
-
*
|
|
15935
|
-
* @constructor
|
|
16056
|
+
/**
|
|
16057
|
+
*
|
|
16058
|
+
* @constructor
|
|
15936
16059
|
*/
|
|
15937
16060
|
messages.market.IVGreeks = function () {
|
|
15938
|
-
|
|
16061
|
+
this.init(messages.MessageTypeNames.data.IVGREEKS);
|
|
15939
16062
|
|
|
15940
|
-
|
|
16063
|
+
// TODO properties
|
|
15941
16064
|
};
|
|
15942
16065
|
messages.market.IVGreeks.prototype = new messages.market.DataMessage();
|
|
15943
16066
|
|
|
15944
|
-
/**
|
|
15945
|
-
*
|
|
15946
|
-
* @constructor
|
|
16067
|
+
/**
|
|
16068
|
+
*
|
|
16069
|
+
* @constructor
|
|
15947
16070
|
*/
|
|
15948
16071
|
messages.market.LastSale = function () {
|
|
15949
|
-
|
|
16072
|
+
this.init(messages.MessageTypeNames.data.LASTSALE);
|
|
15950
16073
|
|
|
15951
|
-
|
|
16074
|
+
// TODO properties
|
|
15952
16075
|
};
|
|
15953
16076
|
messages.market.LastSale.prototype = new messages.market.DataMessage();
|
|
15954
16077
|
|
|
15955
|
-
/**
|
|
15956
|
-
*
|
|
15957
|
-
* @constructor
|
|
16078
|
+
/**
|
|
16079
|
+
*
|
|
16080
|
+
* @constructor
|
|
15958
16081
|
*/
|
|
15959
16082
|
messages.market.LimitUpLimitDown = function () {
|
|
15960
|
-
|
|
16083
|
+
this.init(messages.MessageTypeNames.data.LIMITUPLIMITDOWN);
|
|
15961
16084
|
|
|
15962
|
-
|
|
16085
|
+
// TODO properties
|
|
15963
16086
|
};
|
|
15964
16087
|
messages.market.LimitUpLimitDown.prototype = new messages.market.DataMessage();
|
|
15965
16088
|
|
|
15966
|
-
/**
|
|
15967
|
-
*
|
|
15968
|
-
* @constructor
|
|
16089
|
+
/**
|
|
16090
|
+
*
|
|
16091
|
+
* @constructor
|
|
15969
16092
|
*/
|
|
15970
16093
|
messages.market.ImbalanceStatus = function () {
|
|
15971
|
-
|
|
16094
|
+
this.init(messages.MessageTypeNames.data.IMBALANCESTATUS);
|
|
15972
16095
|
|
|
15973
|
-
|
|
16096
|
+
// TODO properties
|
|
15974
16097
|
};
|
|
15975
16098
|
messages.market.ImbalanceStatus.prototype = new messages.market.DataMessage();
|
|
15976
16099
|
|
|
15977
16100
|
messages.market.Alert = function () {
|
|
15978
|
-
|
|
16101
|
+
this.init(messages.MessageTypeNames.data.ALERT);
|
|
15979
16102
|
|
|
15980
|
-
|
|
16103
|
+
// TODO properties
|
|
15981
16104
|
};
|
|
15982
16105
|
messages.market.Alert.prototype = new messages.market.DataMessage();
|
|
15983
16106
|
|
|
15984
|
-
/**
|
|
15985
|
-
* Enumeration for instrument types.
|
|
15986
|
-
* @enum
|
|
15987
|
-
* @readonly
|
|
16107
|
+
/**
|
|
16108
|
+
* Enumeration for instrument types.
|
|
16109
|
+
* @enum
|
|
16110
|
+
* @readonly
|
|
15988
16111
|
*/
|
|
15989
16112
|
messages.market.InstrumentType = {
|
|
15990
|
-
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
|
|
15996
|
-
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16113
|
+
1: "CASH",
|
|
16114
|
+
2: "BOND",
|
|
16115
|
+
3: "COMPOSITE",
|
|
16116
|
+
4: "FUTURE",
|
|
16117
|
+
5: "FUTURE_OPTION",
|
|
16118
|
+
6: "FOREX",
|
|
16119
|
+
7: "INDEX",
|
|
16120
|
+
8: "MUTUAL_FUND",
|
|
16121
|
+
9: "MONEY_MARKET_FUND",
|
|
16122
|
+
10: "MARKET_STAT",
|
|
16123
|
+
11: "EQUITY",
|
|
16124
|
+
12: "EQUITY_OPTION",
|
|
16125
|
+
13: "GOVT_BOND",
|
|
16126
|
+
14: "MUNI_BOND",
|
|
16127
|
+
15: "CORP_BOND",
|
|
16128
|
+
16: "ETF",
|
|
16129
|
+
17: "FUTURE_SPREAD",
|
|
16130
|
+
97: "OPTION_ROOT",
|
|
16131
|
+
98: "UNKNOWN",
|
|
16132
|
+
99: "RATE"
|
|
16010
16133
|
};
|
|
16011
16134
|
|
|
16012
|
-
/**
|
|
16013
|
-
* Enumeration vor order side.
|
|
16014
|
-
* @enum
|
|
16015
|
-
* @readonly
|
|
16135
|
+
/**
|
|
16136
|
+
* Enumeration vor order side.
|
|
16137
|
+
* @enum
|
|
16138
|
+
* @readonly
|
|
16016
16139
|
*/
|
|
16017
16140
|
messages.market.OrderSide = {
|
|
16018
|
-
|
|
16019
|
-
|
|
16141
|
+
BUYSIDE: 'B',
|
|
16142
|
+
SELLSIDE: 'S'
|
|
16020
16143
|
};
|
|
16021
16144
|
|
|
16022
|
-
/**
|
|
16023
|
-
* Enumeration for imbalance types.
|
|
16024
|
-
* @enum
|
|
16025
|
-
* @readonly
|
|
16145
|
+
/**
|
|
16146
|
+
* Enumeration for imbalance types.
|
|
16147
|
+
* @enum
|
|
16148
|
+
* @readonly
|
|
16026
16149
|
*/
|
|
16027
16150
|
messages.market.ImbalanceType = {
|
|
16028
|
-
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
|
|
16151
|
+
0: "NONE",
|
|
16152
|
+
1: "MARKET",
|
|
16153
|
+
2: "MOC",
|
|
16154
|
+
3: "REGULATORY_IMBALANCE",
|
|
16155
|
+
4: "OPENING_IMBALANCE",
|
|
16156
|
+
5: "CLOSING_IMBALANCE",
|
|
16157
|
+
6: "IPO_IMBALANCE",
|
|
16158
|
+
7: "HALT_IMBALANCE",
|
|
16159
|
+
8: "EQUILIBRIUM"
|
|
16037
16160
|
};
|
|
16038
16161
|
|
|
16039
|
-
/**
|
|
16040
|
-
* Enumeration for book order change types.
|
|
16041
|
-
* @enum
|
|
16042
|
-
* @readonly
|
|
16162
|
+
/**
|
|
16163
|
+
* Enumeration for book order change types.
|
|
16164
|
+
* @enum
|
|
16165
|
+
* @readonly
|
|
16043
16166
|
*/
|
|
16044
16167
|
messages.market.OrderChangeType = {
|
|
16045
|
-
|
|
16046
|
-
|
|
16047
|
-
|
|
16048
|
-
|
|
16168
|
+
'A': "ADD",
|
|
16169
|
+
'M': "MODIFY",
|
|
16170
|
+
'C': "CANCEL",
|
|
16171
|
+
'E': "EXECUTE"
|
|
16049
16172
|
};
|
|
16050
16173
|
}).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")
|
|
16051
16174
|
},{"_process":131,"buffer":121,"timers":152}],109:[function(require,module,exports){
|
|
@@ -16254,6 +16377,10 @@ var JsonStompTransmitter = function () {
|
|
|
16254
16377
|
this.socket.send(JSON.stringify(msg));
|
|
16255
16378
|
};
|
|
16256
16379
|
|
|
16380
|
+
JsonStompTransmitter.prototype.sendCustomFrame = function sendCustomFrame(dest, frame, headers, msg) {
|
|
16381
|
+
this.socket.sendCustomFrame(dest.toString(), frame.toString(), JSON.parse(headers), JSON.stringify(msg));
|
|
16382
|
+
};
|
|
16383
|
+
|
|
16257
16384
|
JsonStompTransmitter.prototype.onMessage = function onMessage(msg) {
|
|
16258
16385
|
var _jsonblock = null;
|
|
16259
16386
|
try {
|
|
@@ -16374,8 +16501,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
16374
16501
|
|
|
16375
16502
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16376
16503
|
|
|
16377
|
-
/*
|
|
16378
|
-
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
16504
|
+
/*
|
|
16505
|
+
Note: QITCH is currently in a Beta phase and can potentially cause performance degradation
|
|
16379
16506
|
*/
|
|
16380
16507
|
var QitchTransmitter = function () {
|
|
16381
16508
|
function QitchTransmitter(socket, encoder, log) {
|