@quotemedia.com/streamer 2.25.0 → 2.31.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 +2 -2
- package/{enduser-example.html → examples/enduser-example.html} +2 -1
- package/{enterprise-token-example.html → examples/enterprise-token-example.html} +2 -1
- package/examples/reconnect-example.html +279 -0
- package/{subscription-example.html → examples/subscription-example.html} +2 -1
- package/examples/user-access-token-example.html +177 -0
- package/{wmid-example.html → examples/wmid-example.html} +2 -1
- package/package.json +3 -2
- package/{qmci-streamer-2.25.0.js → qmci-streamer-2.31.0.js} +2763 -215
- package/qmci-streamer-2.31.0.min.js +115 -0
- package/qmci-streamer-2.25.0.min.js +0 -102
|
@@ -22,12 +22,21 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
22
22
|
|
|
23
23
|
var Connection = function () {
|
|
24
24
|
function Connection(createTransmitter, openSocket, log) {
|
|
25
|
+
var maxReconnectAttempts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 3;
|
|
26
|
+
|
|
25
27
|
_classCallCheck(this, Connection);
|
|
26
28
|
|
|
27
29
|
this.openSocket = openSocket;
|
|
28
30
|
this.createTransmitter = createTransmitter;
|
|
29
31
|
this.log = (0, _logging.asLogger)(log);
|
|
30
32
|
this.events = new _EventSupport2["default"](this);
|
|
33
|
+
this.currentConn = '';
|
|
34
|
+
//Max number of times that the client will try to reopen per loop
|
|
35
|
+
this.maxReconnectAttempts = maxReconnectAttempts;
|
|
36
|
+
//Max number of times client will be able to try to reopen in total. Once this is reached, client will close and no reconnect will be attempted.
|
|
37
|
+
//probably means that an unhandled loop was reached
|
|
38
|
+
this.maxReconnectsTotal = 3;
|
|
39
|
+
this.isFirstConnection = true;
|
|
31
40
|
}
|
|
32
41
|
|
|
33
42
|
Connection.prototype.open = function open() {
|
|
@@ -39,17 +48,32 @@ var Connection = function () {
|
|
|
39
48
|
}
|
|
40
49
|
};
|
|
41
50
|
|
|
42
|
-
|
|
43
|
-
this.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
//Check to avoid creating unnecessary events and objects
|
|
52
|
+
if (this.isFirstConnection) {
|
|
53
|
+
this.on("reopen", function (e) {
|
|
54
|
+
if (_this.isConnectionUp) {
|
|
55
|
+
var prevConn = _this.currentConn;
|
|
56
|
+
_this.currentConn = e.connectionId;
|
|
57
|
+
_this.events.fire("reconnect", events.event("Reconnection success", {
|
|
58
|
+
previousConnectionId: prevConn,
|
|
59
|
+
currentConnectionId: _this.currentConn
|
|
60
|
+
}));
|
|
61
|
+
} else {
|
|
62
|
+
_this.events.fire("error", e);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
this.transmitter = this.createTransmitter(socketProxy);
|
|
66
|
+
this.transmitter.on("sequence", function (seq) {
|
|
67
|
+
_this.events.fire("sequence", seq);
|
|
68
|
+
}).on("message", function (message) {
|
|
69
|
+
_this.events.fire("message", message);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
49
72
|
this.socket = this.openSocket(function (request) {
|
|
50
73
|
_this.request = request;
|
|
51
74
|
var url = request.url;
|
|
52
75
|
|
|
76
|
+
_this.reconnect = false;
|
|
53
77
|
return {
|
|
54
78
|
onMessage: function onMessage(response) {
|
|
55
79
|
_this.transmitter.onMessage(response.responseBody);
|
|
@@ -58,22 +82,25 @@ var Connection = function () {
|
|
|
58
82
|
_this.transmitter.onMessage(response.responseBody);
|
|
59
83
|
},
|
|
60
84
|
onOpen: function onOpen(response) {
|
|
85
|
+
var code = response.status;
|
|
86
|
+
if (code !== 200) {
|
|
87
|
+
_this.reconnect = false;
|
|
88
|
+
} else {
|
|
89
|
+
_this.isConnectionUp = true;
|
|
90
|
+
}
|
|
61
91
|
var e = events.event("open", {
|
|
62
92
|
url: url,
|
|
63
|
-
code:
|
|
64
|
-
transport: response.transport
|
|
93
|
+
code: code,
|
|
94
|
+
transport: response.transport,
|
|
95
|
+
connectionId: response.request.uuid
|
|
65
96
|
});
|
|
66
97
|
_this.log.info(e);
|
|
67
98
|
_this.events.fire("open", e);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
transport: response.transport
|
|
74
|
-
});
|
|
75
|
-
response.maxReconnectOnClose--;
|
|
76
|
-
_this.log.info(e);
|
|
99
|
+
if (!_this.isFirstConnection) {
|
|
100
|
+
_this.maxReconnectsTotal--;
|
|
101
|
+
_this.events.fire("reopen", e);
|
|
102
|
+
}
|
|
103
|
+
_this.currentConn = response.request.uuid;
|
|
77
104
|
},
|
|
78
105
|
onTransportFailure: function onTransportFailure(reason, request) {
|
|
79
106
|
var e = events.error("Transport failure", {
|
|
@@ -84,6 +111,9 @@ var Connection = function () {
|
|
|
84
111
|
});
|
|
85
112
|
_this.log.error(reason);
|
|
86
113
|
_this.events.fire("error", e);
|
|
114
|
+
if (_this.isReconnect()) {
|
|
115
|
+
_this.reconnect = true;
|
|
116
|
+
}
|
|
87
117
|
},
|
|
88
118
|
onError: function onError(response) {
|
|
89
119
|
var reason = response.reason || response.reasonPhrase;
|
|
@@ -111,6 +141,11 @@ var Connection = function () {
|
|
|
111
141
|
code = 200;
|
|
112
142
|
reason = "Unsubscribed";
|
|
113
143
|
}
|
|
144
|
+
//When 501 code is sent it could mean that the server is down, therefore do not continue trying to reconnect
|
|
145
|
+
if (code === 501 || code === 401 || code === 403 || code === 452) {
|
|
146
|
+
_this.log.info("Unable to reconnect with code: " + msg.code + ", reason: " + msg.reason);
|
|
147
|
+
_this.reconnect = false;
|
|
148
|
+
}
|
|
114
149
|
|
|
115
150
|
var e = events.close({
|
|
116
151
|
url: url,
|
|
@@ -118,6 +153,9 @@ var Connection = function () {
|
|
|
118
153
|
code: code,
|
|
119
154
|
reason: reason
|
|
120
155
|
});
|
|
156
|
+
_this.isConnectionUp = false;
|
|
157
|
+
//Need to reset this value since it seems to be causing issues with resubscribing
|
|
158
|
+
response.request.uuid = 0;
|
|
121
159
|
_this.log.info(e);
|
|
122
160
|
_this.events.fire("close", e);
|
|
123
161
|
},
|
|
@@ -130,7 +168,7 @@ var Connection = function () {
|
|
|
130
168
|
_this.events.fire("slow", e);
|
|
131
169
|
}
|
|
132
170
|
};
|
|
133
|
-
});
|
|
171
|
+
}, this.currentConn);
|
|
134
172
|
};
|
|
135
173
|
|
|
136
174
|
Connection.prototype.close = function close() {
|
|
@@ -138,6 +176,9 @@ var Connection = function () {
|
|
|
138
176
|
try {
|
|
139
177
|
this.socket.close();
|
|
140
178
|
this.socket = null;
|
|
179
|
+
if (this.reconnect) {
|
|
180
|
+
this.tryReopen();
|
|
181
|
+
}
|
|
141
182
|
} catch (err) {
|
|
142
183
|
this.events.fire("error", events.error("Error closing", {
|
|
143
184
|
reason: err.message,
|
|
@@ -148,6 +189,43 @@ var Connection = function () {
|
|
|
148
189
|
}
|
|
149
190
|
};
|
|
150
191
|
|
|
192
|
+
Connection.prototype.tryReopen = function tryReopen() {
|
|
193
|
+
var _this2 = this;
|
|
194
|
+
|
|
195
|
+
if (this.isConnectionUp || this.maxReconnectsTotal <= 0) {
|
|
196
|
+
this.log.error("Connection is already open or max reconnects was reached, won't try to reconnect");
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
this.isFirstConnection = false;
|
|
200
|
+
var currentAttempts = this.maxReconnectAttempts;
|
|
201
|
+
var reopenInterval = setInterval(function () {
|
|
202
|
+
if (currentAttempts <= 0) {
|
|
203
|
+
_this2.reconnect = false;
|
|
204
|
+
_this2.log.error("Error while reconnecting. No attempts left.");
|
|
205
|
+
//if maxattempts was reached and no connection was open, exit.
|
|
206
|
+
_this2.maxReconnectAttempts = 0;
|
|
207
|
+
clearInterval(reopenInterval);
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
if (_this2.isConnectionUp || !_this2.reconnect) {
|
|
211
|
+
clearInterval(reopenInterval);
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
_this2.log.info("Attempting reconnect. Attempts left: " + currentAttempts);
|
|
215
|
+
_this2.reopen(currentAttempts);
|
|
216
|
+
currentAttempts--;
|
|
217
|
+
}, 500);
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
Connection.prototype.reopen = function reopen(attempt) {
|
|
221
|
+
try {
|
|
222
|
+
this.open();
|
|
223
|
+
} catch (exception) {
|
|
224
|
+
this.log.warn("There was an error while reopening attempt #" + attempt);
|
|
225
|
+
this.events.fire("error", exception);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
|
|
151
229
|
Connection.prototype.send = function send(message) {
|
|
152
230
|
try {
|
|
153
231
|
this.transmitter.send(message);
|
|
@@ -160,6 +238,14 @@ var Connection = function () {
|
|
|
160
238
|
}
|
|
161
239
|
};
|
|
162
240
|
|
|
241
|
+
Connection.prototype.isReconnect = function isReconnect() {
|
|
242
|
+
return this.request.headers['x-Stream-isReconnect'];
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
Connection.prototype.setReconnect = function setReconnect(doReconnect) {
|
|
246
|
+
this.reconnect = doReconnect;
|
|
247
|
+
};
|
|
248
|
+
|
|
163
249
|
Connection.prototype.setServer = function setServer(server) {
|
|
164
250
|
this.request.headers['X-Stream-Instance'] = server;
|
|
165
251
|
};
|
|
@@ -168,6 +254,10 @@ var Connection = function () {
|
|
|
168
254
|
return this.socket == null;
|
|
169
255
|
};
|
|
170
256
|
|
|
257
|
+
Connection.prototype.getConnectionUp = function getConnectionUp() {
|
|
258
|
+
return this.isConnectionUp;
|
|
259
|
+
};
|
|
260
|
+
|
|
171
261
|
Connection.prototype.on = function on(event, callback) {
|
|
172
262
|
return this.events.on(event, callback);
|
|
173
263
|
};
|
|
@@ -177,7 +267,7 @@ var Connection = function () {
|
|
|
177
267
|
|
|
178
268
|
exports["default"] = Connection;
|
|
179
269
|
}).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/Connection.js","/lib")
|
|
180
|
-
},{"./EventSupport.js":2,"./logging.js":16,"./streamer-events.js":
|
|
270
|
+
},{"./EventSupport.js":2,"./logging.js":16,"./streamer-events.js":97,"_process":119,"buffer":109,"timers":140}],2:[function(require,module,exports){
|
|
181
271
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
182
272
|
"use strict";
|
|
183
273
|
|
|
@@ -226,7 +316,7 @@ var EventSupport = function () {
|
|
|
226
316
|
|
|
227
317
|
exports["default"] = EventSupport;
|
|
228
318
|
}).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/EventSupport.js","/lib")
|
|
229
|
-
},{"_process":
|
|
319
|
+
},{"_process":119,"buffer":109,"timers":140}],3:[function(require,module,exports){
|
|
230
320
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
231
321
|
"use strict";
|
|
232
322
|
|
|
@@ -275,7 +365,7 @@ var FlowControl = function () {
|
|
|
275
365
|
|
|
276
366
|
exports["default"] = FlowControl;
|
|
277
367
|
}).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/FlowControl.js","/lib")
|
|
278
|
-
},{"./LongSequence.js":4,"./streamer-api.js":
|
|
368
|
+
},{"./LongSequence.js":4,"./streamer-api.js":96,"_process":119,"buffer":109,"timers":140}],4:[function(require,module,exports){
|
|
279
369
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
280
370
|
"use strict";
|
|
281
371
|
|
|
@@ -308,7 +398,7 @@ LongSequence.MAX_VALUE = Number.MAX_SAFE_INTEGER;
|
|
|
308
398
|
|
|
309
399
|
exports["default"] = LongSequence;
|
|
310
400
|
}).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/LongSequence.js","/lib")
|
|
311
|
-
},{"_process":
|
|
401
|
+
},{"_process":119,"buffer":109,"timers":140}],5:[function(require,module,exports){
|
|
312
402
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
313
403
|
"use strict";
|
|
314
404
|
|
|
@@ -374,7 +464,7 @@ var SMessage = function SMessage() {
|
|
|
374
464
|
|
|
375
465
|
exports["default"] = SMessage;
|
|
376
466
|
}).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/SMessage.js","/lib")
|
|
377
|
-
},{"./serialization/v1/codec.js":91,"_process":
|
|
467
|
+
},{"./serialization/v1/codec.js":91,"_process":119,"buffer":109,"timers":140}],6:[function(require,module,exports){
|
|
378
468
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
379
469
|
"use strict";
|
|
380
470
|
|
|
@@ -444,6 +534,8 @@ var Stream = function () {
|
|
|
444
534
|
_this.pendingConnection(err);
|
|
445
535
|
}
|
|
446
536
|
_this.events.fire("error", err);
|
|
537
|
+
}).on("reconnect", function (msg) {
|
|
538
|
+
_this.reconnectSuccess(msg);
|
|
447
539
|
});
|
|
448
540
|
|
|
449
541
|
this.requestid = new _UShortId2["default"]();
|
|
@@ -456,6 +548,7 @@ var Stream = function () {
|
|
|
456
548
|
this.pendingNewsUnsubscriptions = {};
|
|
457
549
|
this.pendingAlertSubscription = {};
|
|
458
550
|
this.pendingTradeSubscription = {};
|
|
551
|
+
this.pendingTradeUnsubscription = {};
|
|
459
552
|
|
|
460
553
|
this.on("error", function (err) {
|
|
461
554
|
_this.log.warn(err);
|
|
@@ -473,6 +566,11 @@ var Stream = function () {
|
|
|
473
566
|
}
|
|
474
567
|
};
|
|
475
568
|
|
|
569
|
+
Stream.prototype.reconnectSuccess = function reconnectSuccess(msg) {
|
|
570
|
+
this.events.fire("reconnectSuccess", msg);
|
|
571
|
+
this.log.info("Successfull reconnection. Previous Id: " + msg.previousConnectionId + " Current Id = " + msg.currentConnectionId);
|
|
572
|
+
};
|
|
573
|
+
|
|
476
574
|
Stream.prototype.on = function on(event, listener) {
|
|
477
575
|
return this.events.on(event, listener);
|
|
478
576
|
};
|
|
@@ -653,7 +751,7 @@ var Stream = function () {
|
|
|
653
751
|
this.send(request);
|
|
654
752
|
};
|
|
655
753
|
|
|
656
|
-
Stream.prototype.subscribeTrade = function subscribeTrade(
|
|
754
|
+
Stream.prototype.subscribeTrade = function subscribeTrade(notificationType, optsOrCallback, callbackOrNothing) {
|
|
657
755
|
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
658
756
|
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
659
757
|
|
|
@@ -671,11 +769,11 @@ var Stream = function () {
|
|
|
671
769
|
mimetype: this.format,
|
|
672
770
|
callback: callback,
|
|
673
771
|
result: {
|
|
674
|
-
|
|
772
|
+
notificationType: ""
|
|
675
773
|
}
|
|
676
774
|
};
|
|
677
775
|
|
|
678
|
-
var request = this.buildTradeSubscribeRequest(
|
|
776
|
+
var request = this.buildTradeSubscribeRequest(notificationType, tradeSub, _streamerApi.messages.control.Action.SUBSCRIBE);
|
|
679
777
|
var id = this.requestid.next();
|
|
680
778
|
tradeSub.id.push(id);
|
|
681
779
|
this.pendingTradeSubscription[id] = tradeSub;
|
|
@@ -889,6 +987,37 @@ var Stream = function () {
|
|
|
889
987
|
this.send(request);
|
|
890
988
|
};
|
|
891
989
|
|
|
990
|
+
Stream.prototype.unsubscribeTrade = function unsubscribeTrade(notificationType, optsOrCallback, callbackOrNothing) {
|
|
991
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
992
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
993
|
+
|
|
994
|
+
if (this.isClosed()) {
|
|
995
|
+
var event = events.error("Stream is disconnected", {
|
|
996
|
+
code: -1,
|
|
997
|
+
reason: "Already disconnected"
|
|
998
|
+
});
|
|
999
|
+
this.events.fire("error", event);
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
var tradeSub = {
|
|
1004
|
+
id: [],
|
|
1005
|
+
mimetype: this.format,
|
|
1006
|
+
callback: callback,
|
|
1007
|
+
result: {
|
|
1008
|
+
notificationType: ""
|
|
1009
|
+
}
|
|
1010
|
+
};
|
|
1011
|
+
|
|
1012
|
+
var request = this.buildTradeSubscribeRequest(notificationType, tradeSub, _streamerApi.messages.control.Action.UNSUBSCRIBE);
|
|
1013
|
+
var id = this.requestid.next();
|
|
1014
|
+
tradeSub.id.push(id);
|
|
1015
|
+
this.pendingTradeUnsubscription[id] = tradeSub;
|
|
1016
|
+
request.id = id;
|
|
1017
|
+
|
|
1018
|
+
this.send(request);
|
|
1019
|
+
};
|
|
1020
|
+
|
|
892
1021
|
Stream.prototype._handlejsonmsg = function _handlejsonmsg(msg) {
|
|
893
1022
|
if ((0, _streamerUtils.iscontrolmessage)(msg)) {
|
|
894
1023
|
this.handlectrlmsg(msg);
|
|
@@ -957,7 +1086,7 @@ var Stream = function () {
|
|
|
957
1086
|
msg.newsFilters = newsFilters;
|
|
958
1087
|
msg.mimetype = sub.mimetype;
|
|
959
1088
|
if (opts && opts.skipHeavyInitialLoad) {
|
|
960
|
-
msg.skipHeavyInitialLoad = opts.skipHeavyInitialLoad
|
|
1089
|
+
msg.skipHeavyInitialLoad = opts.skipHeavyInitialLoad;
|
|
961
1090
|
}
|
|
962
1091
|
return msg;
|
|
963
1092
|
};
|
|
@@ -969,9 +1098,10 @@ var Stream = function () {
|
|
|
969
1098
|
return msg;
|
|
970
1099
|
};
|
|
971
1100
|
|
|
972
|
-
Stream.prototype.buildTradeSubscribeRequest = function buildTradeSubscribeRequest(
|
|
1101
|
+
Stream.prototype.buildTradeSubscribeRequest = function buildTradeSubscribeRequest(notificationType, sub, action) {
|
|
973
1102
|
var msg = new _streamerApi.messages.control.TradeSubscribeMessage();
|
|
974
|
-
msg.
|
|
1103
|
+
msg.action = action;
|
|
1104
|
+
msg.notificationType = notificationType;
|
|
975
1105
|
msg.mimetype = sub.mimetype;
|
|
976
1106
|
return msg;
|
|
977
1107
|
};
|
|
@@ -1030,6 +1160,9 @@ var Stream = function () {
|
|
|
1030
1160
|
case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_CMD_FILTER_RESPONSE:
|
|
1031
1161
|
this.onNewsCmdFilterResponse(msg);
|
|
1032
1162
|
break;
|
|
1163
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE:
|
|
1164
|
+
this.onTradeUnsubscribeResponse(msg);
|
|
1165
|
+
break;
|
|
1033
1166
|
case _streamerApi.messages.MessageTypeNames.ctrl.CONNECT_RESPONSE:
|
|
1034
1167
|
this.onConnectResponse(msg);
|
|
1035
1168
|
break;
|
|
@@ -1048,6 +1181,12 @@ var Stream = function () {
|
|
|
1048
1181
|
case _streamerApi.messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE:
|
|
1049
1182
|
this.onResubscribeMessage(msg);
|
|
1050
1183
|
break;
|
|
1184
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE:
|
|
1185
|
+
this.onReconnectMessage(msg);
|
|
1186
|
+
break;
|
|
1187
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.MISSED_DATA_SENT:
|
|
1188
|
+
this.onMissedDataSent(msg);
|
|
1189
|
+
break;
|
|
1051
1190
|
}
|
|
1052
1191
|
};
|
|
1053
1192
|
|
|
@@ -1320,9 +1459,9 @@ var Stream = function () {
|
|
|
1320
1459
|
|
|
1321
1460
|
var result = tradeSub.result;
|
|
1322
1461
|
|
|
1323
|
-
if (msg.
|
|
1324
|
-
this.log.debug('Trade ' + msg.
|
|
1325
|
-
result.
|
|
1462
|
+
if (msg.notificationType) {
|
|
1463
|
+
this.log.debug('Trade ' + msg.notificationType);
|
|
1464
|
+
result.notificationType = msg.notificationType;
|
|
1326
1465
|
}
|
|
1327
1466
|
|
|
1328
1467
|
if (tradeSub.id.length === 0) {
|
|
@@ -1381,6 +1520,41 @@ var Stream = function () {
|
|
|
1381
1520
|
}
|
|
1382
1521
|
};
|
|
1383
1522
|
|
|
1523
|
+
Stream.prototype.onTradeUnsubscribeResponse = function onTradeUnsubscribeResponse(msg) {
|
|
1524
|
+
var tradeSub = this.pendingTradeUnsubscription[msg.__id];
|
|
1525
|
+
var callback = tradeSub.callback;
|
|
1526
|
+
|
|
1527
|
+
(0, _utils.removeFromArray)(tradeSub.id, msg.__id);
|
|
1528
|
+
delete this.pendingTradeUnsubscription[msg.__id];
|
|
1529
|
+
|
|
1530
|
+
console.log(msg);
|
|
1531
|
+
if (msg.code != 200 && !tradeSub.failed) {
|
|
1532
|
+
tradeSub.failed = true;
|
|
1533
|
+
var event = events.error("Error unsubscribing", {
|
|
1534
|
+
code: msg.code,
|
|
1535
|
+
reason: msg.reason
|
|
1536
|
+
});
|
|
1537
|
+
this.events.fire("error", event);
|
|
1538
|
+
if (callback) {
|
|
1539
|
+
tradeSub.callback(event);
|
|
1540
|
+
}
|
|
1541
|
+
return;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
var result = tradeSub.result;
|
|
1545
|
+
|
|
1546
|
+
if (msg.notificationType) {
|
|
1547
|
+
this.log.debug('Trade ' + msg.notificationType);
|
|
1548
|
+
result.notificationType = msg.notificationType;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
if (tradeSub.id.length === 0) {
|
|
1552
|
+
if (callback) {
|
|
1553
|
+
callback(null, tradeSub.result);
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
};
|
|
1557
|
+
|
|
1384
1558
|
Stream.prototype.onNewsCmdFilterRefreshResponse = function onNewsCmdFilterRefreshResponse(msg) {
|
|
1385
1559
|
console.log("msg", msg);
|
|
1386
1560
|
if (msg.code != 200) {
|
|
@@ -1472,8 +1646,21 @@ var Stream = function () {
|
|
|
1472
1646
|
}
|
|
1473
1647
|
};
|
|
1474
1648
|
|
|
1649
|
+
Stream.prototype.onReconnectMessage = function onReconnectMessage(msg) {
|
|
1650
|
+
if (msg.code !== 200) {
|
|
1651
|
+
var event = events.error("Reconnection Failed", {
|
|
1652
|
+
code: msg.code,
|
|
1653
|
+
reason: msg.reason
|
|
1654
|
+
});
|
|
1655
|
+
this.events.fire("error", event);
|
|
1656
|
+
this.doClose(event);
|
|
1657
|
+
}
|
|
1658
|
+
this.events.fire("reconnectMessage", msg);
|
|
1659
|
+
console.log(msg);
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1475
1662
|
Stream.prototype.onConnectResponse = function onConnectResponse(msg) {
|
|
1476
|
-
if (msg.code
|
|
1663
|
+
if (msg.code !== 200) {
|
|
1477
1664
|
var event = events.error("Connection failed", {
|
|
1478
1665
|
code: msg.code,
|
|
1479
1666
|
reason: msg.reason
|
|
@@ -1541,6 +1728,11 @@ var Stream = function () {
|
|
|
1541
1728
|
this.events.fire("resubscribeMessage", msg);
|
|
1542
1729
|
};
|
|
1543
1730
|
|
|
1731
|
+
Stream.prototype.onMissedDataSent = function onMissedDataSent(msg) {
|
|
1732
|
+
this.log.debug(_formatting.msgfmt.fmt(msg));
|
|
1733
|
+
this.events.fire("missedDataSent", msg);
|
|
1734
|
+
};
|
|
1735
|
+
|
|
1544
1736
|
Stream.prototype._handledatamsg = function _handledatamsg(msg) {
|
|
1545
1737
|
this.events.fire("message", msg);
|
|
1546
1738
|
};
|
|
@@ -1556,8 +1748,29 @@ var Stream = function () {
|
|
|
1556
1748
|
if (!this.isClosed()) {
|
|
1557
1749
|
var conn = this.conn;
|
|
1558
1750
|
this.conn = null;
|
|
1559
|
-
this.events.fire("close", msg);
|
|
1560
1751
|
conn.close();
|
|
1752
|
+
this.events.fire("close", msg);
|
|
1753
|
+
if (conn.isReconnect()) {
|
|
1754
|
+
//Will need to reset the events since they duplicate each time it reconnects.
|
|
1755
|
+
this.events = new _EventSupport2["default"]();
|
|
1756
|
+
this.conn = conn;
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
};
|
|
1760
|
+
|
|
1761
|
+
Stream.prototype.performReconnect = function performReconnect(callback) {
|
|
1762
|
+
if (this.conn != null && this.conn.isReconnect()) {
|
|
1763
|
+
if (this.conn.getConnectionUp()) {
|
|
1764
|
+
this.log.warn("Connection is not closed and won't try reconnect.");
|
|
1765
|
+
return;
|
|
1766
|
+
}
|
|
1767
|
+
this.conn.setReconnect(true);
|
|
1768
|
+
this.conn.tryReopen();
|
|
1769
|
+
if (callback) {
|
|
1770
|
+
callback();
|
|
1771
|
+
}
|
|
1772
|
+
} else {
|
|
1773
|
+
this.log.warn("Reconnect flag is set to false");
|
|
1561
1774
|
}
|
|
1562
1775
|
};
|
|
1563
1776
|
|
|
@@ -1580,7 +1793,7 @@ var Stream = function () {
|
|
|
1580
1793
|
|
|
1581
1794
|
exports["default"] = Stream;
|
|
1582
1795
|
}).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/Stream.js","/lib")
|
|
1583
|
-
},{"./EventSupport.js":2,"./FlowControl.js":3,"./UShortId.js":9,"./formatting.js":13,"./logging.js":16,"./polyfills.js":18,"./streamer-api.js":
|
|
1796
|
+
},{"./EventSupport.js":2,"./FlowControl.js":3,"./UShortId.js":9,"./formatting.js":13,"./logging.js":16,"./polyfills.js":18,"./streamer-api.js":96,"./streamer-events.js":97,"./streamer-utils.js":98,"./utils.js":103,"_process":119,"buffer":109,"timers":140}],7:[function(require,module,exports){
|
|
1584
1797
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
1585
1798
|
"use strict";
|
|
1586
1799
|
|
|
@@ -1608,6 +1821,14 @@ var _StreamingService = require("./StreamingService.js");
|
|
|
1608
1821
|
|
|
1609
1822
|
var _StreamingService2 = _interopRequireDefault(_StreamingService);
|
|
1610
1823
|
|
|
1824
|
+
var _StompStreamingService = require("./stomp/StompStreamingService.js");
|
|
1825
|
+
|
|
1826
|
+
var _StompStreamingService2 = _interopRequireDefault(_StompStreamingService);
|
|
1827
|
+
|
|
1828
|
+
var _stomp = require("./stomp.js/lib/stomp.js");
|
|
1829
|
+
|
|
1830
|
+
var _stomp2 = _interopRequireDefault(_stomp);
|
|
1831
|
+
|
|
1611
1832
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
1612
1833
|
|
|
1613
1834
|
var Streamer = {};
|
|
@@ -1649,6 +1870,27 @@ Object.assign(Streamer, {
|
|
|
1649
1870
|
new _StreamingService2["default"](_http2["default"], _atmosphere2["default"], logger, config).openStream(callback);
|
|
1650
1871
|
},
|
|
1651
1872
|
|
|
1873
|
+
openStomp: function openStomp(_config, callback) {
|
|
1874
|
+
initLogger();
|
|
1875
|
+
|
|
1876
|
+
var credentials = void 0;
|
|
1877
|
+
try {
|
|
1878
|
+
credentials = (0, _AuthService.asCredentials)(_config.credentials);
|
|
1879
|
+
} catch (e) {
|
|
1880
|
+
callback(e);
|
|
1881
|
+
return;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
var hostProtocol = _config.host.split('//');
|
|
1885
|
+
var wsProtocol = hostProtocol[0] === "http:" ? "ws://" : "wss://";
|
|
1886
|
+
var config = Object.assign({}, _config);
|
|
1887
|
+
config.credentials = credentials;
|
|
1888
|
+
config.format = config.format || "application/json";
|
|
1889
|
+
config.url = wsProtocol + hostProtocol[1];
|
|
1890
|
+
|
|
1891
|
+
new _StompStreamingService2["default"](_http2["default"], _stomp2["default"], logger, config).openStompStream(callback);
|
|
1892
|
+
},
|
|
1893
|
+
|
|
1652
1894
|
ping: function ping(host, callback) {
|
|
1653
1895
|
new _StreamingService2["default"](_http2["default"], _atmosphere2["default"], logger, { host: host }).ping(callback);
|
|
1654
1896
|
},
|
|
@@ -1660,7 +1902,7 @@ Object.assign(Streamer, {
|
|
|
1660
1902
|
|
|
1661
1903
|
exports["default"] = Streamer;
|
|
1662
1904
|
}).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.js","/lib")
|
|
1663
|
-
},{"./StreamingService.js":8,"./atmosphere.js/lib/atmosphere.js":10,"./auth/AuthService.js":11,"./auth/EnduserAuthService.js":12,"./http.js":14,"./logging.js":16,"./polyfills.js":18,"_process":
|
|
1905
|
+
},{"./StreamingService.js":8,"./atmosphere.js/lib/atmosphere.js":10,"./auth/AuthService.js":11,"./auth/EnduserAuthService.js":12,"./http.js":14,"./logging.js":16,"./polyfills.js":18,"./stomp.js/lib/stomp.js":92,"./stomp/StompStreamingService.js":95,"_process":119,"buffer":109,"timers":140}],8:[function(require,module,exports){
|
|
1664
1906
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
1665
1907
|
"use strict";
|
|
1666
1908
|
|
|
@@ -1726,6 +1968,7 @@ var StreamingService = function () {
|
|
|
1726
1968
|
this.atmo = atmosphere;
|
|
1727
1969
|
this.log = (0, _logging.asLogger)(log);
|
|
1728
1970
|
this.config = config || {};
|
|
1971
|
+
this.maxReconnectAttempts = this.config.maxReconnectAttempts;
|
|
1729
1972
|
|
|
1730
1973
|
this.format = this.config.format;
|
|
1731
1974
|
if (this.config.format === 'application/json') {
|
|
@@ -1751,7 +1994,7 @@ var StreamingService = function () {
|
|
|
1751
1994
|
}
|
|
1752
1995
|
}
|
|
1753
1996
|
|
|
1754
|
-
StreamingService.prototype.openSocket = function openSocket(handlers) {
|
|
1997
|
+
StreamingService.prototype.openSocket = function openSocket(handlers, connectionId) {
|
|
1755
1998
|
var headers = {
|
|
1756
1999
|
'X-Stream-Version': _streamerApi.VERSION,
|
|
1757
2000
|
'X-Stream-Lib': _streamerApi.LIBRARY_NAME
|
|
@@ -1762,6 +2005,9 @@ var StreamingService = function () {
|
|
|
1762
2005
|
headers['X-Stream-Conflation'] = _conflation;
|
|
1763
2006
|
}
|
|
1764
2007
|
|
|
2008
|
+
if (connectionId != null && connectionId !== '') {
|
|
2009
|
+
headers['X-Stream-Previous-Connection-Id'] = connectionId;
|
|
2010
|
+
}
|
|
1765
2011
|
var _rejectExcessiveConnection = this.config.rejectExcessiveConnection;
|
|
1766
2012
|
if (_rejectExcessiveConnection != null && _rejectExcessiveConnection !== '') {
|
|
1767
2013
|
headers['X-Stream-Reject'] = _rejectExcessiveConnection;
|
|
@@ -1780,6 +2026,22 @@ var StreamingService = function () {
|
|
|
1780
2026
|
headers['X-Stream-UpdatesOnly'] = true;
|
|
1781
2027
|
}
|
|
1782
2028
|
|
|
2029
|
+
var _isReconnect = this.config.isReconnect;
|
|
2030
|
+
if (_isReconnect != null && _isReconnect !== '') {
|
|
2031
|
+
headers['x-Stream-isReconnect'] = _isReconnect;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
var _alwaysReconnect = this.config.alwaysReconnect;
|
|
2035
|
+
if (_alwaysReconnect != null && _alwaysReconnect !== '') {
|
|
2036
|
+
headers['x-Stream-isAlwaysReopen'] = _alwaysReconnect;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
if (this.config.isMissedData === 'ALL') {
|
|
2040
|
+
headers['X-Stream-isReceiveAllMissedData'] = true;
|
|
2041
|
+
} else if (this.config.isMissedData === 'LATEST') {
|
|
2042
|
+
headers['X-Stream-isReceiveLatestMissedData'] = true;
|
|
2043
|
+
}
|
|
2044
|
+
|
|
1783
2045
|
Object.assign(headers, this.config.credentials.getHeaders());
|
|
1784
2046
|
|
|
1785
2047
|
var request = {
|
|
@@ -1811,9 +2073,9 @@ var StreamingService = function () {
|
|
|
1811
2073
|
|
|
1812
2074
|
return new _Connection2["default"](function (socket) {
|
|
1813
2075
|
return _this2.createTransmitter(socket);
|
|
1814
|
-
}, function (handlers) {
|
|
1815
|
-
return _this2.openSocket(handlers);
|
|
1816
|
-
}, this.
|
|
2076
|
+
}, function (handlers, connectionId) {
|
|
2077
|
+
return _this2.openSocket(handlers, connectionId);
|
|
2078
|
+
}, this.log, this.maxReconnectAttempts);
|
|
1817
2079
|
};
|
|
1818
2080
|
|
|
1819
2081
|
StreamingService.prototype.openStream = function openStream(callback) {
|
|
@@ -1827,6 +2089,7 @@ var StreamingService = function () {
|
|
|
1827
2089
|
success: function success(result) {
|
|
1828
2090
|
return callback(null, result);
|
|
1829
2091
|
},
|
|
2092
|
+
type: "GET",
|
|
1830
2093
|
failure: callback
|
|
1831
2094
|
});
|
|
1832
2095
|
};
|
|
@@ -1837,6 +2100,7 @@ var StreamingService = function () {
|
|
|
1837
2100
|
success: function success(result) {
|
|
1838
2101
|
return callback(null, result);
|
|
1839
2102
|
},
|
|
2103
|
+
type: 'GET',
|
|
1840
2104
|
failure: callback
|
|
1841
2105
|
});
|
|
1842
2106
|
};
|
|
@@ -1846,7 +2110,7 @@ var StreamingService = function () {
|
|
|
1846
2110
|
|
|
1847
2111
|
exports["default"] = StreamingService;
|
|
1848
2112
|
}).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/StreamingService.js","/lib")
|
|
1849
|
-
},{"./Connection.js":1,"./Stream.js":6,"./logging.js":16,"./message.js":17,"./polyfills.js":18,"./qitch/encoder/QitchEncoder":67,"./serialization/SMessageDecoder.js":87,"./serialization/SMessageEncoder.js":88,"./streamer-api.js":
|
|
2113
|
+
},{"./Connection.js":1,"./Stream.js":6,"./logging.js":16,"./message.js":17,"./polyfills.js":18,"./qitch/encoder/QitchEncoder":67,"./serialization/SMessageDecoder.js":87,"./serialization/SMessageEncoder.js":88,"./streamer-api.js":96,"./transmission/JsonTransmitter.js":100,"./transmission/QitchTransmitter.js":101,"./transmission/SMessageTransmitter.js":102,"_process":119,"buffer":109,"timers":140}],9:[function(require,module,exports){
|
|
1850
2114
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
1851
2115
|
"use strict";
|
|
1852
2116
|
|
|
@@ -1880,7 +2144,7 @@ UShortId.MAX_VALUE = 65535; // 2^16-1
|
|
|
1880
2144
|
|
|
1881
2145
|
exports["default"] = UShortId;
|
|
1882
2146
|
}).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/UShortId.js","/lib")
|
|
1883
|
-
},{"_process":
|
|
2147
|
+
},{"_process":119,"buffer":109,"timers":140}],10:[function(require,module,exports){
|
|
1884
2148
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
1885
2149
|
"use strict";
|
|
1886
2150
|
|
|
@@ -5392,7 +5656,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5392
5656
|
});
|
|
5393
5657
|
/* jshint eqnull:true, noarg:true, noempty:true, eqeqeq:true, evil:true, laxbreak:true, undef:true, browser:true, indent:false, maxerr:50 */
|
|
5394
5658
|
}).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/atmosphere.js/lib/atmosphere.js","/lib/atmosphere.js/lib")
|
|
5395
|
-
},{"_process":
|
|
5659
|
+
},{"_process":119,"buffer":109,"timers":140}],11:[function(require,module,exports){
|
|
5396
5660
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
5397
5661
|
"use strict";
|
|
5398
5662
|
|
|
@@ -5492,7 +5756,7 @@ function asCredentials(credentials) {
|
|
|
5492
5756
|
}
|
|
5493
5757
|
};
|
|
5494
5758
|
}).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/auth/AuthService.js","/lib/auth")
|
|
5495
|
-
},{"./EnduserAuthService.js":12,"_process":
|
|
5759
|
+
},{"./EnduserAuthService.js":12,"_process":119,"array-equal":104,"buffer":109,"timers":140}],12:[function(require,module,exports){
|
|
5496
5760
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
5497
5761
|
"use strict";
|
|
5498
5762
|
|
|
@@ -5521,6 +5785,7 @@ var EnduserAuthService = function () {
|
|
|
5521
5785
|
this.http = http;
|
|
5522
5786
|
this.host = config.host || "app.quotemedia.com";
|
|
5523
5787
|
this.credentials = credentials;
|
|
5788
|
+
this.application = config.application;
|
|
5524
5789
|
this.method = "POST";
|
|
5525
5790
|
}
|
|
5526
5791
|
|
|
@@ -5529,7 +5794,7 @@ var EnduserAuthService = function () {
|
|
|
5529
5794
|
};
|
|
5530
5795
|
|
|
5531
5796
|
EnduserAuthService.prototype.login_POST = function login_POST(callback) {
|
|
5532
|
-
var url = this.host + AUTHSERVICEURLS.authenticate_post;
|
|
5797
|
+
var url = this.host + AUTHSERVICEURLS.authenticate_post + (this.application ? "&application=" + this.application : "");
|
|
5533
5798
|
var req = {
|
|
5534
5799
|
wmId: this.credentials.wmid,
|
|
5535
5800
|
username: this.credentials.username,
|
|
@@ -5567,7 +5832,7 @@ var EnduserAuthService = function () {
|
|
|
5567
5832
|
|
|
5568
5833
|
exports["default"] = EnduserAuthService;
|
|
5569
5834
|
}).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/auth/EnduserAuthService.js","/lib/auth")
|
|
5570
|
-
},{"_process":
|
|
5835
|
+
},{"_process":119,"buffer":109,"timers":140}],13:[function(require,module,exports){
|
|
5571
5836
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
5572
5837
|
"use strict";
|
|
5573
5838
|
|
|
@@ -5611,6 +5876,7 @@ fmt.Formatter = function () {
|
|
|
5611
5876
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.CONNECT_RESPONSE] = this._fmtconnectresponse;
|
|
5612
5877
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.CONNECTION_CLOSE] = this._fmtconnectionclose;
|
|
5613
5878
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.FLOW] = this._fmtflowmessage;
|
|
5879
|
+
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.OPEN_FLOW] = this._fmtopenflowmessage;
|
|
5614
5880
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.SLOW_CONNECTION] = this._fmtslowconnection;
|
|
5615
5881
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.STATS] = this._fmtstats;
|
|
5616
5882
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.STATS_RESPONSE] = this._fmtstatsresponse;
|
|
@@ -5628,6 +5894,9 @@ fmt.Formatter = function () {
|
|
|
5628
5894
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.NEWS_UNSUBSCRIBE_RESPONSE] = this._fmtnewsunsubscriberesponse;
|
|
5629
5895
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.NEWS_CMD_FILTER_REFRESH_RESPONSE] = this._fmtnewscmdfilterrefreshresponse;
|
|
5630
5896
|
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.NEWS_CMD_FILTER_RESPONSE] = this._fmtnewscmdfilterresponse;
|
|
5897
|
+
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE] = this._fmttradeunsubscriberesponse;
|
|
5898
|
+
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE] = this._fmtreconnectresponse;
|
|
5899
|
+
this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.MISSED_DATA_SENT] = this._fmtmisseddatasent;
|
|
5631
5900
|
|
|
5632
5901
|
//
|
|
5633
5902
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.QUOTE] = this._fmtquote;
|
|
@@ -5650,6 +5919,7 @@ fmt.Formatter = function () {
|
|
|
5650
5919
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWS] = this._fmtnews;
|
|
5651
5920
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.TRADENOTIFICATION] = this._fmttradeNotification;
|
|
5652
5921
|
this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWSCMDFILTER] = this._fmtnewscmdfilter;
|
|
5922
|
+
this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWSERROR] = this._fmtnewserror;
|
|
5653
5923
|
};
|
|
5654
5924
|
|
|
5655
5925
|
fmt.Formatter._UNKOWNTYPE = '__UNKNOWN__';
|
|
@@ -5778,6 +6048,8 @@ fmt.Formatter.prototype._fmtpricedata = function (val) {
|
|
|
5778
6048
|
s.append(val.postMarketPercentChange);
|
|
5779
6049
|
s.sep();
|
|
5780
6050
|
s.append(val.lastTradeExcode);
|
|
6051
|
+
s.sep();
|
|
6052
|
+
s.append(val.currencyID);
|
|
5781
6053
|
return s.toString();
|
|
5782
6054
|
};
|
|
5783
6055
|
fmt.Formatter.prototype._fmtlastsale = function (val) {
|
|
@@ -5799,6 +6071,8 @@ fmt.Formatter.prototype._fmtlastsale = function (val) {
|
|
|
5799
6071
|
s.append(val.accumulatedVolume);
|
|
5800
6072
|
s.sep();
|
|
5801
6073
|
s.append(val.tick);
|
|
6074
|
+
s.sep();
|
|
6075
|
+
s.append(val.lastTradeExcode);
|
|
5802
6076
|
return s.toString();
|
|
5803
6077
|
};
|
|
5804
6078
|
fmt.Formatter.prototype._fmtlimituplimitdown = function (val) {
|
|
@@ -5853,6 +6127,12 @@ fmt.Formatter.prototype._fmtivgreeks = function (val) {
|
|
|
5853
6127
|
s.append(val.intrinsicValue);
|
|
5854
6128
|
s.sep();
|
|
5855
6129
|
s.append(val.extrinsicValue);
|
|
6130
|
+
s.sep();
|
|
6131
|
+
s.append(val.previousMark);
|
|
6132
|
+
s.sep();
|
|
6133
|
+
s.append(val.markChange);
|
|
6134
|
+
s.sep();
|
|
6135
|
+
s.append(val.markChangePercent);
|
|
5856
6136
|
return s.toString();
|
|
5857
6137
|
};
|
|
5858
6138
|
|
|
@@ -6261,6 +6541,19 @@ fmt.Formatter.prototype._fmtnewscmdfilter = function (val) {
|
|
|
6261
6541
|
return s.toString();
|
|
6262
6542
|
};
|
|
6263
6543
|
|
|
6544
|
+
fmt.Formatter.prototype._fmtnewserror = function (val) {
|
|
6545
|
+
var s = new fmt.StringBuilder();
|
|
6546
|
+
s.append("NEWS ERROR");
|
|
6547
|
+
s.sep();
|
|
6548
|
+
s.append("Event: " + val.event);
|
|
6549
|
+
s.sep();
|
|
6550
|
+
s.append("Code: " + val.code);
|
|
6551
|
+
s.sep();
|
|
6552
|
+
s.append("Message: " + val.message);
|
|
6553
|
+
|
|
6554
|
+
return s.toString();
|
|
6555
|
+
};
|
|
6556
|
+
|
|
6264
6557
|
fmt.Formatter.prototype._fmtheartbeat = function (val) {
|
|
6265
6558
|
var s = new fmt.StringBuilder();
|
|
6266
6559
|
s.append("HEARBEAT");
|
|
@@ -6396,6 +6689,13 @@ fmt.Formatter.prototype._fmtexchangeunsubscriberesponse = function (val) {
|
|
|
6396
6689
|
return s.toString();
|
|
6397
6690
|
};
|
|
6398
6691
|
|
|
6692
|
+
fmt.Formatter.prototype._fmttradeunsubscriberesponse = function (val) {
|
|
6693
|
+
var s = new fmt.StringBuilder();
|
|
6694
|
+
s.append('TRADE UNSUBSCRIBED');
|
|
6695
|
+
// TODO
|
|
6696
|
+
return s.toString();
|
|
6697
|
+
};
|
|
6698
|
+
|
|
6399
6699
|
fmt.Formatter.prototype._fmtconnectresponse = function (val) {
|
|
6400
6700
|
var s = new fmt.StringBuilder();
|
|
6401
6701
|
s.append('CONNECT');
|
|
@@ -6416,6 +6716,26 @@ fmt.Formatter.prototype._fmtconnectresponse = function (val) {
|
|
|
6416
6716
|
return s.toString();
|
|
6417
6717
|
};
|
|
6418
6718
|
|
|
6719
|
+
fmt.Formatter.prototype._fmtreconnectresponse = function (val) {
|
|
6720
|
+
var s = new fmt.StringBuilder();
|
|
6721
|
+
s.append('RECONNECT');
|
|
6722
|
+
s.sep();
|
|
6723
|
+
s.append(val.version);
|
|
6724
|
+
s.sep();
|
|
6725
|
+
s.append(val.flowControlCheckInterval);
|
|
6726
|
+
s.sep();
|
|
6727
|
+
s.append(val.serverInstance);
|
|
6728
|
+
s.sep();
|
|
6729
|
+
s.append(val.conflationMs);
|
|
6730
|
+
s.sep();
|
|
6731
|
+
s.append(val.rejectExcessiveConnection);
|
|
6732
|
+
s.sep();
|
|
6733
|
+
s.append(val.maxEntitlementsPerSubscription);
|
|
6734
|
+
s.sep();
|
|
6735
|
+
s.sep(val.entitlements);
|
|
6736
|
+
return s.toString();
|
|
6737
|
+
};
|
|
6738
|
+
|
|
6419
6739
|
fmt.Formatter.prototype._fmtconnectionclose = function (val) {
|
|
6420
6740
|
var s = new fmt.StringBuilder();
|
|
6421
6741
|
s.append('CLOSE');
|
|
@@ -6491,12 +6811,30 @@ fmt.Formatter.prototype._fmtflowmessage = function (val) {
|
|
|
6491
6811
|
return s.toString();
|
|
6492
6812
|
};
|
|
6493
6813
|
|
|
6814
|
+
fmt.Formatter.prototype._fmtopenflowmessage = function (val) {
|
|
6815
|
+
var s = new fmt.StringBuilder();
|
|
6816
|
+
s.append('OPEN FLOW');
|
|
6817
|
+
s.sep();
|
|
6818
|
+
s.append(val.sequence);
|
|
6819
|
+
return s.toString();
|
|
6820
|
+
};
|
|
6821
|
+
|
|
6494
6822
|
fmt.Formatter.prototype.__baseresponse = function (val, s) {
|
|
6495
6823
|
s.append(val.code);
|
|
6496
6824
|
s.sep();
|
|
6497
6825
|
s.append(val.reason);
|
|
6498
6826
|
};
|
|
6499
6827
|
|
|
6828
|
+
fmt.Formatter.prototype._fmtmisseddatasent = function (val) {
|
|
6829
|
+
var s = new fmt.StringBuilder();
|
|
6830
|
+
s.append("MISSED DATA SENT");
|
|
6831
|
+
s.sep();
|
|
6832
|
+
s.datetime(val.timestamp);
|
|
6833
|
+
s.sep();
|
|
6834
|
+
s.append(val.requestId);
|
|
6835
|
+
return s.toString();
|
|
6836
|
+
};
|
|
6837
|
+
|
|
6500
6838
|
/**
|
|
6501
6839
|
* Create a new sting builder.
|
|
6502
6840
|
* @constructor
|
|
@@ -6540,7 +6878,7 @@ fmt.format = function (msg) {
|
|
|
6540
6878
|
|
|
6541
6879
|
module.exports = fmt;
|
|
6542
6880
|
}).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/formatting.js","/lib")
|
|
6543
|
-
},{"./streamer-api.js":
|
|
6881
|
+
},{"./streamer-api.js":96,"./streamer-utils.js":98,"_process":119,"buffer":109,"jsbi":116,"timers":140}],14:[function(require,module,exports){
|
|
6544
6882
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
6545
6883
|
"use strict";
|
|
6546
6884
|
|
|
@@ -6622,7 +6960,7 @@ function http(opts) {
|
|
|
6622
6960
|
xhr.send(data);
|
|
6623
6961
|
};
|
|
6624
6962
|
}).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/http.js","/lib")
|
|
6625
|
-
},{"_process":
|
|
6963
|
+
},{"_process":119,"buffer":109,"timers":140,"xmlhttprequest":145}],15:[function(require,module,exports){
|
|
6626
6964
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
6627
6965
|
"use strict";
|
|
6628
6966
|
|
|
@@ -6667,7 +7005,7 @@ _Streamer2["default"].dataTypes.get = function (msg) {
|
|
|
6667
7005
|
|
|
6668
7006
|
module.exports = _Streamer2["default"];
|
|
6669
7007
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/index.js","/lib")
|
|
6670
|
-
},{"./Streamer.js":7,"./formatting.js":13,"./polyfills":18,"./streamer-api.js":
|
|
7008
|
+
},{"./Streamer.js":7,"./formatting.js":13,"./polyfills":18,"./streamer-api.js":96,"./streamer-utils.js":98,"_process":119,"buffer":109,"json3":117,"timers":140}],16:[function(require,module,exports){
|
|
6671
7009
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
6672
7010
|
"use strict";
|
|
6673
7011
|
|
|
@@ -6727,7 +7065,7 @@ function asLogger(logger) {
|
|
|
6727
7065
|
}
|
|
6728
7066
|
}
|
|
6729
7067
|
}).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/logging.js","/lib")
|
|
6730
|
-
},{"_process":
|
|
7068
|
+
},{"_process":119,"buffer":109,"timers":140}],17:[function(require,module,exports){
|
|
6731
7069
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
6732
7070
|
"use strict";
|
|
6733
7071
|
|
|
@@ -6803,7 +7141,7 @@ var lpad = exports.lpad = function lpad(num, len) {
|
|
|
6803
7141
|
return _pad + _numstr;
|
|
6804
7142
|
};
|
|
6805
7143
|
}).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/message.js","/lib")
|
|
6806
|
-
},{"_process":
|
|
7144
|
+
},{"_process":119,"buffer":109,"timers":140}],18:[function(require,module,exports){
|
|
6807
7145
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
6808
7146
|
'use strict';
|
|
6809
7147
|
|
|
@@ -7021,7 +7359,7 @@ if (!Array.from) {
|
|
|
7021
7359
|
}();
|
|
7022
7360
|
}
|
|
7023
7361
|
}).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/polyfills.js","/lib")
|
|
7024
|
-
},{"_process":
|
|
7362
|
+
},{"_process":119,"buffer":109,"timers":140}],19:[function(require,module,exports){
|
|
7025
7363
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
7026
7364
|
"use strict";
|
|
7027
7365
|
|
|
@@ -7083,7 +7421,7 @@ var BlockHeader = function () {
|
|
|
7083
7421
|
|
|
7084
7422
|
exports["default"] = BlockHeader;
|
|
7085
7423
|
}).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/qitch/BlockHeader.js","/lib/qitch")
|
|
7086
|
-
},{"./Bytes":20,"./DataOperations":21,"./Qitch":25,"./QitchConstants":26,"_process":
|
|
7424
|
+
},{"./Bytes":20,"./DataOperations":21,"./Qitch":25,"./QitchConstants":26,"_process":119,"buffer":109,"timers":140}],20:[function(require,module,exports){
|
|
7087
7425
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
7088
7426
|
"use strict";
|
|
7089
7427
|
|
|
@@ -7178,7 +7516,7 @@ var Bytes = function () {
|
|
|
7178
7516
|
|
|
7179
7517
|
exports["default"] = Bytes;
|
|
7180
7518
|
}).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/qitch/Bytes.js","/lib/qitch")
|
|
7181
|
-
},{"_process":
|
|
7519
|
+
},{"_process":119,"buffer":109,"jsbi":116,"timers":140}],21:[function(require,module,exports){
|
|
7182
7520
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
7183
7521
|
"use strict";
|
|
7184
7522
|
|
|
@@ -7329,7 +7667,7 @@ exports.UShort = UShort;
|
|
|
7329
7667
|
exports.UInt = UInt;
|
|
7330
7668
|
exports.ASCIIString = ASCIIString;
|
|
7331
7669
|
}).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/qitch/DataOperations.js","/lib/qitch")
|
|
7332
|
-
},{"_process":
|
|
7670
|
+
},{"_process":119,"buffer":109,"timers":140}],22:[function(require,module,exports){
|
|
7333
7671
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
7334
7672
|
"use strict";
|
|
7335
7673
|
|
|
@@ -7403,7 +7741,7 @@ var EnumValueTranslator = function () {
|
|
|
7403
7741
|
|
|
7404
7742
|
exports["default"] = EnumValueTranslator;
|
|
7405
7743
|
}).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/qitch/EnumValueTranslator.js","/lib/qitch")
|
|
7406
|
-
},{"../streamer-api":
|
|
7744
|
+
},{"../streamer-api":96,"_process":119,"buffer":109,"timers":140}],23:[function(require,module,exports){
|
|
7407
7745
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
7408
7746
|
"use strict";
|
|
7409
7747
|
|
|
@@ -7435,7 +7773,7 @@ var LocateCodeInjector = function () {
|
|
|
7435
7773
|
|
|
7436
7774
|
exports["default"] = LocateCodeInjector;
|
|
7437
7775
|
}).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/qitch/LocateCodeInjector.js","/lib/qitch")
|
|
7438
|
-
},{"../streamer-api":
|
|
7776
|
+
},{"../streamer-api":96,"_process":119,"buffer":109,"timers":140}],24:[function(require,module,exports){
|
|
7439
7777
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
7440
7778
|
"use strict";
|
|
7441
7779
|
|
|
@@ -7480,7 +7818,7 @@ var MessageHeader = function () {
|
|
|
7480
7818
|
|
|
7481
7819
|
exports["default"] = MessageHeader;
|
|
7482
7820
|
}).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/qitch/MessageHeader.js","/lib/qitch")
|
|
7483
|
-
},{"./Bytes":20,"./DataOperations":21,"./QitchConstants":26,"_process":
|
|
7821
|
+
},{"./Bytes":20,"./DataOperations":21,"./QitchConstants":26,"_process":119,"buffer":109,"timers":140}],25:[function(require,module,exports){
|
|
7484
7822
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
7485
7823
|
"use strict";
|
|
7486
7824
|
|
|
@@ -8282,7 +8620,7 @@ var Qitch = function () {
|
|
|
8282
8620
|
|
|
8283
8621
|
exports["default"] = Qitch;
|
|
8284
8622
|
}).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/qitch/Qitch.js","/lib/qitch")
|
|
8285
|
-
},{"../streamer-api":
|
|
8623
|
+
},{"../streamer-api":96,"./Bytes":20,"./DataOperations":21,"./EnumValueTranslator":22,"./QitchConstants":26,"_process":119,"bignumber.js":106,"buffer":109,"jsbi":116,"timers":140}],26:[function(require,module,exports){
|
|
8286
8624
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8287
8625
|
"use strict";
|
|
8288
8626
|
|
|
@@ -8345,7 +8683,7 @@ var BLOCK_HEADER_RESERVED_OFFSET = exports.BLOCK_HEADER_RESERVED_OFFSET = BLOCK_
|
|
|
8345
8683
|
var BLOCK_HEADER_SEQUENCE_OFFSET = exports.BLOCK_HEADER_SEQUENCE_OFFSET = BLOCK_HEADER_RESERVED_OFFSET + BYTE_LENGTH;
|
|
8346
8684
|
var BLOCK_HEADER_LENGTH = exports.BLOCK_HEADER_LENGTH = BLOCK_HEADER_SEQUENCE_OFFSET + INT_LENGTH;
|
|
8347
8685
|
}).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/qitch/QitchConstants.js","/lib/qitch")
|
|
8348
|
-
},{"_process":
|
|
8686
|
+
},{"_process":119,"buffer":109,"jsbi":116,"timers":140}],27:[function(require,module,exports){
|
|
8349
8687
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8350
8688
|
"use strict";
|
|
8351
8689
|
|
|
@@ -8368,7 +8706,7 @@ var MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET = exports.MAX_ENTITLEMENTS_PER_SUBS
|
|
|
8368
8706
|
|
|
8369
8707
|
var LENGTH = exports.LENGTH = MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET + _QitchConstants.INT_LENGTH;
|
|
8370
8708
|
}).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/qitch/controlMessageDefinition/ConnectResponseDef.js","/lib/qitch/controlMessageDefinition")
|
|
8371
|
-
},{"../QitchConstants":26,"_process":
|
|
8709
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],28:[function(require,module,exports){
|
|
8372
8710
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8373
8711
|
"use strict";
|
|
8374
8712
|
|
|
@@ -8384,7 +8722,7 @@ var REASON_OFFSET = exports.REASON_OFFSET = CODE_OFFSET + _QitchConstants.INT_LE
|
|
|
8384
8722
|
|
|
8385
8723
|
var LENGTH = exports.LENGTH = REASON_OFFSET + _QitchConstants.REASON_LENGTH;
|
|
8386
8724
|
}).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/qitch/controlMessageDefinition/ConnectionCloseDef.js","/lib/qitch/controlMessageDefinition")
|
|
8387
|
-
},{"../QitchConstants":26,"_process":
|
|
8725
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],29:[function(require,module,exports){
|
|
8388
8726
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8389
8727
|
"use strict";
|
|
8390
8728
|
|
|
@@ -8398,7 +8736,7 @@ var TYPEID = exports.TYPEID = 107;
|
|
|
8398
8736
|
var SEQUENCE_NUMBER_OFFSET = exports.SEQUENCE_NUMBER_OFFSET = 0;
|
|
8399
8737
|
var LENGTH = exports.LENGTH = SEQUENCE_NUMBER_OFFSET + _QitchConstants.INT_LENGTH;
|
|
8400
8738
|
}).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/qitch/controlMessageDefinition/FlowMessageDef.js","/lib/qitch/controlMessageDefinition")
|
|
8401
|
-
},{"../QitchConstants":26,"_process":
|
|
8739
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],30:[function(require,module,exports){
|
|
8402
8740
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8403
8741
|
"use strict";
|
|
8404
8742
|
|
|
@@ -8412,7 +8750,7 @@ var TYPEID = exports.TYPEID = 101;
|
|
|
8412
8750
|
var TIMESTAMP_OFFSET = exports.TIMESTAMP_OFFSET = 0;
|
|
8413
8751
|
var LENGTH = exports.LENGTH = TIMESTAMP_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
|
|
8414
8752
|
}).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/qitch/controlMessageDefinition/HeartbeatDef.js","/lib/qitch/controlMessageDefinition")
|
|
8415
|
-
},{"../QitchConstants":26,"_process":
|
|
8753
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],31:[function(require,module,exports){
|
|
8416
8754
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8417
8755
|
"use strict";
|
|
8418
8756
|
|
|
@@ -8427,7 +8765,7 @@ var TIMESTAMP_OFFSET = exports.TIMESTAMP_OFFSET = 0;
|
|
|
8427
8765
|
var REQUEST_ID_OFFSET = exports.REQUEST_ID_OFFSET = TIMESTAMP_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
|
|
8428
8766
|
var LENGTH = exports.LENGTH = REQUEST_ID_OFFSET + _QitchConstants.INT_LENGTH;
|
|
8429
8767
|
}).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/qitch/controlMessageDefinition/InitialDataSentDef.js","/lib/qitch/controlMessageDefinition")
|
|
8430
|
-
},{"../QitchConstants":26,"_process":
|
|
8768
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],32:[function(require,module,exports){
|
|
8431
8769
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8432
8770
|
"use strict";
|
|
8433
8771
|
|
|
@@ -8441,7 +8779,7 @@ var TYPEID = exports.TYPEID = 112;
|
|
|
8441
8779
|
var TIMESTAMP_OFFSET = exports.TIMESTAMP_OFFSET = 0;
|
|
8442
8780
|
var LENGTH = exports.LENGTH = TIMESTAMP_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
|
|
8443
8781
|
}).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/qitch/controlMessageDefinition/ResubscribeMessageDef.js","/lib/qitch/controlMessageDefinition")
|
|
8444
|
-
},{"../QitchConstants":26,"_process":
|
|
8782
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],33:[function(require,module,exports){
|
|
8445
8783
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8446
8784
|
"use strict";
|
|
8447
8785
|
|
|
@@ -8457,7 +8795,7 @@ var MAX_EXCEED_OFFSET = exports.MAX_EXCEED_OFFSET = TIMES_EXCEED_OFFSET + _Qitch
|
|
|
8457
8795
|
|
|
8458
8796
|
var LENGTH = exports.LENGTH = MAX_EXCEED_OFFSET + _QitchConstants.INT_LENGTH;
|
|
8459
8797
|
}).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/qitch/controlMessageDefinition/SlowConnectionDef.js","/lib/qitch/controlMessageDefinition")
|
|
8460
|
-
},{"../QitchConstants":26,"_process":
|
|
8798
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],34:[function(require,module,exports){
|
|
8461
8799
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8462
8800
|
"use strict";
|
|
8463
8801
|
|
|
@@ -8471,7 +8809,7 @@ var TYPEID = exports.TYPEID = 108;
|
|
|
8471
8809
|
var REQUEST_ID_OFFSET = exports.REQUEST_ID_OFFSET = 0;
|
|
8472
8810
|
var LENGTH = exports.LENGTH = REQUEST_ID_OFFSET + _QitchConstants.INT_LENGTH;
|
|
8473
8811
|
}).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/qitch/controlMessageDefinition/StatsMessageDef.js","/lib/qitch/controlMessageDefinition")
|
|
8474
|
-
},{"../QitchConstants":26,"_process":
|
|
8812
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],35:[function(require,module,exports){
|
|
8475
8813
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8476
8814
|
"use strict";
|
|
8477
8815
|
|
|
@@ -8494,7 +8832,7 @@ var NUMBER_OF_AVAILABLE_CONNECTIONS = exports.NUMBER_OF_AVAILABLE_CONNECTIONS =
|
|
|
8494
8832
|
|
|
8495
8833
|
var LENGTH = exports.LENGTH = NUMBER_OF_AVAILABLE_CONNECTIONS + _QitchConstants.INT_LENGTH;
|
|
8496
8834
|
}).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/qitch/controlMessageDefinition/StatsResponseDef.js","/lib/qitch/controlMessageDefinition")
|
|
8497
|
-
},{"../QitchConstants":26,"_process":
|
|
8835
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],36:[function(require,module,exports){
|
|
8498
8836
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8499
8837
|
"use strict";
|
|
8500
8838
|
|
|
@@ -8515,7 +8853,7 @@ var NUMBER_OF_TYPES_OFFSET = exports.NUMBER_OF_TYPES_OFFSET = NUMBER_OF_SYMBOLS_
|
|
|
8515
8853
|
|
|
8516
8854
|
var FIXED_LENGTH = exports.FIXED_LENGTH = NUMBER_OF_TYPES_OFFSET + _QitchConstants.BYTE_LENGTH;
|
|
8517
8855
|
}).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/qitch/controlMessageDefinition/SubscribeMessageDef.js","/lib/qitch/controlMessageDefinition")
|
|
8518
|
-
},{"../QitchConstants":26,"_process":
|
|
8856
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],37:[function(require,module,exports){
|
|
8519
8857
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8520
8858
|
"use strict";
|
|
8521
8859
|
|
|
@@ -8535,7 +8873,7 @@ var NUMBER_OF_INVALID_SYMBOLS_OFFSET = exports.NUMBER_OF_INVALID_SYMBOLS_OFFSET
|
|
|
8535
8873
|
|
|
8536
8874
|
var FIXED_LENGTH = exports.FIXED_LENGTH = NUMBER_OF_INVALID_SYMBOLS_OFFSET + _QitchConstants.INT_LENGTH;
|
|
8537
8875
|
}).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/qitch/controlMessageDefinition/SubscribeResponseDef.js","/lib/qitch/controlMessageDefinition")
|
|
8538
|
-
},{"../QitchConstants":26,"_process":
|
|
8876
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],38:[function(require,module,exports){
|
|
8539
8877
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8540
8878
|
"use strict";
|
|
8541
8879
|
|
|
@@ -8553,7 +8891,7 @@ var NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET = exports.NUMBER_OF_UNSUBSCRIBED_
|
|
|
8553
8891
|
|
|
8554
8892
|
var FIXED_LENGTH = exports.FIXED_LENGTH = NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET + _QitchConstants.INT_LENGTH;
|
|
8555
8893
|
}).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/qitch/controlMessageDefinition/UnsubscribeResponseDef.js","/lib/qitch/controlMessageDefinition")
|
|
8556
|
-
},{"../QitchConstants":26,"_process":
|
|
8894
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],39:[function(require,module,exports){
|
|
8557
8895
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8558
8896
|
"use strict";
|
|
8559
8897
|
|
|
@@ -8812,7 +9150,7 @@ var DecodeMessage = function () {
|
|
|
8812
9150
|
|
|
8813
9151
|
exports["default"] = BlockDecoder;
|
|
8814
9152
|
}).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/qitch/decoder/BlockDecoder.js","/lib/qitch/decoder")
|
|
8815
|
-
},{"../BlockHeader":19,"../MessageHeader":24,"../Qitch":25,"../QitchConstants":26,"_process":
|
|
9153
|
+
},{"../BlockHeader":19,"../MessageHeader":24,"../Qitch":25,"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],40:[function(require,module,exports){
|
|
8816
9154
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8817
9155
|
"use strict";
|
|
8818
9156
|
|
|
@@ -8874,7 +9212,7 @@ var MessageDecoder = function () {
|
|
|
8874
9212
|
|
|
8875
9213
|
exports["default"] = MessageDecoder;
|
|
8876
9214
|
}).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/qitch/decoder/MessageDecoder.js","/lib/qitch/decoder")
|
|
8877
|
-
},{"../MessageHeader":24,"../QitchConstants":26,"_process":
|
|
9215
|
+
},{"../MessageHeader":24,"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],41:[function(require,module,exports){
|
|
8878
9216
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
8879
9217
|
"use strict";
|
|
8880
9218
|
|
|
@@ -9118,7 +9456,7 @@ var MessageBlock = exports.MessageBlock = function (_SMessage2) {
|
|
|
9118
9456
|
|
|
9119
9457
|
exports["default"] = QitchDecoder;
|
|
9120
9458
|
}).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/qitch/decoder/QitchDecoder.js","/lib/qitch/decoder")
|
|
9121
|
-
},{"../../SMessage":5,"../../message.js":17,"./BlockDecoder":39,"./MessageDecoder":40,"./controlMessageDecoder/ConnectResponseDecoder":42,"./controlMessageDecoder/ConnectionCloseDecoder":43,"./controlMessageDecoder/HeartbeatDecoder":44,"./controlMessageDecoder/InitialDataSentDecoder":45,"./controlMessageDecoder/ResubscribeMessageDecoder":46,"./controlMessageDecoder/SlowConnectionDecoder":47,"./controlMessageDecoder/StatsResponseDecoder":48,"./controlMessageDecoder/SubscribeResponseDecoder":49,"./controlMessageDecoder/UnsubscribeResponseDecoder":50,"./dataDecoder/BookDeleteDecoder":51,"./dataDecoder/BookOrderDecoder":52,"./dataDecoder/DerivativeInfoDecoder":53,"./dataDecoder/IVGreeksDecoder":54,"./dataDecoder/ImbalanceStatusDecoder":55,"./dataDecoder/IntervalDecoder":56,"./dataDecoder/LastSaleDecoder":57,"./dataDecoder/LimitUpLimitDownDecoder":58,"./dataDecoder/MMQuoteDecoder":59,"./dataDecoder/NethousePositionDecoder":60,"./dataDecoder/PricedataDecoder":61,"./dataDecoder/PurgeBookDecoder":62,"./dataDecoder/QuoteDecoder":63,"./dataDecoder/SymbolInfoDecoder":64,"./dataDecoder/SymbolStatusDecoder":65,"./dataDecoder/TradeDecoder":66,"_process":
|
|
9459
|
+
},{"../../SMessage":5,"../../message.js":17,"./BlockDecoder":39,"./MessageDecoder":40,"./controlMessageDecoder/ConnectResponseDecoder":42,"./controlMessageDecoder/ConnectionCloseDecoder":43,"./controlMessageDecoder/HeartbeatDecoder":44,"./controlMessageDecoder/InitialDataSentDecoder":45,"./controlMessageDecoder/ResubscribeMessageDecoder":46,"./controlMessageDecoder/SlowConnectionDecoder":47,"./controlMessageDecoder/StatsResponseDecoder":48,"./controlMessageDecoder/SubscribeResponseDecoder":49,"./controlMessageDecoder/UnsubscribeResponseDecoder":50,"./dataDecoder/BookDeleteDecoder":51,"./dataDecoder/BookOrderDecoder":52,"./dataDecoder/DerivativeInfoDecoder":53,"./dataDecoder/IVGreeksDecoder":54,"./dataDecoder/ImbalanceStatusDecoder":55,"./dataDecoder/IntervalDecoder":56,"./dataDecoder/LastSaleDecoder":57,"./dataDecoder/LimitUpLimitDownDecoder":58,"./dataDecoder/MMQuoteDecoder":59,"./dataDecoder/NethousePositionDecoder":60,"./dataDecoder/PricedataDecoder":61,"./dataDecoder/PurgeBookDecoder":62,"./dataDecoder/QuoteDecoder":63,"./dataDecoder/SymbolInfoDecoder":64,"./dataDecoder/SymbolStatusDecoder":65,"./dataDecoder/TradeDecoder":66,"_process":119,"buffer":109,"timers":140}],42:[function(require,module,exports){
|
|
9122
9460
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9123
9461
|
"use strict";
|
|
9124
9462
|
|
|
@@ -9168,7 +9506,7 @@ var ConnectResponseDecoder = function () {
|
|
|
9168
9506
|
|
|
9169
9507
|
exports["default"] = ConnectResponseDecoder;
|
|
9170
9508
|
}).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/qitch/decoder/controlMessageDecoder/ConnectResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
|
|
9171
|
-
},{"../../../streamer-api":
|
|
9509
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/ConnectResponseDef":27,"_process":119,"buffer":109,"timers":140}],43:[function(require,module,exports){
|
|
9172
9510
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9173
9511
|
"use strict";
|
|
9174
9512
|
|
|
@@ -9211,7 +9549,7 @@ var ConnectionCloseDecoder = function () {
|
|
|
9211
9549
|
|
|
9212
9550
|
exports["default"] = ConnectionCloseDecoder;
|
|
9213
9551
|
}).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/qitch/decoder/controlMessageDecoder/ConnectionCloseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
|
|
9214
|
-
},{"../../../streamer-api":
|
|
9552
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/ConnectionCloseDef":28,"_process":119,"buffer":109,"timers":140}],44:[function(require,module,exports){
|
|
9215
9553
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9216
9554
|
"use strict";
|
|
9217
9555
|
|
|
@@ -9253,7 +9591,7 @@ var HeartbeatDecoder = function () {
|
|
|
9253
9591
|
|
|
9254
9592
|
exports["default"] = HeartbeatDecoder;
|
|
9255
9593
|
}).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/qitch/decoder/controlMessageDecoder/HeartbeatDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
|
|
9256
|
-
},{"../../../streamer-api":
|
|
9594
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/HeartbeatDef":30,"_process":119,"buffer":109,"timers":140}],45:[function(require,module,exports){
|
|
9257
9595
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9258
9596
|
"use strict";
|
|
9259
9597
|
|
|
@@ -9296,7 +9634,7 @@ var InitialDataSentDecoder = function () {
|
|
|
9296
9634
|
|
|
9297
9635
|
exports["default"] = InitialDataSentDecoder;
|
|
9298
9636
|
}).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/qitch/decoder/controlMessageDecoder/InitialDataSentDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
|
|
9299
|
-
},{"../../../streamer-api":
|
|
9637
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/InitialDataSentDef":31,"_process":119,"buffer":109,"timers":140}],46:[function(require,module,exports){
|
|
9300
9638
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9301
9639
|
"use strict";
|
|
9302
9640
|
|
|
@@ -9338,7 +9676,7 @@ var ResubscribeMessageDecoder = function () {
|
|
|
9338
9676
|
|
|
9339
9677
|
exports["default"] = ResubscribeMessageDecoder;
|
|
9340
9678
|
}).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/qitch/decoder/controlMessageDecoder/ResubscribeMessageDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
|
|
9341
|
-
},{"../../../streamer-api":
|
|
9679
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/ResubscribeMessageDef":32,"_process":119,"buffer":109,"timers":140}],47:[function(require,module,exports){
|
|
9342
9680
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9343
9681
|
"use strict";
|
|
9344
9682
|
|
|
@@ -9381,7 +9719,7 @@ var SlowConnectionDecoder = function () {
|
|
|
9381
9719
|
|
|
9382
9720
|
exports["default"] = SlowConnectionDecoder;
|
|
9383
9721
|
}).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/qitch/decoder/controlMessageDecoder/SlowConnectionDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
|
|
9384
|
-
},{"../../../streamer-api":
|
|
9722
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/SlowConnectionDef":33,"_process":119,"buffer":109,"timers":140}],48:[function(require,module,exports){
|
|
9385
9723
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9386
9724
|
"use strict";
|
|
9387
9725
|
|
|
@@ -9431,7 +9769,7 @@ var StatsResponseDecoder = function () {
|
|
|
9431
9769
|
|
|
9432
9770
|
exports["default"] = StatsResponseDecoder;
|
|
9433
9771
|
}).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/qitch/decoder/controlMessageDecoder/StatsResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
|
|
9434
|
-
},{"../../../streamer-api":
|
|
9772
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/StatsResponseDef":35,"_process":119,"buffer":109,"timers":140}],49:[function(require,module,exports){
|
|
9435
9773
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9436
9774
|
"use strict";
|
|
9437
9775
|
|
|
@@ -9502,7 +9840,7 @@ var SubscribeResponseDecoder = function () {
|
|
|
9502
9840
|
|
|
9503
9841
|
exports["default"] = SubscribeResponseDecoder;
|
|
9504
9842
|
}).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/qitch/decoder/controlMessageDecoder/SubscribeResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
|
|
9505
|
-
},{"../../../streamer-api":
|
|
9843
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeResponseDef":37,"_process":119,"buffer":109,"timers":140}],50:[function(require,module,exports){
|
|
9506
9844
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9507
9845
|
"use strict";
|
|
9508
9846
|
|
|
@@ -9560,7 +9898,7 @@ var UnsubscribeResponseDecoder = function () {
|
|
|
9560
9898
|
|
|
9561
9899
|
exports["default"] = UnsubscribeResponseDecoder;
|
|
9562
9900
|
}).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/qitch/decoder/controlMessageDecoder/UnsubscribeResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
|
|
9563
|
-
},{"../../../streamer-api":
|
|
9901
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/UnsubscribeResponseDef":38,"_process":119,"buffer":109,"timers":140}],51:[function(require,module,exports){
|
|
9564
9902
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9565
9903
|
"use strict";
|
|
9566
9904
|
|
|
@@ -9604,7 +9942,7 @@ var BookDeleteDecoder = function () {
|
|
|
9604
9942
|
|
|
9605
9943
|
exports["default"] = BookDeleteDecoder;
|
|
9606
9944
|
}).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/qitch/decoder/dataDecoder/BookDeleteDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
9607
|
-
},{"../../../streamer-api":
|
|
9945
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/BookDeleteDef":71,"_process":119,"buffer":109,"timers":140}],52:[function(require,module,exports){
|
|
9608
9946
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9609
9947
|
"use strict";
|
|
9610
9948
|
|
|
@@ -9659,7 +9997,7 @@ var BookOrderDecoder = function () {
|
|
|
9659
9997
|
|
|
9660
9998
|
exports["default"] = BookOrderDecoder;
|
|
9661
9999
|
}).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/qitch/decoder/dataDecoder/BookOrderDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
9662
|
-
},{"../../../streamer-api":
|
|
10000
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/BookOrderDef":72,"_process":119,"buffer":109,"timers":140}],53:[function(require,module,exports){
|
|
9663
10001
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9664
10002
|
"use strict";
|
|
9665
10003
|
|
|
@@ -9708,7 +10046,7 @@ var DerivativeInfoDecoder = function () {
|
|
|
9708
10046
|
|
|
9709
10047
|
exports["default"] = DerivativeInfoDecoder;
|
|
9710
10048
|
}).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/qitch/decoder/dataDecoder/DerivativeInfoDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
9711
|
-
},{"../../../streamer-api":
|
|
10049
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/DerivativeInfoDef":73,"_process":119,"buffer":109,"timers":140}],54:[function(require,module,exports){
|
|
9712
10050
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9713
10051
|
"use strict";
|
|
9714
10052
|
|
|
@@ -9755,6 +10093,9 @@ var IVGreeksDecoder = function () {
|
|
|
9755
10093
|
out.mark = _Qitch2["default"].dec8double(src, offset + def.MARK_OFFSET);
|
|
9756
10094
|
out.intrinsicValue = _Qitch2["default"].dec8double(src, offset + def.INTRINSIC_VALUE_OFFSET);
|
|
9757
10095
|
out.extrinsicValue = _Qitch2["default"].dec8double(src, offset + def.EXTRINSIC_VALUE_OFFSET);
|
|
10096
|
+
out.previousMark = _Qitch2["default"].dec8double(src, offset + def.PREVIOUS_MARK_OFFSET);
|
|
10097
|
+
out.markChange = _Qitch2["default"].dec8double(src, offset + def.MARK_CHANGE_OFFSET);
|
|
10098
|
+
out.markChangePercent = _Qitch2["default"].dec8double(src, offset + def.MARK_CHANGE_PERCENT_OFFSET);
|
|
9758
10099
|
return out;
|
|
9759
10100
|
};
|
|
9760
10101
|
|
|
@@ -9763,7 +10104,7 @@ var IVGreeksDecoder = function () {
|
|
|
9763
10104
|
|
|
9764
10105
|
exports["default"] = IVGreeksDecoder;
|
|
9765
10106
|
}).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/qitch/decoder/dataDecoder/IVGreeksDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
9766
|
-
},{"../../../streamer-api":
|
|
10107
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/IVGreeksDef":74,"_process":119,"buffer":109,"timers":140}],55:[function(require,module,exports){
|
|
9767
10108
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9768
10109
|
"use strict";
|
|
9769
10110
|
|
|
@@ -9814,7 +10155,7 @@ var ImbalanceStatusDecoder = function () {
|
|
|
9814
10155
|
|
|
9815
10156
|
exports["default"] = ImbalanceStatusDecoder;
|
|
9816
10157
|
}).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/qitch/decoder/dataDecoder/ImbalanceStatusDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
9817
|
-
},{"../../../streamer-api":
|
|
10158
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/ImbalanceStatusDef":75,"_process":119,"buffer":109,"timers":140}],56:[function(require,module,exports){
|
|
9818
10159
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9819
10160
|
"use strict";
|
|
9820
10161
|
|
|
@@ -9882,7 +10223,7 @@ var IntervalDecoder = function () {
|
|
|
9882
10223
|
|
|
9883
10224
|
exports["default"] = IntervalDecoder;
|
|
9884
10225
|
}).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/qitch/decoder/dataDecoder/IntervalDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
9885
|
-
},{"../../../streamer-api":
|
|
10226
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/IntervalDef":76,"_process":119,"bignumber.js":106,"buffer":109,"jsbi":116,"timers":140}],57:[function(require,module,exports){
|
|
9886
10227
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9887
10228
|
"use strict";
|
|
9888
10229
|
|
|
@@ -9923,6 +10264,7 @@ var LastSaleDecoder = function () {
|
|
|
9923
10264
|
out.tick = _Qitch2["default"].tick(src, offset + def.TICK_OFFSET);
|
|
9924
10265
|
out.change = this._change(out);
|
|
9925
10266
|
out.percentChange = this._percentChange(out);
|
|
10267
|
+
out.lastTradeExcode = _Qitch2["default"].excode(src, offset + def.LASTTRADE_EXCODE_OFFSET);
|
|
9926
10268
|
return out;
|
|
9927
10269
|
};
|
|
9928
10270
|
|
|
@@ -9945,7 +10287,7 @@ var LastSaleDecoder = function () {
|
|
|
9945
10287
|
|
|
9946
10288
|
exports["default"] = LastSaleDecoder;
|
|
9947
10289
|
}).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/qitch/decoder/dataDecoder/LastSaleDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
9948
|
-
},{"../../../streamer-api":
|
|
10290
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/LastSaleDef":77,"_process":119,"buffer":109,"timers":140}],58:[function(require,module,exports){
|
|
9949
10291
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
9950
10292
|
"use strict";
|
|
9951
10293
|
|
|
@@ -9995,7 +10337,7 @@ var LimitUpLimitDownDecoder = function () {
|
|
|
9995
10337
|
|
|
9996
10338
|
exports["default"] = LimitUpLimitDownDecoder;
|
|
9997
10339
|
}).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/qitch/decoder/dataDecoder/LimitUpLimitDownDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
9998
|
-
},{"../../../streamer-api":
|
|
10340
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/LimitUpLimitDownDef":78,"_process":119,"buffer":109,"timers":140}],59:[function(require,module,exports){
|
|
9999
10341
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10000
10342
|
"use strict";
|
|
10001
10343
|
|
|
@@ -10047,7 +10389,7 @@ var MMQuoteDecoder = function () {
|
|
|
10047
10389
|
|
|
10048
10390
|
exports["default"] = MMQuoteDecoder;
|
|
10049
10391
|
}).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/qitch/decoder/dataDecoder/MMQuoteDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
10050
|
-
},{"../../../streamer-api":
|
|
10392
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/MMQuoteDef":79,"_process":119,"buffer":109,"timers":140}],60:[function(require,module,exports){
|
|
10051
10393
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10052
10394
|
"use strict";
|
|
10053
10395
|
|
|
@@ -10103,7 +10445,7 @@ var NethousePositionDecoder = function () {
|
|
|
10103
10445
|
|
|
10104
10446
|
exports["default"] = NethousePositionDecoder;
|
|
10105
10447
|
}).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/qitch/decoder/dataDecoder/NethousePositionDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
10106
|
-
},{"../../../streamer-api":
|
|
10448
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/NethousePositionDef":80,"_process":119,"buffer":109,"timers":140}],61:[function(require,module,exports){
|
|
10107
10449
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10108
10450
|
"use strict";
|
|
10109
10451
|
|
|
@@ -10170,6 +10512,7 @@ var PricedataDecoder = function () {
|
|
|
10170
10512
|
out.postMarketChange = _Qitch2["default"].dec8double(src, offset + def.POSTMARKETCHANGE_OFFSET);
|
|
10171
10513
|
out.postMarketPercentChange = this._postmarketPercentChange(out);
|
|
10172
10514
|
out.lastTradeExcode = _Qitch2["default"].excode(src, offset + def.LASTTRADEEXCODE_OFFSET);
|
|
10515
|
+
out.currencyID = _Qitch2["default"].currencyid(src, offset + def.CURRENCYID_OFFSET);
|
|
10173
10516
|
|
|
10174
10517
|
return out;
|
|
10175
10518
|
};
|
|
@@ -10211,7 +10554,7 @@ var PricedataDecoder = function () {
|
|
|
10211
10554
|
|
|
10212
10555
|
exports["default"] = PricedataDecoder;
|
|
10213
10556
|
}).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/qitch/decoder/dataDecoder/PricedataDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
10214
|
-
},{"../../../streamer-api.js":
|
|
10557
|
+
},{"../../../streamer-api.js":96,"../../Qitch":25,"../../marketDataDefinition/PricedataDef":81,"_process":119,"buffer":109,"timers":140}],62:[function(require,module,exports){
|
|
10215
10558
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10216
10559
|
"use strict";
|
|
10217
10560
|
|
|
@@ -10253,7 +10596,7 @@ var PurgeBookDecoder = function () {
|
|
|
10253
10596
|
|
|
10254
10597
|
exports["default"] = PurgeBookDecoder;
|
|
10255
10598
|
}).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/qitch/decoder/dataDecoder/PurgeBookDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
10256
|
-
},{"../../../streamer-api":
|
|
10599
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/PurgeBookDef":82,"_process":119,"buffer":109,"timers":140}],63:[function(require,module,exports){
|
|
10257
10600
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10258
10601
|
"use strict";
|
|
10259
10602
|
|
|
@@ -10306,7 +10649,7 @@ var QuoteDecoder = function () {
|
|
|
10306
10649
|
|
|
10307
10650
|
exports["default"] = QuoteDecoder;
|
|
10308
10651
|
}).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/qitch/decoder/dataDecoder/QuoteDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
10309
|
-
},{"../../../streamer-api":
|
|
10652
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/QuoteDef":83,"_process":119,"buffer":109,"timers":140}],64:[function(require,module,exports){
|
|
10310
10653
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10311
10654
|
"use strict";
|
|
10312
10655
|
|
|
@@ -10359,7 +10702,7 @@ var SymbolInfoDecoder = function () {
|
|
|
10359
10702
|
|
|
10360
10703
|
exports["default"] = SymbolInfoDecoder;
|
|
10361
10704
|
}).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/qitch/decoder/dataDecoder/SymbolInfoDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
10362
|
-
},{"../../../streamer-api.js":
|
|
10705
|
+
},{"../../../streamer-api.js":96,"../../Qitch":25,"../../marketDataDefinition/SymbolInfoDef":84,"_process":119,"buffer":109,"timers":140}],65:[function(require,module,exports){
|
|
10363
10706
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10364
10707
|
"use strict";
|
|
10365
10708
|
|
|
@@ -10408,7 +10751,7 @@ var SymbolStatusDecoder = function () {
|
|
|
10408
10751
|
|
|
10409
10752
|
exports["default"] = SymbolStatusDecoder;
|
|
10410
10753
|
}).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/qitch/decoder/dataDecoder/SymbolStatusDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
10411
|
-
},{"../../../streamer-api":
|
|
10754
|
+
},{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/SymbolStatusDef":85,"_process":119,"buffer":109,"timers":140}],66:[function(require,module,exports){
|
|
10412
10755
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10413
10756
|
"use strict";
|
|
10414
10757
|
|
|
@@ -10464,7 +10807,7 @@ var TradeDecoder = function () {
|
|
|
10464
10807
|
|
|
10465
10808
|
exports["default"] = TradeDecoder;
|
|
10466
10809
|
}).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/qitch/decoder/dataDecoder/TradeDecoder.js","/lib/qitch/decoder/dataDecoder")
|
|
10467
|
-
},{"../../../streamer-api.js":
|
|
10810
|
+
},{"../../../streamer-api.js":96,"../../Qitch":25,"../../marketDataDefinition/TradeDef":86,"_process":119,"buffer":109,"timers":140}],67:[function(require,module,exports){
|
|
10468
10811
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10469
10812
|
"use strict";
|
|
10470
10813
|
|
|
@@ -10576,7 +10919,7 @@ var MessageEncoder = function () {
|
|
|
10576
10919
|
|
|
10577
10920
|
exports["default"] = QitchEncoder;
|
|
10578
10921
|
}).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/qitch/encoder/QitchEncoder.js","/lib/qitch/encoder")
|
|
10579
|
-
},{"../../SMessage":5,"../../streamer-api":
|
|
10922
|
+
},{"../../SMessage":5,"../../streamer-api":96,"../../streamer-utils":98,"../BlockHeader":19,"../MessageHeader":24,"../QitchConstants":26,"./controlMessageEncoder/FlowMessageEncoder":68,"./controlMessageEncoder/StatsMessageEncoder":69,"./controlMessageEncoder/SubscribeMessageEncoder":70,"_process":119,"buffer":109,"timers":140}],68:[function(require,module,exports){
|
|
10580
10923
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10581
10924
|
"use strict";
|
|
10582
10925
|
|
|
@@ -10619,7 +10962,7 @@ var FlowMessageEncoder = function () {
|
|
|
10619
10962
|
|
|
10620
10963
|
exports["default"] = FlowMessageEncoder;
|
|
10621
10964
|
}).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/qitch/encoder/controlMessageEncoder/FlowMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")
|
|
10622
|
-
},{"../../Qitch":25,"../../controlMessageDefinition/FlowMessageDef":29,"_process":
|
|
10965
|
+
},{"../../Qitch":25,"../../controlMessageDefinition/FlowMessageDef":29,"_process":119,"buffer":109,"timers":140}],69:[function(require,module,exports){
|
|
10623
10966
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10624
10967
|
"use strict";
|
|
10625
10968
|
|
|
@@ -10662,7 +11005,7 @@ var StatsMessageEncoder = function () {
|
|
|
10662
11005
|
|
|
10663
11006
|
exports["default"] = StatsMessageEncoder;
|
|
10664
11007
|
}).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/qitch/encoder/controlMessageEncoder/StatsMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")
|
|
10665
|
-
},{"../../Qitch":25,"../../controlMessageDefinition/StatsMessageDef":34,"_process":
|
|
11008
|
+
},{"../../Qitch":25,"../../controlMessageDefinition/StatsMessageDef":34,"_process":119,"buffer":109,"timers":140}],70:[function(require,module,exports){
|
|
10666
11009
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10667
11010
|
"use strict";
|
|
10668
11011
|
|
|
@@ -10731,7 +11074,7 @@ var SubscribeMessageEncoder = function () {
|
|
|
10731
11074
|
|
|
10732
11075
|
exports["default"] = SubscribeMessageEncoder;
|
|
10733
11076
|
}).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/qitch/encoder/controlMessageEncoder/SubscribeMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")
|
|
10734
|
-
},{"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeMessageDef":36,"_process":
|
|
11077
|
+
},{"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeMessageDef":36,"_process":119,"buffer":109,"timers":140}],71:[function(require,module,exports){
|
|
10735
11078
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10736
11079
|
"use strict";
|
|
10737
11080
|
|
|
@@ -10747,7 +11090,7 @@ var SYMBOL_OFFSET = exports.SYMBOL_OFFSET = TIMESTAMP_OFFSET + _QitchConstants.T
|
|
|
10747
11090
|
var ORDER_REFERENCE_OFFSET = exports.ORDER_REFERENCE_OFFSET = SYMBOL_OFFSET + _QitchConstants.LOCATECODE_LENGTH;
|
|
10748
11091
|
var LENGTH = exports.LENGTH = ORDER_REFERENCE_OFFSET + _QitchConstants.ORDER_REFERENCE_LENGTH;
|
|
10749
11092
|
}).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/qitch/marketDataDefinition/BookDeleteDef.js","/lib/qitch/marketDataDefinition")
|
|
10750
|
-
},{"../QitchConstants":26,"_process":
|
|
11093
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],72:[function(require,module,exports){
|
|
10751
11094
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10752
11095
|
"use strict";
|
|
10753
11096
|
|
|
@@ -10868,7 +11211,7 @@ BookOrderFlags.prototype.PRICE_MUSTBEFILLED_MASK = 0x40000000;
|
|
|
10868
11211
|
BookOrderFlags.prototype.FUTURESETTLEMENT_MASK = 0x0800;
|
|
10869
11212
|
BookOrderFlags.prototype.NEXTDAYSETTLEMENT_MASK = 0x1000;
|
|
10870
11213
|
}).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/qitch/marketDataDefinition/BookOrderDef.js","/lib/qitch/marketDataDefinition")
|
|
10871
|
-
},{"../QitchConstants":26,"_process":
|
|
11214
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],73:[function(require,module,exports){
|
|
10872
11215
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10873
11216
|
"use strict";
|
|
10874
11217
|
|
|
@@ -10889,12 +11232,12 @@ var CALLPUTINDICATOR_OFFSET = exports.CALLPUTINDICATOR_OFFSET = CONTRACTSIZE_OFF
|
|
|
10889
11232
|
var MINTICKSIZE_OFFSET = exports.MINTICKSIZE_OFFSET = CALLPUTINDICATOR_OFFSET + _QitchConstants.ASCIICHAR_LENGTH;
|
|
10890
11233
|
var LENGTH = exports.LENGTH = MINTICKSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
10891
11234
|
}).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/qitch/marketDataDefinition/DerivativeInfoDef.js","/lib/qitch/marketDataDefinition")
|
|
10892
|
-
},{"../QitchConstants":26,"_process":
|
|
11235
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],74:[function(require,module,exports){
|
|
10893
11236
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10894
11237
|
"use strict";
|
|
10895
11238
|
|
|
10896
11239
|
exports.__esModule = true;
|
|
10897
|
-
exports.LENGTH = exports.EXTRINSIC_VALUE_OFFSET = exports.INTRINSIC_VALUE_OFFSET = exports.MARK_OFFSET = exports.LAST_CALCULATION_OFFSET = exports.ASK_IMPLIED_VOLATILITY_OFFSET = exports.BID_IMPLIED_VOLATILITY_OFFSET = exports.IMPLIED_VOLATILITY_CHANGE_OFFSET = exports.IMPLIED_VOLATILITY_OFFSET = exports.THETA_OFFSET = exports.RHO_OFFSET = exports.VEGA_OFFSET = exports.GAMMA_OFFSET = exports.DELTA_OFFSET = exports.LOCATECODE_OFFSET = exports.TYPEID = undefined;
|
|
11240
|
+
exports.LENGTH = exports.MARK_CHANGE_PERCENT_OFFSET = exports.MARK_CHANGE_OFFSET = exports.PREVIOUS_MARK_OFFSET = exports.EXTRINSIC_VALUE_OFFSET = exports.INTRINSIC_VALUE_OFFSET = exports.MARK_OFFSET = exports.LAST_CALCULATION_OFFSET = exports.ASK_IMPLIED_VOLATILITY_OFFSET = exports.BID_IMPLIED_VOLATILITY_OFFSET = exports.IMPLIED_VOLATILITY_CHANGE_OFFSET = exports.IMPLIED_VOLATILITY_OFFSET = exports.THETA_OFFSET = exports.RHO_OFFSET = exports.VEGA_OFFSET = exports.GAMMA_OFFSET = exports.DELTA_OFFSET = exports.LOCATECODE_OFFSET = exports.TYPEID = undefined;
|
|
10898
11241
|
|
|
10899
11242
|
var _QitchConstants = require("../QitchConstants");
|
|
10900
11243
|
|
|
@@ -10914,10 +11257,13 @@ var LAST_CALCULATION_OFFSET = exports.LAST_CALCULATION_OFFSET = ASK_IMPLIED_VOLA
|
|
|
10914
11257
|
var MARK_OFFSET = exports.MARK_OFFSET = LAST_CALCULATION_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
|
|
10915
11258
|
var INTRINSIC_VALUE_OFFSET = exports.INTRINSIC_VALUE_OFFSET = MARK_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
10916
11259
|
var EXTRINSIC_VALUE_OFFSET = exports.EXTRINSIC_VALUE_OFFSET = INTRINSIC_VALUE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
11260
|
+
var PREVIOUS_MARK_OFFSET = exports.PREVIOUS_MARK_OFFSET = EXTRINSIC_VALUE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
11261
|
+
var MARK_CHANGE_OFFSET = exports.MARK_CHANGE_OFFSET = PREVIOUS_MARK_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
11262
|
+
var MARK_CHANGE_PERCENT_OFFSET = exports.MARK_CHANGE_PERCENT_OFFSET = MARK_CHANGE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
10917
11263
|
|
|
10918
|
-
var LENGTH = exports.LENGTH =
|
|
11264
|
+
var LENGTH = exports.LENGTH = MARK_CHANGE_PERCENT_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
10919
11265
|
}).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/qitch/marketDataDefinition/IVGreeksDef.js","/lib/qitch/marketDataDefinition")
|
|
10920
|
-
},{"../QitchConstants":26,"_process":
|
|
11266
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],75:[function(require,module,exports){
|
|
10921
11267
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10922
11268
|
"use strict";
|
|
10923
11269
|
|
|
@@ -10940,7 +11286,7 @@ var FARINDICATIVEPRICE_OFFSET = exports.FARINDICATIVEPRICE_OFFSET = NEARINDICATI
|
|
|
10940
11286
|
var PRICEVARIATION_OFFSET = exports.PRICEVARIATION_OFFSET = FARINDICATIVEPRICE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
10941
11287
|
var LENGTH = exports.LENGTH = PRICEVARIATION_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
10942
11288
|
}).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/qitch/marketDataDefinition/ImbalanceStatusDef.js","/lib/qitch/marketDataDefinition")
|
|
10943
|
-
},{"../QitchConstants":26,"_process":
|
|
11289
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],76:[function(require,module,exports){
|
|
10944
11290
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10945
11291
|
"use strict";
|
|
10946
11292
|
|
|
@@ -10965,12 +11311,12 @@ var TRADEVALUE_OFFSET = exports.TRADEVALUE_OFFSET = LASTTIME_OFFSET + _QitchCons
|
|
|
10965
11311
|
var LONGDECIMALVOLUME_OFFSET = exports.LONGDECIMALVOLUME_OFFSET = TRADEVALUE_OFFSET + _QitchConstants.LONG_LENGTH;
|
|
10966
11312
|
var LENGTH = exports.LENGTH = LONGDECIMALVOLUME_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
10967
11313
|
}).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/qitch/marketDataDefinition/IntervalDef.js","/lib/qitch/marketDataDefinition")
|
|
10968
|
-
},{"../QitchConstants":26,"_process":
|
|
11314
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],77:[function(require,module,exports){
|
|
10969
11315
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10970
11316
|
"use strict";
|
|
10971
11317
|
|
|
10972
11318
|
exports.__esModule = true;
|
|
10973
|
-
exports.LENGTH = exports.TICK_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = exports.PREVCLOSE_OFFSET = exports.LAST_OFFSET = exports.SYMBOL_OFFSET = exports.TIMESTAMP_OFFSET = exports.TYPEID = undefined;
|
|
11319
|
+
exports.LENGTH = exports.LASTTRADE_EXCODE_OFFSET = exports.TICK_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = exports.PREVCLOSE_OFFSET = exports.LAST_OFFSET = exports.SYMBOL_OFFSET = exports.TIMESTAMP_OFFSET = exports.TYPEID = undefined;
|
|
10974
11320
|
|
|
10975
11321
|
var _QitchConstants = require("../QitchConstants");
|
|
10976
11322
|
|
|
@@ -10982,9 +11328,10 @@ var LAST_OFFSET = exports.LAST_OFFSET = SYMBOL_OFFSET + _QitchConstants.LOCATECO
|
|
|
10982
11328
|
var PREVCLOSE_OFFSET = exports.PREVCLOSE_OFFSET = LAST_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
10983
11329
|
var ACCUMULATEDVOLUME_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = PREVCLOSE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
10984
11330
|
var TICK_OFFSET = exports.TICK_OFFSET = ACCUMULATEDVOLUME_OFFSET + _QitchConstants.LONG_LENGTH;
|
|
10985
|
-
var
|
|
11331
|
+
var LASTTRADE_EXCODE_OFFSET = exports.LASTTRADE_EXCODE_OFFSET = TICK_OFFSET + _QitchConstants.TICK_LENGTH;
|
|
11332
|
+
var LENGTH = exports.LENGTH = LASTTRADE_EXCODE_OFFSET + _QitchConstants.EXCODE_LENGTH;
|
|
10986
11333
|
}).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/qitch/marketDataDefinition/LastSaleDef.js","/lib/qitch/marketDataDefinition")
|
|
10987
|
-
},{"../QitchConstants":26,"_process":
|
|
11334
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],78:[function(require,module,exports){
|
|
10988
11335
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
10989
11336
|
"use strict";
|
|
10990
11337
|
|
|
@@ -11024,7 +11371,7 @@ var LimitUpLimitDownFlags = exports.LimitUpLimitDownFlags = function () {
|
|
|
11024
11371
|
LimitUpLimitDownFlags.prototype.BID_NOT_EXECUTABLE = 0x1;
|
|
11025
11372
|
LimitUpLimitDownFlags.prototype.ASK_NOT_EXECUTABLE = 0x2;
|
|
11026
11373
|
}).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/qitch/marketDataDefinition/LimitUpLimitDownDef.js","/lib/qitch/marketDataDefinition")
|
|
11027
|
-
},{"../QitchConstants":26,"_process":
|
|
11374
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],79:[function(require,module,exports){
|
|
11028
11375
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11029
11376
|
"use strict";
|
|
11030
11377
|
|
|
@@ -11050,7 +11397,7 @@ var DECIMALBIDSIZE_OFFSET = exports.DECIMALBIDSIZE_OFFSET = SHARESPERSIZEUNIT_OF
|
|
|
11050
11397
|
var DECIMALASKSIZE_OFFSET = exports.DECIMALASKSIZE_OFFSET = DECIMALBIDSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
11051
11398
|
var LENGTH = exports.LENGTH = DECIMALASKSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
11052
11399
|
}).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/qitch/marketDataDefinition/MMQuoteDef.js","/lib/qitch/marketDataDefinition")
|
|
11053
|
-
},{"../QitchConstants":26,"_process":
|
|
11400
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],80:[function(require,module,exports){
|
|
11054
11401
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11055
11402
|
"use strict";
|
|
11056
11403
|
|
|
@@ -11078,12 +11425,12 @@ var BUYBLOCKTRANSACTIONS_OFFSET = exports.BUYBLOCKTRANSACTIONS_OFFSET = SELLTRAN
|
|
|
11078
11425
|
var SELLBLOCKTRANSACTIONS_OFFSET = exports.SELLBLOCKTRANSACTIONS_OFFSET = BUYBLOCKTRANSACTIONS_OFFSET + _QitchConstants.INT_LENGTH;
|
|
11079
11426
|
var LENGTH = exports.LENGTH = SELLBLOCKTRANSACTIONS_OFFSET + _QitchConstants.INT_LENGTH;
|
|
11080
11427
|
}).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/qitch/marketDataDefinition/NethousePositionDef.js","/lib/qitch/marketDataDefinition")
|
|
11081
|
-
},{"../QitchConstants":26,"_process":
|
|
11428
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],81:[function(require,module,exports){
|
|
11082
11429
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11083
11430
|
"use strict";
|
|
11084
11431
|
|
|
11085
11432
|
exports.__esModule = true;
|
|
11086
|
-
exports.PricedataFlags = exports.LENGTH = exports.DECIMALLASTTRADESIZE_OFFSET = exports.DECIMALPOSTMARKETVOLUME_OFFSET = exports.DECIMALPREMARKETVOLUME_OFFSET = exports.DECIMALACCUMULATEDVOLUME_OFFSET = exports.LASTTRADEEXCODE_OFFSET = exports.POSTMARKETCHANGE_OFFSET = exports.POSTMARKETVOLUME_OFFSET = exports.POSTMARKETLASTPRICE_OFFSET = exports.POSTMARKETTRADETIME_OFFSET = exports.PREMARKETCHANGE_OFFSET = exports.PREMARKETVOLUME_OFFSET = exports.PREMARKETLASTPRICE_OFFSET = exports.PREMARKETTRADETIME_OFFSET = exports.TWAP_OFFSET = exports.VWAP_OFFSET = exports.FLAGS_OFFSET = exports.ACCUMULATEDTRADEVALUE_OFFSET = exports.TRADECOUNT_OFFSET = exports.CLOSE_OFFSET = exports.LASTTRADESIZE_OFFSET = exports.TICK_OFFSET = exports.LASTTRADETIME_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = exports.LOW_OFFSET = exports.HIGH_OFFSET = exports.OPEN_OFFSET = exports.PREVCLOSE_OFFSET = exports.LAST_OFFSET = exports.SYMBOL_OFFSET = exports.TIMESTAMP_OFFSET = exports.TYPEID = undefined;
|
|
11433
|
+
exports.PricedataFlags = exports.LENGTH = exports.CURRENCYID_OFFSET = exports.DECIMALLASTTRADESIZE_OFFSET = exports.DECIMALPOSTMARKETVOLUME_OFFSET = exports.DECIMALPREMARKETVOLUME_OFFSET = exports.DECIMALACCUMULATEDVOLUME_OFFSET = exports.LASTTRADEEXCODE_OFFSET = exports.POSTMARKETCHANGE_OFFSET = exports.POSTMARKETVOLUME_OFFSET = exports.POSTMARKETLASTPRICE_OFFSET = exports.POSTMARKETTRADETIME_OFFSET = exports.PREMARKETCHANGE_OFFSET = exports.PREMARKETVOLUME_OFFSET = exports.PREMARKETLASTPRICE_OFFSET = exports.PREMARKETTRADETIME_OFFSET = exports.TWAP_OFFSET = exports.VWAP_OFFSET = exports.FLAGS_OFFSET = exports.ACCUMULATEDTRADEVALUE_OFFSET = exports.TRADECOUNT_OFFSET = exports.CLOSE_OFFSET = exports.LASTTRADESIZE_OFFSET = exports.TICK_OFFSET = exports.LASTTRADETIME_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = exports.LOW_OFFSET = exports.HIGH_OFFSET = exports.OPEN_OFFSET = exports.PREVCLOSE_OFFSET = exports.LAST_OFFSET = exports.SYMBOL_OFFSET = exports.TIMESTAMP_OFFSET = exports.TYPEID = undefined;
|
|
11087
11434
|
|
|
11088
11435
|
var _QitchConstants = require("../QitchConstants");
|
|
11089
11436
|
|
|
@@ -11123,7 +11470,9 @@ var DECIMALPREMARKETVOLUME_OFFSET = exports.DECIMALPREMARKETVOLUME_OFFSET = DECI
|
|
|
11123
11470
|
var DECIMALPOSTMARKETVOLUME_OFFSET = exports.DECIMALPOSTMARKETVOLUME_OFFSET = DECIMALPREMARKETVOLUME_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
11124
11471
|
var DECIMALLASTTRADESIZE_OFFSET = exports.DECIMALLASTTRADESIZE_OFFSET = DECIMALPOSTMARKETVOLUME_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
11125
11472
|
|
|
11126
|
-
var
|
|
11473
|
+
var CURRENCYID_OFFSET = exports.CURRENCYID_OFFSET = DECIMALLASTTRADESIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
11474
|
+
|
|
11475
|
+
var LENGTH = exports.LENGTH = CURRENCYID_OFFSET + _QitchConstants.CURRENCYID_LENGTH;
|
|
11127
11476
|
|
|
11128
11477
|
var PricedataFlags = exports.PricedataFlags = function () {
|
|
11129
11478
|
function PricedataFlags() {
|
|
@@ -11144,7 +11493,7 @@ var PricedataFlags = exports.PricedataFlags = function () {
|
|
|
11144
11493
|
PricedataFlags.prototype.ANNUALHIGH_MASK = 0x01;
|
|
11145
11494
|
PricedataFlags.prototype.ANNUALLOW_MASK = 0x02;
|
|
11146
11495
|
}).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/qitch/marketDataDefinition/PricedataDef.js","/lib/qitch/marketDataDefinition")
|
|
11147
|
-
},{"../QitchConstants":26,"_process":
|
|
11496
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],82:[function(require,module,exports){
|
|
11148
11497
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11149
11498
|
"use strict";
|
|
11150
11499
|
|
|
@@ -11158,7 +11507,7 @@ var TYPEID = exports.TYPEID = 6;
|
|
|
11158
11507
|
var SYMBOL_OFFSET = exports.SYMBOL_OFFSET = 0;
|
|
11159
11508
|
var LENGTH = exports.LENGTH = SYMBOL_OFFSET + _QitchConstants.LOCATECODE_LENGTH;
|
|
11160
11509
|
}).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/qitch/marketDataDefinition/PurgeBookDef.js","/lib/qitch/marketDataDefinition")
|
|
11161
|
-
},{"../QitchConstants":26,"_process":
|
|
11510
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],83:[function(require,module,exports){
|
|
11162
11511
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11163
11512
|
"use strict";
|
|
11164
11513
|
|
|
@@ -11185,7 +11534,7 @@ var DECIMALASKSIZE_OFFSET = exports.DECIMALASKSIZE_OFFSET = SHARESPERSIZEUNIT_OF
|
|
|
11185
11534
|
var DECIMALBIDSIZE_OFFSET = exports.DECIMALBIDSIZE_OFFSET = DECIMALASKSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
11186
11535
|
var LENGTH = exports.LENGTH = DECIMALBIDSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
|
|
11187
11536
|
}).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/qitch/marketDataDefinition/QuoteDef.js","/lib/qitch/marketDataDefinition")
|
|
11188
|
-
},{"../QitchConstants":26,"_process":
|
|
11537
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],84:[function(require,module,exports){
|
|
11189
11538
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11190
11539
|
"use strict";
|
|
11191
11540
|
|
|
@@ -11209,7 +11558,7 @@ var CAVEATEMPTOR_OFFSET = exports.CAVEATEMPTOR_OFFSET = PQE_OFFSET + _QitchConst
|
|
|
11209
11558
|
var BOARDLOTSIZE_OFFSET = exports.BOARDLOTSIZE_OFFSET = CAVEATEMPTOR_OFFSET + _QitchConstants.BYTE_LENGTH;
|
|
11210
11559
|
var LENGTH = exports.LENGTH = BOARDLOTSIZE_OFFSET + _QitchConstants.INT_LENGTH;
|
|
11211
11560
|
}).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/qitch/marketDataDefinition/SymbolInfoDef.js","/lib/qitch/marketDataDefinition")
|
|
11212
|
-
},{"../QitchConstants":26,"_process":
|
|
11561
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],85:[function(require,module,exports){
|
|
11213
11562
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11214
11563
|
"use strict";
|
|
11215
11564
|
|
|
@@ -11231,7 +11580,7 @@ var NOTE_OFFSET = exports.NOTE_OFFSET = OPENINGTIME_OFFSET + _QitchConstants.TIM
|
|
|
11231
11580
|
|
|
11232
11581
|
var LENGTH = exports.LENGTH = NOTE_OFFSET + _QitchConstants.NOTE_LENGTH;
|
|
11233
11582
|
}).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/qitch/marketDataDefinition/SymbolStatusDef.js","/lib/qitch/marketDataDefinition")
|
|
11234
|
-
},{"../QitchConstants":26,"_process":
|
|
11583
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],86:[function(require,module,exports){
|
|
11235
11584
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11236
11585
|
"use strict";
|
|
11237
11586
|
|
|
@@ -11339,6 +11688,10 @@ var TradeFlags = exports.TradeFlags = function () {
|
|
|
11339
11688
|
return bits & TradeFlags.prototype.CORRECTION_MASK;
|
|
11340
11689
|
};
|
|
11341
11690
|
|
|
11691
|
+
TradeFlags.isOutOfSequence = function isOutOfSequence(bits) {
|
|
11692
|
+
return bits & TradeFlags.prototype.OUTOFSEQUENCE_MASK;
|
|
11693
|
+
};
|
|
11694
|
+
|
|
11342
11695
|
return TradeFlags;
|
|
11343
11696
|
}();
|
|
11344
11697
|
|
|
@@ -11360,8 +11713,9 @@ TradeFlags.prototype.BLOCKTRADE_MASK = 0x00008000;
|
|
|
11360
11713
|
TradeFlags.prototype.IGNOREOPEN_MASK = 0x00000100;
|
|
11361
11714
|
TradeFlags.prototype.TRADETHROUGHEXEMPT = 0x00000200;
|
|
11362
11715
|
TradeFlags.prototype.CORRECTION_MASK = 0x08000000;
|
|
11716
|
+
TradeFlags.prototype.OUTOFSEQUENCE_MASK = 0x00000400;
|
|
11363
11717
|
}).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/qitch/marketDataDefinition/TradeDef.js","/lib/qitch/marketDataDefinition")
|
|
11364
|
-
},{"../QitchConstants":26,"_process":
|
|
11718
|
+
},{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],87:[function(require,module,exports){
|
|
11365
11719
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11366
11720
|
"use strict";
|
|
11367
11721
|
|
|
@@ -11411,7 +11765,7 @@ var SMessageDecoder = function () {
|
|
|
11411
11765
|
|
|
11412
11766
|
exports["default"] = SMessageDecoder;
|
|
11413
11767
|
}).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/serialization/SMessageDecoder.js","/lib/serialization")
|
|
11414
|
-
},{"./v1/SMessageDecoder_1.js":89,"_process":
|
|
11768
|
+
},{"./v1/SMessageDecoder_1.js":89,"_process":119,"buffer":109,"timers":140}],88:[function(require,module,exports){
|
|
11415
11769
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11416
11770
|
"use strict";
|
|
11417
11771
|
|
|
@@ -11458,7 +11812,7 @@ var SMessageEncoder = function () {
|
|
|
11458
11812
|
|
|
11459
11813
|
exports["default"] = SMessageEncoder;
|
|
11460
11814
|
}).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/serialization/SMessageEncoder.js","/lib/serialization")
|
|
11461
|
-
},{"./v1/SMessageEncoder_1.js":90,"_process":
|
|
11815
|
+
},{"./v1/SMessageEncoder_1.js":90,"_process":119,"buffer":109,"timers":140}],89:[function(require,module,exports){
|
|
11462
11816
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11463
11817
|
"use strict";
|
|
11464
11818
|
|
|
@@ -11512,7 +11866,7 @@ var SMessageDecoder_1 = function () {
|
|
|
11512
11866
|
|
|
11513
11867
|
exports["default"] = SMessageDecoder_1;
|
|
11514
11868
|
}).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/serialization/v1/SMessageDecoder_1.js","/lib/serialization/v1")
|
|
11515
|
-
},{"../../SMessage.js":5,"./codec.js":91,"_process":
|
|
11869
|
+
},{"../../SMessage.js":5,"./codec.js":91,"_process":119,"buffer":109,"timers":140}],90:[function(require,module,exports){
|
|
11516
11870
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11517
11871
|
"use strict";
|
|
11518
11872
|
|
|
@@ -11562,7 +11916,7 @@ var SMessageEncoder_1 = function () {
|
|
|
11562
11916
|
|
|
11563
11917
|
exports["default"] = SMessageEncoder_1;
|
|
11564
11918
|
}).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/serialization/v1/SMessageEncoder_1.js","/lib/serialization/v1")
|
|
11565
|
-
},{"../../message.js":17,"./codec.js":91,"_process":
|
|
11919
|
+
},{"../../message.js":17,"./codec.js":91,"_process":119,"buffer":109,"timers":140}],91:[function(require,module,exports){
|
|
11566
11920
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11567
11921
|
"use strict";
|
|
11568
11922
|
|
|
@@ -11607,47 +11961,2082 @@ exports["default"] = new function () {
|
|
|
11607
11961
|
this.HEADER_LENGTH_CHAR = this.PAYLOADLENGTH_OFFSET + this.UINT_LENGTH_CHAR;
|
|
11608
11962
|
}();
|
|
11609
11963
|
}).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/serialization/v1/codec.js","/lib/serialization/v1")
|
|
11610
|
-
},{"_process":
|
|
11964
|
+
},{"_process":119,"buffer":109,"timers":140}],92:[function(require,module,exports){
|
|
11611
11965
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
11612
|
-
|
|
11966
|
+
'use strict';
|
|
11613
11967
|
|
|
11614
|
-
|
|
11615
|
-
/* @see http://usejsdoc.org */
|
|
11968
|
+
// Generated by CoffeeScript 1.7.1
|
|
11616
11969
|
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11970
|
+
/*
|
|
11971
|
+
Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
|
|
11972
|
+
|
|
11973
|
+
Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
|
|
11974
|
+
Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
|
|
11620
11975
|
*/
|
|
11621
11976
|
|
|
11622
|
-
|
|
11623
|
-
var
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11977
|
+
(function () {
|
|
11978
|
+
var Byte,
|
|
11979
|
+
Client,
|
|
11980
|
+
Frame,
|
|
11981
|
+
Stomp,
|
|
11982
|
+
__hasProp = {}.hasOwnProperty,
|
|
11983
|
+
__slice = [].slice;
|
|
11984
|
+
|
|
11985
|
+
Byte = {
|
|
11986
|
+
LF: '\x0A',
|
|
11987
|
+
NULL: '\x00'
|
|
11988
|
+
};
|
|
11630
11989
|
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
*/
|
|
11634
|
-
messages.control = {};
|
|
11990
|
+
Frame = function () {
|
|
11991
|
+
var unmarshallSingle;
|
|
11635
11992
|
|
|
11636
|
-
|
|
11637
|
-
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11993
|
+
function Frame(command, headers, body) {
|
|
11994
|
+
this.command = command;
|
|
11995
|
+
this.headers = headers != null ? headers : {};
|
|
11996
|
+
this.body = body != null ? body : '';
|
|
11997
|
+
}
|
|
11641
11998
|
|
|
11642
|
-
|
|
11999
|
+
Frame.prototype.toString = function () {
|
|
12000
|
+
var lines, name, skipContentLength, value, _ref;
|
|
12001
|
+
lines = [this.command];
|
|
12002
|
+
skipContentLength = this.headers['content-length'] === false ? true : false;
|
|
12003
|
+
if (skipContentLength) {
|
|
12004
|
+
delete this.headers['content-length'];
|
|
12005
|
+
}
|
|
12006
|
+
_ref = this.headers;
|
|
12007
|
+
for (name in _ref) {
|
|
12008
|
+
if (!__hasProp.call(_ref, name)) continue;
|
|
12009
|
+
value = _ref[name];
|
|
12010
|
+
lines.push("" + name + ":" + value);
|
|
12011
|
+
}
|
|
12012
|
+
if (this.body && !skipContentLength) {
|
|
12013
|
+
lines.push("content-length:" + Frame.sizeOfUTF8(this.body));
|
|
12014
|
+
}
|
|
12015
|
+
lines.push(Byte.LF + this.body);
|
|
12016
|
+
return lines.join(Byte.LF);
|
|
12017
|
+
};
|
|
11643
12018
|
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
12019
|
+
Frame.sizeOfUTF8 = function (s) {
|
|
12020
|
+
if (s) {
|
|
12021
|
+
return encodeURI(s).match(/%..|./g).length;
|
|
12022
|
+
} else {
|
|
12023
|
+
return 0;
|
|
12024
|
+
}
|
|
12025
|
+
};
|
|
11649
12026
|
|
|
11650
|
-
|
|
12027
|
+
unmarshallSingle = function unmarshallSingle(data) {
|
|
12028
|
+
var body, chr, command, divider, headerLines, headers, i, idx, len, line, start, trim, _i, _j, _len, _ref, _ref1;
|
|
12029
|
+
divider = data.search(RegExp("" + Byte.LF + Byte.LF));
|
|
12030
|
+
headerLines = data.substring(0, divider).split(Byte.LF);
|
|
12031
|
+
command = headerLines.shift();
|
|
12032
|
+
headers = {};
|
|
12033
|
+
trim = function trim(str) {
|
|
12034
|
+
return str.replace(/^\s+|\s+$/g, '');
|
|
12035
|
+
};
|
|
12036
|
+
_ref = headerLines.reverse();
|
|
12037
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
|
12038
|
+
line = _ref[_i];
|
|
12039
|
+
idx = line.indexOf(':');
|
|
12040
|
+
headers[trim(line.substring(0, idx))] = trim(line.substring(idx + 1));
|
|
12041
|
+
}
|
|
12042
|
+
body = '';
|
|
12043
|
+
start = divider + 2;
|
|
12044
|
+
if (headers['content-length']) {
|
|
12045
|
+
len = parseInt(headers['content-length']);
|
|
12046
|
+
body = ('' + data).substring(start, start + len);
|
|
12047
|
+
} else {
|
|
12048
|
+
chr = null;
|
|
12049
|
+
for (i = _j = start, _ref1 = data.length; start <= _ref1 ? _j < _ref1 : _j > _ref1; i = start <= _ref1 ? ++_j : --_j) {
|
|
12050
|
+
chr = data.charAt(i);
|
|
12051
|
+
if (chr === Byte.NULL) {
|
|
12052
|
+
break;
|
|
12053
|
+
}
|
|
12054
|
+
body += chr;
|
|
12055
|
+
}
|
|
12056
|
+
}
|
|
12057
|
+
return new Frame(command, headers, body);
|
|
12058
|
+
};
|
|
12059
|
+
|
|
12060
|
+
Frame.unmarshall = function (datas) {
|
|
12061
|
+
var data;
|
|
12062
|
+
return function () {
|
|
12063
|
+
var _i, _len, _ref, _results;
|
|
12064
|
+
_ref = datas.split(RegExp("" + Byte.NULL + Byte.LF + "*"));
|
|
12065
|
+
_results = [];
|
|
12066
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
|
12067
|
+
data = _ref[_i];
|
|
12068
|
+
if ((data != null ? data.length : void 0) > 0) {
|
|
12069
|
+
_results.push(unmarshallSingle(data));
|
|
12070
|
+
}
|
|
12071
|
+
}
|
|
12072
|
+
return _results;
|
|
12073
|
+
}();
|
|
12074
|
+
};
|
|
12075
|
+
|
|
12076
|
+
Frame.marshall = function (command, headers, body) {
|
|
12077
|
+
var frame;
|
|
12078
|
+
frame = new Frame(command, headers, body);
|
|
12079
|
+
return frame.toString() + Byte.NULL;
|
|
12080
|
+
};
|
|
12081
|
+
|
|
12082
|
+
return Frame;
|
|
12083
|
+
}();
|
|
12084
|
+
|
|
12085
|
+
Client = function () {
|
|
12086
|
+
var now;
|
|
12087
|
+
|
|
12088
|
+
function Client(ws) {
|
|
12089
|
+
this.ws = ws;
|
|
12090
|
+
this.ws.binaryType = "arraybuffer";
|
|
12091
|
+
this.counter = 0;
|
|
12092
|
+
this.connected = false;
|
|
12093
|
+
this.heartbeat = {
|
|
12094
|
+
outgoing: 10000,
|
|
12095
|
+
incoming: 10000
|
|
12096
|
+
};
|
|
12097
|
+
this.maxWebSocketFrameSize = 16 * 1024;
|
|
12098
|
+
this.subscriptions = {};
|
|
12099
|
+
}
|
|
12100
|
+
|
|
12101
|
+
Client.prototype.debug = function (message) {
|
|
12102
|
+
var _ref;
|
|
12103
|
+
return typeof window !== "undefined" && window !== null ? (_ref = window.console) != null ? _ref.log(message) : void 0 : void 0;
|
|
12104
|
+
};
|
|
12105
|
+
|
|
12106
|
+
now = function now() {
|
|
12107
|
+
if (Date.now) {
|
|
12108
|
+
return Date.now();
|
|
12109
|
+
} else {
|
|
12110
|
+
return new Date().valueOf;
|
|
12111
|
+
}
|
|
12112
|
+
};
|
|
12113
|
+
|
|
12114
|
+
Client.prototype._transmit = function (command, headers, body) {
|
|
12115
|
+
var out;
|
|
12116
|
+
out = Frame.marshall(command, headers, body);
|
|
12117
|
+
if (typeof this.debug === "function") {
|
|
12118
|
+
this.debug(">>> " + out);
|
|
12119
|
+
}
|
|
12120
|
+
while (true) {
|
|
12121
|
+
if (out.length > this.maxWebSocketFrameSize) {
|
|
12122
|
+
this.ws.send(out.substring(0, this.maxWebSocketFrameSize));
|
|
12123
|
+
out = out.substring(this.maxWebSocketFrameSize);
|
|
12124
|
+
if (typeof this.debug === "function") {
|
|
12125
|
+
this.debug("remaining = " + out.length);
|
|
12126
|
+
}
|
|
12127
|
+
} else {
|
|
12128
|
+
return this.ws.send(out);
|
|
12129
|
+
}
|
|
12130
|
+
}
|
|
12131
|
+
};
|
|
12132
|
+
|
|
12133
|
+
Client.prototype._setupHeartbeat = function (headers) {
|
|
12134
|
+
var serverIncoming, serverOutgoing, ttl, v, _ref, _ref1;
|
|
12135
|
+
if ((_ref = headers.version) !== Stomp.VERSIONS.V1_1 && _ref !== Stomp.VERSIONS.V1_2) {
|
|
12136
|
+
return;
|
|
12137
|
+
}
|
|
12138
|
+
_ref1 = function () {
|
|
12139
|
+
var _i, _len, _ref1, _results;
|
|
12140
|
+
_ref1 = headers['heart-beat'].split(",");
|
|
12141
|
+
_results = [];
|
|
12142
|
+
for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
|
|
12143
|
+
v = _ref1[_i];
|
|
12144
|
+
_results.push(parseInt(v));
|
|
12145
|
+
}
|
|
12146
|
+
return _results;
|
|
12147
|
+
}(), serverOutgoing = _ref1[0], serverIncoming = _ref1[1];
|
|
12148
|
+
if (!(this.heartbeat.outgoing === 0 || serverIncoming === 0)) {
|
|
12149
|
+
ttl = Math.max(this.heartbeat.outgoing, serverIncoming);
|
|
12150
|
+
if (typeof this.debug === "function") {
|
|
12151
|
+
this.debug("send PING every " + ttl + "ms");
|
|
12152
|
+
}
|
|
12153
|
+
this.pinger = Stomp.setInterval(ttl, function (_this) {
|
|
12154
|
+
return function () {
|
|
12155
|
+
_this.ws.send(Byte.LF);
|
|
12156
|
+
return typeof _this.debug === "function" ? _this.debug(">>> PING") : void 0;
|
|
12157
|
+
};
|
|
12158
|
+
}(this));
|
|
12159
|
+
}
|
|
12160
|
+
if (!(this.heartbeat.incoming === 0 || serverOutgoing === 0)) {
|
|
12161
|
+
ttl = Math.max(this.heartbeat.incoming, serverOutgoing);
|
|
12162
|
+
if (typeof this.debug === "function") {
|
|
12163
|
+
this.debug("check PONG every " + ttl + "ms");
|
|
12164
|
+
}
|
|
12165
|
+
return this.ponger = Stomp.setInterval(ttl, function (_this) {
|
|
12166
|
+
return function () {
|
|
12167
|
+
var delta;
|
|
12168
|
+
delta = now() - _this.serverActivity;
|
|
12169
|
+
if (delta > ttl * 2) {
|
|
12170
|
+
if (typeof _this.debug === "function") {
|
|
12171
|
+
_this.debug("did not receive server activity for the last " + delta + "ms");
|
|
12172
|
+
}
|
|
12173
|
+
return _this.ws.close();
|
|
12174
|
+
}
|
|
12175
|
+
};
|
|
12176
|
+
}(this));
|
|
12177
|
+
}
|
|
12178
|
+
};
|
|
12179
|
+
|
|
12180
|
+
Client.prototype._parseConnect = function () {
|
|
12181
|
+
var args, connectCallback, errorCallback, headers;
|
|
12182
|
+
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
|
|
12183
|
+
headers = {};
|
|
12184
|
+
switch (args.length) {
|
|
12185
|
+
case 2:
|
|
12186
|
+
headers = args[0], connectCallback = args[1];
|
|
12187
|
+
break;
|
|
12188
|
+
case 3:
|
|
12189
|
+
if (args[1] instanceof Function) {
|
|
12190
|
+
headers = args[0], connectCallback = args[1], errorCallback = args[2];
|
|
12191
|
+
} else {
|
|
12192
|
+
headers.login = args[0], headers.passcode = args[1], connectCallback = args[2];
|
|
12193
|
+
}
|
|
12194
|
+
break;
|
|
12195
|
+
case 4:
|
|
12196
|
+
headers.login = args[0], headers.passcode = args[1], connectCallback = args[2], errorCallback = args[3];
|
|
12197
|
+
break;
|
|
12198
|
+
default:
|
|
12199
|
+
headers.login = args[0], headers.passcode = args[1], connectCallback = args[2], errorCallback = args[3], headers.host = args[4];
|
|
12200
|
+
}
|
|
12201
|
+
return [headers, connectCallback, errorCallback];
|
|
12202
|
+
};
|
|
12203
|
+
|
|
12204
|
+
Client.prototype.connect = function () {
|
|
12205
|
+
var args, errorCallback, headers, out;
|
|
12206
|
+
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
|
|
12207
|
+
out = this._parseConnect.apply(this, args);
|
|
12208
|
+
headers = out[0], this.connectCallback = out[1], errorCallback = out[2];
|
|
12209
|
+
if (typeof this.debug === "function") {
|
|
12210
|
+
this.debug("Opening Web Socket...");
|
|
12211
|
+
}
|
|
12212
|
+
this.ws.onmessage = function (_this) {
|
|
12213
|
+
return function (evt) {
|
|
12214
|
+
var arr, c, client, data, frame, messageID, onreceive, subscription, _i, _len, _ref, _results;
|
|
12215
|
+
data = typeof ArrayBuffer !== 'undefined' && evt.data instanceof ArrayBuffer ? (arr = new Uint8Array(evt.data), typeof _this.debug === "function" ? _this.debug("--- got data length: " + arr.length) : void 0, function () {
|
|
12216
|
+
var _i, _len, _results;
|
|
12217
|
+
_results = [];
|
|
12218
|
+
for (_i = 0, _len = arr.length; _i < _len; _i++) {
|
|
12219
|
+
c = arr[_i];
|
|
12220
|
+
_results.push(String.fromCharCode(c));
|
|
12221
|
+
}
|
|
12222
|
+
return _results;
|
|
12223
|
+
}().join('')) : evt.data;
|
|
12224
|
+
_this.serverActivity = now();
|
|
12225
|
+
if (data === Byte.LF) {
|
|
12226
|
+
if (typeof _this.debug === "function") {
|
|
12227
|
+
_this.debug("<<< PONG");
|
|
12228
|
+
}
|
|
12229
|
+
return;
|
|
12230
|
+
}
|
|
12231
|
+
if (typeof _this.debug === "function") {
|
|
12232
|
+
_this.debug("<<< " + data);
|
|
12233
|
+
}
|
|
12234
|
+
_ref = Frame.unmarshall(data);
|
|
12235
|
+
_results = [];
|
|
12236
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
|
12237
|
+
frame = _ref[_i];
|
|
12238
|
+
switch (frame.command) {
|
|
12239
|
+
case "CONNECTED":
|
|
12240
|
+
if (typeof _this.debug === "function") {
|
|
12241
|
+
_this.debug("connected to server " + frame.headers.server);
|
|
12242
|
+
}
|
|
12243
|
+
_this.connected = true;
|
|
12244
|
+
_this._setupHeartbeat(frame.headers);
|
|
12245
|
+
_results.push(typeof _this.connectCallback === "function" ? _this.connectCallback(frame) : void 0);
|
|
12246
|
+
break;
|
|
12247
|
+
case "MESSAGE":
|
|
12248
|
+
subscription = frame.headers.subscription;
|
|
12249
|
+
onreceive = _this.subscriptions[subscription] || _this.onreceive;
|
|
12250
|
+
if (onreceive) {
|
|
12251
|
+
client = _this;
|
|
12252
|
+
messageID = frame.headers["message-id"];
|
|
12253
|
+
frame.ack = function (headers) {
|
|
12254
|
+
if (headers == null) {
|
|
12255
|
+
headers = {};
|
|
12256
|
+
}
|
|
12257
|
+
return client.ack(messageID, subscription, headers);
|
|
12258
|
+
};
|
|
12259
|
+
frame.nack = function (headers) {
|
|
12260
|
+
if (headers == null) {
|
|
12261
|
+
headers = {};
|
|
12262
|
+
}
|
|
12263
|
+
return client.nack(messageID, subscription, headers);
|
|
12264
|
+
};
|
|
12265
|
+
_results.push(onreceive(frame));
|
|
12266
|
+
} else {
|
|
12267
|
+
_results.push(typeof _this.debug === "function" ? _this.debug("Unhandled received MESSAGE: " + frame) : void 0);
|
|
12268
|
+
}
|
|
12269
|
+
break;
|
|
12270
|
+
case "RECEIPT":
|
|
12271
|
+
_results.push(typeof _this.onreceipt === "function" ? _this.onreceipt(frame) : void 0);
|
|
12272
|
+
break;
|
|
12273
|
+
case "ERROR":
|
|
12274
|
+
_results.push(typeof errorCallback === "function" ? errorCallback(frame) : void 0);
|
|
12275
|
+
break;
|
|
12276
|
+
default:
|
|
12277
|
+
_results.push(typeof _this.debug === "function" ? _this.debug("Unhandled frame: " + frame) : void 0);
|
|
12278
|
+
}
|
|
12279
|
+
}
|
|
12280
|
+
return _results;
|
|
12281
|
+
};
|
|
12282
|
+
}(this);
|
|
12283
|
+
this.ws.onclose = function (_this) {
|
|
12284
|
+
return function () {
|
|
12285
|
+
var msg;
|
|
12286
|
+
msg = "Whoops! Lost connection to " + _this.ws.url;
|
|
12287
|
+
if (typeof _this.debug === "function") {
|
|
12288
|
+
_this.debug(msg);
|
|
12289
|
+
}
|
|
12290
|
+
_this._cleanUp();
|
|
12291
|
+
return typeof errorCallback === "function" ? errorCallback(msg) : void 0;
|
|
12292
|
+
};
|
|
12293
|
+
}(this);
|
|
12294
|
+
return this.ws.onopen = function (_this) {
|
|
12295
|
+
return function () {
|
|
12296
|
+
if (typeof _this.debug === "function") {
|
|
12297
|
+
_this.debug('Web Socket Opened...');
|
|
12298
|
+
}
|
|
12299
|
+
headers["accept-version"] = Stomp.VERSIONS.supportedVersions();
|
|
12300
|
+
headers["heart-beat"] = [_this.heartbeat.outgoing, _this.heartbeat.incoming].join(',');
|
|
12301
|
+
return _this._transmit("CONNECT", headers);
|
|
12302
|
+
};
|
|
12303
|
+
}(this);
|
|
12304
|
+
};
|
|
12305
|
+
|
|
12306
|
+
Client.prototype.disconnect = function (disconnectCallback, headers) {
|
|
12307
|
+
if (headers == null) {
|
|
12308
|
+
headers = {};
|
|
12309
|
+
}
|
|
12310
|
+
this._transmit("DISCONNECT", headers);
|
|
12311
|
+
this.ws.onclose = null;
|
|
12312
|
+
this.ws.close();
|
|
12313
|
+
this._cleanUp();
|
|
12314
|
+
return typeof disconnectCallback === "function" ? disconnectCallback() : void 0;
|
|
12315
|
+
};
|
|
12316
|
+
|
|
12317
|
+
Client.prototype._cleanUp = function () {
|
|
12318
|
+
this.connected = false;
|
|
12319
|
+
if (this.pinger) {
|
|
12320
|
+
Stomp.clearInterval(this.pinger);
|
|
12321
|
+
}
|
|
12322
|
+
if (this.ponger) {
|
|
12323
|
+
return Stomp.clearInterval(this.ponger);
|
|
12324
|
+
}
|
|
12325
|
+
};
|
|
12326
|
+
|
|
12327
|
+
Client.prototype.send = function (destination, headers, body) {
|
|
12328
|
+
if (headers == null) {
|
|
12329
|
+
headers = {};
|
|
12330
|
+
}
|
|
12331
|
+
if (body == null) {
|
|
12332
|
+
body = '';
|
|
12333
|
+
}
|
|
12334
|
+
headers.destination = destination;
|
|
12335
|
+
return this._transmit("SEND", headers, body);
|
|
12336
|
+
};
|
|
12337
|
+
|
|
12338
|
+
Client.prototype.subscribe = function (destination, callback, headers) {
|
|
12339
|
+
var client;
|
|
12340
|
+
if (headers == null) {
|
|
12341
|
+
headers = {};
|
|
12342
|
+
}
|
|
12343
|
+
if (!headers.id) {
|
|
12344
|
+
headers.id = "sub-" + this.counter++;
|
|
12345
|
+
}
|
|
12346
|
+
headers.destination = destination;
|
|
12347
|
+
this.subscriptions[headers.id] = callback;
|
|
12348
|
+
this._transmit("SUBSCRIBE", headers);
|
|
12349
|
+
client = this;
|
|
12350
|
+
return {
|
|
12351
|
+
id: headers.id,
|
|
12352
|
+
unsubscribe: function unsubscribe() {
|
|
12353
|
+
return client.unsubscribe(headers.id);
|
|
12354
|
+
}
|
|
12355
|
+
};
|
|
12356
|
+
};
|
|
12357
|
+
|
|
12358
|
+
Client.prototype.unsubscribe = function (id) {
|
|
12359
|
+
delete this.subscriptions[id];
|
|
12360
|
+
return this._transmit("UNSUBSCRIBE", {
|
|
12361
|
+
id: id
|
|
12362
|
+
});
|
|
12363
|
+
};
|
|
12364
|
+
|
|
12365
|
+
Client.prototype.begin = function (transaction) {
|
|
12366
|
+
var client, txid;
|
|
12367
|
+
txid = transaction || "tx-" + this.counter++;
|
|
12368
|
+
this._transmit("BEGIN", {
|
|
12369
|
+
transaction: txid
|
|
12370
|
+
});
|
|
12371
|
+
client = this;
|
|
12372
|
+
return {
|
|
12373
|
+
id: txid,
|
|
12374
|
+
commit: function commit() {
|
|
12375
|
+
return client.commit(txid);
|
|
12376
|
+
},
|
|
12377
|
+
abort: function abort() {
|
|
12378
|
+
return client.abort(txid);
|
|
12379
|
+
}
|
|
12380
|
+
};
|
|
12381
|
+
};
|
|
12382
|
+
|
|
12383
|
+
Client.prototype.commit = function (transaction) {
|
|
12384
|
+
return this._transmit("COMMIT", {
|
|
12385
|
+
transaction: transaction
|
|
12386
|
+
});
|
|
12387
|
+
};
|
|
12388
|
+
|
|
12389
|
+
Client.prototype.abort = function (transaction) {
|
|
12390
|
+
return this._transmit("ABORT", {
|
|
12391
|
+
transaction: transaction
|
|
12392
|
+
});
|
|
12393
|
+
};
|
|
12394
|
+
|
|
12395
|
+
Client.prototype.ack = function (messageID, subscription, headers) {
|
|
12396
|
+
if (headers == null) {
|
|
12397
|
+
headers = {};
|
|
12398
|
+
}
|
|
12399
|
+
headers["message-id"] = messageID;
|
|
12400
|
+
headers.subscription = subscription;
|
|
12401
|
+
return this._transmit("ACK", headers);
|
|
12402
|
+
};
|
|
12403
|
+
|
|
12404
|
+
Client.prototype.nack = function (messageID, subscription, headers) {
|
|
12405
|
+
if (headers == null) {
|
|
12406
|
+
headers = {};
|
|
12407
|
+
}
|
|
12408
|
+
headers["message-id"] = messageID;
|
|
12409
|
+
headers.subscription = subscription;
|
|
12410
|
+
return this._transmit("NACK", headers);
|
|
12411
|
+
};
|
|
12412
|
+
|
|
12413
|
+
return Client;
|
|
12414
|
+
}();
|
|
12415
|
+
|
|
12416
|
+
Stomp = {
|
|
12417
|
+
VERSIONS: {
|
|
12418
|
+
V1_0: '1.0',
|
|
12419
|
+
V1_1: '1.1',
|
|
12420
|
+
V1_2: '1.2',
|
|
12421
|
+
supportedVersions: function supportedVersions() {
|
|
12422
|
+
return '1.1,1.0';
|
|
12423
|
+
}
|
|
12424
|
+
},
|
|
12425
|
+
client: function client(url, protocols) {
|
|
12426
|
+
var klass, ws;
|
|
12427
|
+
if (protocols == null) {
|
|
12428
|
+
protocols = ['v10.stomp', 'v11.stomp'];
|
|
12429
|
+
}
|
|
12430
|
+
klass = Stomp.WebSocketClass || WebSocket;
|
|
12431
|
+
ws = new klass(url, protocols);
|
|
12432
|
+
return new Client(ws);
|
|
12433
|
+
},
|
|
12434
|
+
over: function over(ws) {
|
|
12435
|
+
return new Client(ws);
|
|
12436
|
+
},
|
|
12437
|
+
Frame: Frame
|
|
12438
|
+
};
|
|
12439
|
+
|
|
12440
|
+
if (typeof exports !== "undefined" && exports !== null) {
|
|
12441
|
+
exports.Stomp = Stomp;
|
|
12442
|
+
}
|
|
12443
|
+
|
|
12444
|
+
if (typeof window !== "undefined" && window !== null) {
|
|
12445
|
+
Stomp.setInterval = function (interval, f) {
|
|
12446
|
+
return window.setInterval(f, interval);
|
|
12447
|
+
};
|
|
12448
|
+
Stomp.clearInterval = function (id) {
|
|
12449
|
+
return window.clearInterval(id);
|
|
12450
|
+
};
|
|
12451
|
+
window.Stomp = Stomp;
|
|
12452
|
+
} else if (!exports) {
|
|
12453
|
+
self.Stomp = Stomp;
|
|
12454
|
+
}
|
|
12455
|
+
}).call(undefined);
|
|
12456
|
+
}).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/stomp.js/lib/stomp.js","/lib/stomp.js/lib")
|
|
12457
|
+
},{"_process":119,"buffer":109,"timers":140}],93:[function(require,module,exports){
|
|
12458
|
+
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
12459
|
+
"use strict";
|
|
12460
|
+
|
|
12461
|
+
exports.__esModule = true;
|
|
12462
|
+
|
|
12463
|
+
var _logging = require("../logging.js");
|
|
12464
|
+
|
|
12465
|
+
var _EventSupport = require("../EventSupport.js");
|
|
12466
|
+
|
|
12467
|
+
var _EventSupport2 = _interopRequireDefault(_EventSupport);
|
|
12468
|
+
|
|
12469
|
+
var _streamerEvents = require("../streamer-events.js");
|
|
12470
|
+
|
|
12471
|
+
var events = _interopRequireWildcard(_streamerEvents);
|
|
12472
|
+
|
|
12473
|
+
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; } }
|
|
12474
|
+
|
|
12475
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12476
|
+
|
|
12477
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12478
|
+
|
|
12479
|
+
var StompConnection = function () {
|
|
12480
|
+
function StompConnection(createTransmitter, openSocket, log) {
|
|
12481
|
+
_classCallCheck(this, StompConnection);
|
|
12482
|
+
|
|
12483
|
+
this.openSocket = openSocket;
|
|
12484
|
+
this.createTransmitter = createTransmitter;
|
|
12485
|
+
this.log = (0, _logging.asLogger)(log);
|
|
12486
|
+
this.events = new _EventSupport2["default"](this);
|
|
12487
|
+
}
|
|
12488
|
+
|
|
12489
|
+
StompConnection.prototype.open = function open() {
|
|
12490
|
+
var _this = this;
|
|
12491
|
+
|
|
12492
|
+
var socketProxy = { // Late binding for socket
|
|
12493
|
+
send: function send(message) {
|
|
12494
|
+
return _this.socket.send(message);
|
|
12495
|
+
}
|
|
12496
|
+
};
|
|
12497
|
+
|
|
12498
|
+
this.transmitter = this.createTransmitter(socketProxy);
|
|
12499
|
+
|
|
12500
|
+
this.transmitter.on("message", function (message) {
|
|
12501
|
+
_this.events.fire("message", message);
|
|
12502
|
+
});
|
|
12503
|
+
|
|
12504
|
+
this.socket = this.openSocket(function (request) {
|
|
12505
|
+
_this.request = request;
|
|
12506
|
+
return {
|
|
12507
|
+
onMessage: function onMessage(response) {
|
|
12508
|
+
_this.transmitter.onMessage(response.body);
|
|
12509
|
+
}
|
|
12510
|
+
|
|
12511
|
+
};
|
|
12512
|
+
});
|
|
12513
|
+
};
|
|
12514
|
+
|
|
12515
|
+
StompConnection.prototype.close = function close() {
|
|
12516
|
+
if (this.socket) {
|
|
12517
|
+
try {
|
|
12518
|
+
this.socket.close();
|
|
12519
|
+
this.socket = null;
|
|
12520
|
+
} catch (err) {
|
|
12521
|
+
this.events.fire("error", events.error("Error closing", {
|
|
12522
|
+
reason: err.message,
|
|
12523
|
+
cause: err,
|
|
12524
|
+
code: -3
|
|
12525
|
+
}));
|
|
12526
|
+
}
|
|
12527
|
+
}
|
|
12528
|
+
};
|
|
12529
|
+
|
|
12530
|
+
StompConnection.prototype.send = function send(message) {
|
|
12531
|
+
try {
|
|
12532
|
+
this.transmitter.send(message);
|
|
12533
|
+
} catch (err) {
|
|
12534
|
+
this.events.fire("error", events.error("Error sending message", {
|
|
12535
|
+
reason: err.message,
|
|
12536
|
+
cause: err,
|
|
12537
|
+
code: -4
|
|
12538
|
+
}));
|
|
12539
|
+
}
|
|
12540
|
+
};
|
|
12541
|
+
|
|
12542
|
+
StompConnection.prototype.setServer = function setServer(server) {
|
|
12543
|
+
this.request['X-Stream-Instance'] = server;
|
|
12544
|
+
};
|
|
12545
|
+
|
|
12546
|
+
StompConnection.prototype.isClosed = function isClosed() {
|
|
12547
|
+
return this.socket == null;
|
|
12548
|
+
};
|
|
12549
|
+
|
|
12550
|
+
StompConnection.prototype.on = function on(event, callback) {
|
|
12551
|
+
return this.events.on(event, callback);
|
|
12552
|
+
};
|
|
12553
|
+
|
|
12554
|
+
return StompConnection;
|
|
12555
|
+
}();
|
|
12556
|
+
|
|
12557
|
+
exports["default"] = StompConnection;
|
|
12558
|
+
}).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/stomp/StompConnection.js","/lib/stomp")
|
|
12559
|
+
},{"../EventSupport.js":2,"../logging.js":16,"../streamer-events.js":97,"_process":119,"buffer":109,"timers":140}],94:[function(require,module,exports){
|
|
12560
|
+
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
12561
|
+
"use strict";
|
|
12562
|
+
|
|
12563
|
+
exports.__esModule = true;
|
|
12564
|
+
|
|
12565
|
+
require("../polyfills.js");
|
|
12566
|
+
|
|
12567
|
+
var _streamerApi = require("../streamer-api.js");
|
|
12568
|
+
|
|
12569
|
+
var _streamerUtils = require("../streamer-utils.js");
|
|
12570
|
+
|
|
12571
|
+
var _logging = require("../logging.js");
|
|
12572
|
+
|
|
12573
|
+
var _utils = require("../utils.js");
|
|
12574
|
+
|
|
12575
|
+
var _UShortId = require("../UShortId.js");
|
|
12576
|
+
|
|
12577
|
+
var _UShortId2 = _interopRequireDefault(_UShortId);
|
|
12578
|
+
|
|
12579
|
+
var _EventSupport = require("../EventSupport.js");
|
|
12580
|
+
|
|
12581
|
+
var _EventSupport2 = _interopRequireDefault(_EventSupport);
|
|
12582
|
+
|
|
12583
|
+
var _formatting = require("../formatting.js");
|
|
12584
|
+
|
|
12585
|
+
var _streamerEvents = require("../streamer-events.js");
|
|
12586
|
+
|
|
12587
|
+
var events = _interopRequireWildcard(_streamerEvents);
|
|
12588
|
+
|
|
12589
|
+
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; } }
|
|
12590
|
+
|
|
12591
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12592
|
+
|
|
12593
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12594
|
+
|
|
12595
|
+
var CONSOLIDATED_SYMBOL_ENTITLEMENTS_COEFFICIENT = 14;
|
|
12596
|
+
var CONSOLIDATED_SYMBOL_SUFFIX = ":CC";
|
|
12597
|
+
|
|
12598
|
+
var StompStream = function () {
|
|
12599
|
+
function StompStream(streamingService, format, log) {
|
|
12600
|
+
var _this = this;
|
|
12601
|
+
|
|
12602
|
+
_classCallCheck(this, StompStream);
|
|
12603
|
+
|
|
12604
|
+
this.events = new _EventSupport2["default"]();
|
|
12605
|
+
this.streamingService = streamingService;
|
|
12606
|
+
this.format = format;
|
|
12607
|
+
this.log = (0, _logging.asLogger)(log);
|
|
12608
|
+
|
|
12609
|
+
this.conn = streamingService.createStompConnection();
|
|
12610
|
+
|
|
12611
|
+
this.conn.on("message", function (msg) {
|
|
12612
|
+
_this._handlejsonmsg(msg);
|
|
12613
|
+
}).on("close", function (msg) {
|
|
12614
|
+
_this.doClose(msg);
|
|
12615
|
+
}).on("error", function (err) {
|
|
12616
|
+
if (_this.pendingConnection) {
|
|
12617
|
+
_this.pendingConnection(err);
|
|
12618
|
+
}
|
|
12619
|
+
_this.events.fire("error", err);
|
|
12620
|
+
});
|
|
12621
|
+
|
|
12622
|
+
this.requestid = new _UShortId2["default"]();
|
|
12623
|
+
|
|
12624
|
+
this.pendingsubscriptions = {};
|
|
12625
|
+
this.pendingUnsubscriptions = {};
|
|
12626
|
+
this.pendingExchangeSubscriptions = {};
|
|
12627
|
+
this.pendingExchangeUnsubscriptions = {};
|
|
12628
|
+
this.pendingNewsSubscriptions = {};
|
|
12629
|
+
this.pendingNewsUnsubscriptions = {};
|
|
12630
|
+
this.pendingAlertSubscription = {};
|
|
12631
|
+
this.pendingTradeSubscription = {};
|
|
12632
|
+
this.pendingTradeUnsubscription = {};
|
|
12633
|
+
|
|
12634
|
+
this.on("error", function (err) {
|
|
12635
|
+
_this.log.warn(err);
|
|
12636
|
+
});
|
|
12637
|
+
}
|
|
12638
|
+
|
|
12639
|
+
StompStream.prototype.openStomp = function openStomp(callback) {
|
|
12640
|
+
try {
|
|
12641
|
+
this.pendingConnection = callback;
|
|
12642
|
+
this.conn.open();
|
|
12643
|
+
} catch (err) {
|
|
12644
|
+
if (callback) {
|
|
12645
|
+
callback(err);
|
|
12646
|
+
}
|
|
12647
|
+
}
|
|
12648
|
+
};
|
|
12649
|
+
|
|
12650
|
+
StompStream.prototype.on = function on(event, listener) {
|
|
12651
|
+
return this.events.on(event, listener);
|
|
12652
|
+
};
|
|
12653
|
+
|
|
12654
|
+
StompStream.prototype.subscribe = function subscribe(symbols, types, optsOrCallback, callbackOrNothing) {
|
|
12655
|
+
var _this2 = this;
|
|
12656
|
+
|
|
12657
|
+
symbols = (Array.isArray(symbols) ? symbols : [symbols]).map(function (s) {
|
|
12658
|
+
return s.toUpperCase();
|
|
12659
|
+
});
|
|
12660
|
+
types = Array.isArray(types) ? types : [types].map(function (s) {
|
|
12661
|
+
return s.toUpperCase();
|
|
12662
|
+
});
|
|
12663
|
+
|
|
12664
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
12665
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
12666
|
+
|
|
12667
|
+
if (this.isClosed()) {
|
|
12668
|
+
var event = events.error("Stream is disconnected", {
|
|
12669
|
+
code: -1,
|
|
12670
|
+
reason: "Already disconnected"
|
|
12671
|
+
});
|
|
12672
|
+
this.events.fire("error", event);
|
|
12673
|
+
if (callback) {
|
|
12674
|
+
callback(event);
|
|
12675
|
+
}
|
|
12676
|
+
return;
|
|
12677
|
+
}
|
|
12678
|
+
|
|
12679
|
+
var subscription = {
|
|
12680
|
+
ids: [],
|
|
12681
|
+
types: types,
|
|
12682
|
+
mimetype: this.format,
|
|
12683
|
+
callback: callback,
|
|
12684
|
+
result: {
|
|
12685
|
+
subscribed: [],
|
|
12686
|
+
rejected: [],
|
|
12687
|
+
unentitled: [],
|
|
12688
|
+
invalidSymbols: []
|
|
12689
|
+
}
|
|
12690
|
+
};
|
|
12691
|
+
|
|
12692
|
+
if (symbols.length === 0 || types.length === 0) {
|
|
12693
|
+
callback(null, subscription.result);
|
|
12694
|
+
return;
|
|
12695
|
+
}
|
|
12696
|
+
|
|
12697
|
+
var requests = this._prepareSubscriptionRequests(symbols, subscription, _streamerApi.messages.control.Action.SUBSCRIBE, opts);
|
|
12698
|
+
requests.forEach(function (request) {
|
|
12699
|
+
var id = _this2.requestid.next();
|
|
12700
|
+
subscription.ids.push(id);
|
|
12701
|
+
_this2.pendingsubscriptions[id] = subscription;
|
|
12702
|
+
request.id = id;
|
|
12703
|
+
|
|
12704
|
+
_this2.send(request);
|
|
12705
|
+
});
|
|
12706
|
+
};
|
|
12707
|
+
|
|
12708
|
+
StompStream.prototype.subscribeExchange = function subscribeExchange(exchanges, optsOrCallback, callbackOrNothing) {
|
|
12709
|
+
var _this3 = this;
|
|
12710
|
+
|
|
12711
|
+
exchanges = (Array.isArray(exchanges) ? exchanges : [exchanges]).map(function (e) {
|
|
12712
|
+
return e.toUpperCase();
|
|
12713
|
+
});
|
|
12714
|
+
|
|
12715
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
12716
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
12717
|
+
|
|
12718
|
+
if (this.isClosed()) {
|
|
12719
|
+
var event = events.error("Stream is disconnected", {
|
|
12720
|
+
code: -1,
|
|
12721
|
+
reason: "Already disconnected"
|
|
12722
|
+
});
|
|
12723
|
+
this.events.fire("error", event);
|
|
12724
|
+
if (callback) {
|
|
12725
|
+
callback(event);
|
|
12726
|
+
}
|
|
12727
|
+
return;
|
|
12728
|
+
}
|
|
12729
|
+
|
|
12730
|
+
var exchangeSub = {
|
|
12731
|
+
callback: callback,
|
|
12732
|
+
mimetype: this.format,
|
|
12733
|
+
id: [],
|
|
12734
|
+
result: {
|
|
12735
|
+
subscribed: [],
|
|
12736
|
+
rejected: []
|
|
12737
|
+
}
|
|
12738
|
+
};
|
|
12739
|
+
//check for empty string
|
|
12740
|
+
if (exchanges.length === 0) {
|
|
12741
|
+
callback(null, exchangeSub.result);
|
|
12742
|
+
}
|
|
12743
|
+
|
|
12744
|
+
var requests = this.prepareExchangeSubscriptionRequest(exchanges, exchangeSub, _streamerApi.messages.control.Action.SUBSCRIBE, opts);
|
|
12745
|
+
|
|
12746
|
+
requests.forEach(function (request) {
|
|
12747
|
+
var id = _this3.requestid.next();
|
|
12748
|
+
exchangeSub.id.push(id);
|
|
12749
|
+
exchangeSub.exchange = request.exchange;
|
|
12750
|
+
exchangeSub.conflation = request.conflation;
|
|
12751
|
+
_this3.pendingExchangeSubscriptions[id] = exchangeSub;
|
|
12752
|
+
request.id = id;
|
|
12753
|
+
_this3.send(request);
|
|
12754
|
+
});
|
|
12755
|
+
};
|
|
12756
|
+
|
|
12757
|
+
StompStream.prototype.subscribeNews = function subscribeNews(newsFilters, optsOrCallback, callbackOrNothing) {
|
|
12758
|
+
|
|
12759
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
12760
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
12761
|
+
|
|
12762
|
+
if (this.isClosed()) {
|
|
12763
|
+
var event = events.error("Stream is disconnected", {
|
|
12764
|
+
code: -1,
|
|
12765
|
+
reason: "Already disconnected"
|
|
12766
|
+
});
|
|
12767
|
+
this.events.fire("error", event);
|
|
12768
|
+
if (callback) {
|
|
12769
|
+
callback(event);
|
|
12770
|
+
}
|
|
12771
|
+
return;
|
|
12772
|
+
}
|
|
12773
|
+
|
|
12774
|
+
var newsSub = {
|
|
12775
|
+
callback: callback,
|
|
12776
|
+
mimetype: this.format,
|
|
12777
|
+
id: [],
|
|
12778
|
+
result: {
|
|
12779
|
+
newsFilters: [],
|
|
12780
|
+
rejectedNewsFilters: [],
|
|
12781
|
+
unentitledNewsFilters: []
|
|
12782
|
+
}
|
|
12783
|
+
};
|
|
12784
|
+
//check for empty filters
|
|
12785
|
+
if (newsFilters.length === 0) {
|
|
12786
|
+
callback(null, newsSub.result);
|
|
12787
|
+
}
|
|
12788
|
+
var request = this.buildNewsSubscribeRequest(newsFilters, newsSub, _streamerApi.messages.control.Action.SUBSCRIBE, opts);
|
|
12789
|
+
|
|
12790
|
+
var id = this.requestid.next();
|
|
12791
|
+
this.pendingNewsSubscriptions[id] = newsSub;
|
|
12792
|
+
|
|
12793
|
+
request.id = id;
|
|
12794
|
+
|
|
12795
|
+
this.send(request);
|
|
12796
|
+
};
|
|
12797
|
+
|
|
12798
|
+
StompStream.prototype.subUnsubAlerts = function subUnsubAlerts(operation, optsOrCallback, callbackOrNothing) {
|
|
12799
|
+
|
|
12800
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
12801
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
12802
|
+
|
|
12803
|
+
if (this.isClosed()) {
|
|
12804
|
+
var event = events.error("Stream is disconnected", {
|
|
12805
|
+
code: -1,
|
|
12806
|
+
reason: "Already disconnected"
|
|
12807
|
+
});
|
|
12808
|
+
this.events.fire("error", event);
|
|
12809
|
+
return;
|
|
12810
|
+
}
|
|
12811
|
+
|
|
12812
|
+
var subscription = {
|
|
12813
|
+
id: [],
|
|
12814
|
+
mimetype: this.format,
|
|
12815
|
+
callback: callback,
|
|
12816
|
+
result: {
|
|
12817
|
+
operation: ""
|
|
12818
|
+
}
|
|
12819
|
+
};
|
|
12820
|
+
|
|
12821
|
+
var request = this.buildAlertsSubUnsubRequest(operation, subscription);
|
|
12822
|
+
var id = this.requestid.next();
|
|
12823
|
+
subscription.id.push(id);
|
|
12824
|
+
this.pendingAlertSubscription[id] = subscription;
|
|
12825
|
+
request.id = id;
|
|
12826
|
+
|
|
12827
|
+
this.send(request);
|
|
12828
|
+
};
|
|
12829
|
+
|
|
12830
|
+
StompStream.prototype.subscribeTrade = function subscribeTrade(notificationType, optsOrCallback, callbackOrNothing) {
|
|
12831
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
12832
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
12833
|
+
|
|
12834
|
+
if (this.isClosed()) {
|
|
12835
|
+
var event = events.error("Stream is disconnected", {
|
|
12836
|
+
code: -1,
|
|
12837
|
+
reason: "Already disconnected"
|
|
12838
|
+
});
|
|
12839
|
+
this.events.fire("error", event);
|
|
12840
|
+
return;
|
|
12841
|
+
}
|
|
12842
|
+
|
|
12843
|
+
var tradeSub = {
|
|
12844
|
+
id: [],
|
|
12845
|
+
mimetype: this.format,
|
|
12846
|
+
callback: callback,
|
|
12847
|
+
result: {
|
|
12848
|
+
notificationType: ""
|
|
12849
|
+
}
|
|
12850
|
+
};
|
|
12851
|
+
|
|
12852
|
+
var request = this.buildTradeSubscribeRequest(notificationType, tradeSub, _streamerApi.messages.control.Action.SUBSCRIBE);
|
|
12853
|
+
var id = this.requestid.next();
|
|
12854
|
+
tradeSub.id.push(id);
|
|
12855
|
+
this.pendingTradeSubscription[id] = tradeSub;
|
|
12856
|
+
request.id = id;
|
|
12857
|
+
|
|
12858
|
+
this.send(request);
|
|
12859
|
+
};
|
|
12860
|
+
|
|
12861
|
+
StompStream.prototype.getSessionStats = function getSessionStats() {
|
|
12862
|
+
if (this.isClosed()) {
|
|
12863
|
+
var event = events.error("Stream is disconnected", {
|
|
12864
|
+
code: -1,
|
|
12865
|
+
reason: "Already disconnected"
|
|
12866
|
+
});
|
|
12867
|
+
this.events.fire("error", event);
|
|
12868
|
+
return;
|
|
12869
|
+
}
|
|
12870
|
+
var msg = new _streamerApi.messages.control.StatsMessage();
|
|
12871
|
+
this.send(msg);
|
|
12872
|
+
};
|
|
12873
|
+
|
|
12874
|
+
StompStream.prototype.cmdFilterRefreshNews = function cmdFilterRefreshNews(callbackOrNothing) {
|
|
12875
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
12876
|
+
|
|
12877
|
+
if (this.isClosed()) {
|
|
12878
|
+
var event = events.error("Stream is disconnected", {
|
|
12879
|
+
code: -1,
|
|
12880
|
+
reason: "Already disconnected"
|
|
12881
|
+
});
|
|
12882
|
+
this.events.fire("error", event);
|
|
12883
|
+
if (callback) {
|
|
12884
|
+
callback(event);
|
|
12885
|
+
}
|
|
12886
|
+
return;
|
|
12887
|
+
}
|
|
12888
|
+
|
|
12889
|
+
var newsCmdFilterRefresh = {
|
|
12890
|
+
callback: callback,
|
|
12891
|
+
mimetype: this.format
|
|
12892
|
+
};
|
|
12893
|
+
|
|
12894
|
+
var request = this.buildNewsCommandRequest(newsCmdFilterRefresh, 'NEWSCMDFILTERREFRESH');
|
|
12895
|
+
this.send(request);
|
|
12896
|
+
};
|
|
12897
|
+
|
|
12898
|
+
StompStream.prototype.cmdFilterNews = function cmdFilterNews(callbackOrNothing) {
|
|
12899
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
12900
|
+
|
|
12901
|
+
if (this.isClosed()) {
|
|
12902
|
+
var event = events.error("Stream is disconnected", {
|
|
12903
|
+
code: -1,
|
|
12904
|
+
reason: "Already disconnected"
|
|
12905
|
+
});
|
|
12906
|
+
this.events.fire("error", event);
|
|
12907
|
+
if (callback) {
|
|
12908
|
+
callback(event);
|
|
12909
|
+
}
|
|
12910
|
+
return;
|
|
12911
|
+
}
|
|
12912
|
+
|
|
12913
|
+
var newsCmdFilter = {
|
|
12914
|
+
callback: callback,
|
|
12915
|
+
mimetype: this.format
|
|
12916
|
+
};
|
|
12917
|
+
|
|
12918
|
+
var request = this.buildNewsCommandRequest(newsCmdFilter, 'NEWSCMDFILTER');
|
|
12919
|
+
this.send(request);
|
|
12920
|
+
};
|
|
12921
|
+
|
|
12922
|
+
StompStream.prototype.unsubscribe = function unsubscribe(symbols, types, optsOrCallback, callbackOrNothing) {
|
|
12923
|
+
var _this4 = this;
|
|
12924
|
+
|
|
12925
|
+
symbols = (Array.isArray(symbols) ? symbols : [symbols]).map(function (s) {
|
|
12926
|
+
return s.toUpperCase();
|
|
12927
|
+
});
|
|
12928
|
+
types = Array.isArray(types) ? types : [types].map(function (s) {
|
|
12929
|
+
return s.toUpperCase();
|
|
12930
|
+
});
|
|
12931
|
+
|
|
12932
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
12933
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
12934
|
+
|
|
12935
|
+
if (this.isClosed()) {
|
|
12936
|
+
var event = events.error("Stream is disconnected", {
|
|
12937
|
+
code: -1,
|
|
12938
|
+
reason: "Already disconnected"
|
|
12939
|
+
});
|
|
12940
|
+
this.events.fire("error", event);
|
|
12941
|
+
if (callback) {
|
|
12942
|
+
callback(event);
|
|
12943
|
+
}
|
|
12944
|
+
return;
|
|
12945
|
+
}
|
|
12946
|
+
|
|
12947
|
+
var unsubscription = {
|
|
12948
|
+
ids: [],
|
|
12949
|
+
types: types,
|
|
12950
|
+
mimetype: this.format,
|
|
12951
|
+
callback: callback,
|
|
12952
|
+
result: {
|
|
12953
|
+
unsubscribed: []
|
|
12954
|
+
}
|
|
12955
|
+
};
|
|
12956
|
+
|
|
12957
|
+
if (symbols.length === 0 || types.length === 0) {
|
|
12958
|
+
if (callback) {
|
|
12959
|
+
callback(null, unsubscription.result);
|
|
12960
|
+
}
|
|
12961
|
+
}
|
|
12962
|
+
|
|
12963
|
+
var requests = this._prepareSubscriptionRequests(symbols, unsubscription, _streamerApi.messages.control.Action.UNSUBSCRIBE, opts);
|
|
12964
|
+
requests.forEach(function (request) {
|
|
12965
|
+
var id = _this4.requestid.next();
|
|
12966
|
+
unsubscription.ids.push(id);
|
|
12967
|
+
_this4.pendingUnsubscriptions[id] = unsubscription;
|
|
12968
|
+
request.id = id;
|
|
12969
|
+
|
|
12970
|
+
_this4.send(request);
|
|
12971
|
+
});
|
|
12972
|
+
};
|
|
12973
|
+
|
|
12974
|
+
StompStream.prototype.unsubscribeExchange = function unsubscribeExchange(exchanges, optsOrCallback, callbackOrNothing) {
|
|
12975
|
+
var _this5 = this;
|
|
12976
|
+
|
|
12977
|
+
exchanges = (Array.isArray(exchanges) ? exchanges : [exchanges]).map(function (e) {
|
|
12978
|
+
return e.toUpperCase();
|
|
12979
|
+
});
|
|
12980
|
+
|
|
12981
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
12982
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
12983
|
+
|
|
12984
|
+
if (this.isClosed()) {
|
|
12985
|
+
var event = events.error("Stream is disconnected", {
|
|
12986
|
+
code: -1,
|
|
12987
|
+
reason: "Already disconnected"
|
|
12988
|
+
});
|
|
12989
|
+
this.events.fire("error", event);
|
|
12990
|
+
if (callback) {
|
|
12991
|
+
callback(event);
|
|
12992
|
+
}
|
|
12993
|
+
return;
|
|
12994
|
+
}
|
|
12995
|
+
|
|
12996
|
+
var exchangeSub = {
|
|
12997
|
+
callback: callback,
|
|
12998
|
+
mimetype: this.format,
|
|
12999
|
+
id: [],
|
|
13000
|
+
result: {
|
|
13001
|
+
subscribed: [],
|
|
13002
|
+
rejected: []
|
|
13003
|
+
}
|
|
13004
|
+
};
|
|
13005
|
+
//check for empty string
|
|
13006
|
+
if (exchanges.length === 0) {
|
|
13007
|
+
callback(null, exchangeSub.result);
|
|
13008
|
+
}
|
|
13009
|
+
|
|
13010
|
+
var requests = this.prepareExchangeSubscriptionRequest(exchanges, exchangeSub, _streamerApi.messages.control.Action.UNSUBSCRIBE, opts);
|
|
13011
|
+
|
|
13012
|
+
requests.forEach(function (request) {
|
|
13013
|
+
var id = _this5.requestid.next();
|
|
13014
|
+
exchangeSub.id.push(id);
|
|
13015
|
+
exchangeSub.exchange = request.exchange;
|
|
13016
|
+
exchangeSub.conflation = request.conflation;
|
|
13017
|
+
_this5.pendingExchangeUnsubscriptions[id] = exchangeSub;
|
|
13018
|
+
request.id = id;
|
|
13019
|
+
_this5.send(request);
|
|
13020
|
+
});
|
|
13021
|
+
};
|
|
13022
|
+
|
|
13023
|
+
StompStream.prototype.unsubscribeNews = function unsubscribeNews(newsFilters, optsOrCallback, callbackOrNothing) {
|
|
13024
|
+
newsFilters = Array.isArray(newsFilters) ? newsFilters : [newsFilters];
|
|
13025
|
+
|
|
13026
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
13027
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
13028
|
+
|
|
13029
|
+
if (this.isClosed()) {
|
|
13030
|
+
var event = events.error("Stream is disconnected", {
|
|
13031
|
+
code: -1,
|
|
13032
|
+
reason: "Already disconnected"
|
|
13033
|
+
});
|
|
13034
|
+
this.events.fire("error", event);
|
|
13035
|
+
if (callback) {
|
|
13036
|
+
callback(event);
|
|
13037
|
+
}
|
|
13038
|
+
return;
|
|
13039
|
+
}
|
|
13040
|
+
|
|
13041
|
+
var unsubscription = {
|
|
13042
|
+
callback: callback,
|
|
13043
|
+
mimetype: this.format,
|
|
13044
|
+
id: [],
|
|
13045
|
+
result: {
|
|
13046
|
+
unsubscribed: []
|
|
13047
|
+
}
|
|
13048
|
+
};
|
|
13049
|
+
|
|
13050
|
+
if (newsFilters.length === 0) {
|
|
13051
|
+
if (callback) {
|
|
13052
|
+
callback(null, unsubscription.result);
|
|
13053
|
+
}
|
|
13054
|
+
}
|
|
13055
|
+
|
|
13056
|
+
var request = this.buildNewsSubscribeRequest(newsFilters, unsubscription, _streamerApi.messages.control.Action.UNSUBSCRIBE, opts);
|
|
13057
|
+
|
|
13058
|
+
var id = this.requestid.next();
|
|
13059
|
+
unsubscription.id.push(id);
|
|
13060
|
+
this.pendingNewsUnsubscriptions[id] = unsubscription;
|
|
13061
|
+
request.id = id;
|
|
13062
|
+
|
|
13063
|
+
this.send(request);
|
|
13064
|
+
};
|
|
13065
|
+
|
|
13066
|
+
StompStream.prototype.unsubscribeTrade = function unsubscribeTrade(notificationType, optsOrCallback, callbackOrNothing) {
|
|
13067
|
+
var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
|
|
13068
|
+
var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
|
|
13069
|
+
|
|
13070
|
+
if (this.isClosed()) {
|
|
13071
|
+
var event = events.error("Stream is disconnected", {
|
|
13072
|
+
code: -1,
|
|
13073
|
+
reason: "Already disconnected"
|
|
13074
|
+
});
|
|
13075
|
+
this.events.fire("error", event);
|
|
13076
|
+
return;
|
|
13077
|
+
}
|
|
13078
|
+
|
|
13079
|
+
var tradeSub = {
|
|
13080
|
+
id: [],
|
|
13081
|
+
mimetype: this.format,
|
|
13082
|
+
callback: callback,
|
|
13083
|
+
result: {
|
|
13084
|
+
notificationType: ""
|
|
13085
|
+
}
|
|
13086
|
+
};
|
|
13087
|
+
|
|
13088
|
+
var request = this.buildTradeSubscribeRequest(notificationType, tradeSub, _streamerApi.messages.control.Action.UNSUBSCRIBE);
|
|
13089
|
+
var id = this.requestid.next();
|
|
13090
|
+
tradeSub.id.push(id);
|
|
13091
|
+
this.pendingTradeUnsubscription[id] = tradeSub;
|
|
13092
|
+
request.id = id;
|
|
13093
|
+
|
|
13094
|
+
this.send(request);
|
|
13095
|
+
};
|
|
13096
|
+
|
|
13097
|
+
StompStream.prototype._handlejsonmsg = function _handlejsonmsg(msg) {
|
|
13098
|
+
if ((0, _streamerUtils.iscontrolmessage)(msg)) {
|
|
13099
|
+
this.handlectrlmsg(msg);
|
|
13100
|
+
} else if ((0, _streamerUtils.isdatamessage)(msg)) {
|
|
13101
|
+
this._handledatamsg(msg);
|
|
13102
|
+
} else {
|
|
13103
|
+
this.events.fire("error", msg);
|
|
13104
|
+
}
|
|
13105
|
+
};
|
|
13106
|
+
|
|
13107
|
+
StompStream.prototype._prepareSubscriptionRequests = function _prepareSubscriptionRequests(symbols, subscription, action, opts) {
|
|
13108
|
+
var currentApproximateNumberOfEntitlements = 0;
|
|
13109
|
+
var lastAddedSymbolIndex = -1;
|
|
13110
|
+
var numberOfSymbols = symbols.length;
|
|
13111
|
+
var isOrderbookSubscription = subscription.types.includes("ORDERBOOK");
|
|
13112
|
+
var requests = [];
|
|
13113
|
+
for (var i = 0; i < numberOfSymbols; i++) {
|
|
13114
|
+
currentApproximateNumberOfEntitlements = this._getUpdatedNumberOfEntitlements(subscription.types.length, currentApproximateNumberOfEntitlements, symbols[i], isOrderbookSubscription);
|
|
13115
|
+
if (currentApproximateNumberOfEntitlements >= this.maxEntitlementsPerSubscription || i === numberOfSymbols - 1) {
|
|
13116
|
+
requests.push(this._buildRequest(symbols.slice(lastAddedSymbolIndex + 1, i + 1), subscription, action, opts));
|
|
13117
|
+
lastAddedSymbolIndex = i;
|
|
13118
|
+
currentApproximateNumberOfEntitlements = 0;
|
|
13119
|
+
}
|
|
13120
|
+
}
|
|
13121
|
+
return requests;
|
|
13122
|
+
};
|
|
13123
|
+
|
|
13124
|
+
StompStream.prototype._buildRequest = function _buildRequest(symbols, sub, action, opts) {
|
|
13125
|
+
var msg = new _streamerApi.messages.control.SubscribeMessage();
|
|
13126
|
+
msg.action = action;
|
|
13127
|
+
msg.symbols = symbols;
|
|
13128
|
+
msg.types = sub.types;
|
|
13129
|
+
msg.mimetype = sub.mimetype;
|
|
13130
|
+
if (opts && opts.skipHeavyInitialLoad) {
|
|
13131
|
+
msg.skipHeavyInitialLoad = true;
|
|
13132
|
+
}
|
|
13133
|
+
if (opts) {
|
|
13134
|
+
msg.conflation = opts.conflation;
|
|
13135
|
+
}
|
|
13136
|
+
return msg;
|
|
13137
|
+
};
|
|
13138
|
+
|
|
13139
|
+
StompStream.prototype.prepareExchangeSubscriptionRequest = function prepareExchangeSubscriptionRequest(exchanges, exchangeSub, action, opts) {
|
|
13140
|
+
var requests = [];
|
|
13141
|
+
var numberOfExchanges = exchanges.length;
|
|
13142
|
+
for (var i = 0; i < numberOfExchanges; i++) {
|
|
13143
|
+
requests.push(this.buildExchangeRequest(exchanges[i], exchangeSub, action, opts));
|
|
13144
|
+
}
|
|
13145
|
+
return requests;
|
|
13146
|
+
};
|
|
13147
|
+
|
|
13148
|
+
StompStream.prototype.buildExchangeRequest = function buildExchangeRequest(exchange, sub, action, opts) {
|
|
13149
|
+
var msg = new _streamerApi.messages.control.ExchangeSubscribeMessage();
|
|
13150
|
+
msg.action = action;
|
|
13151
|
+
msg.exchange = exchange;
|
|
13152
|
+
msg.mimetype = sub.mimetype;
|
|
13153
|
+
if (opts) {
|
|
13154
|
+
msg.conflation = opts.conflation;
|
|
13155
|
+
}
|
|
13156
|
+
return msg;
|
|
13157
|
+
};
|
|
13158
|
+
|
|
13159
|
+
StompStream.prototype.buildNewsSubscribeRequest = function buildNewsSubscribeRequest(newsFilters, sub, action, opts) {
|
|
13160
|
+
var msg = new _streamerApi.messages.control.NewsSubscribeMessage();
|
|
13161
|
+
msg.action = action;
|
|
13162
|
+
msg.newsFilters = newsFilters;
|
|
13163
|
+
msg.mimetype = sub.mimetype;
|
|
13164
|
+
if (opts && opts.skipHeavyInitialLoad) {
|
|
13165
|
+
msg.skipHeavyInitialLoad = opts.skipHeavyInitialLoad;
|
|
13166
|
+
}
|
|
13167
|
+
return msg;
|
|
13168
|
+
};
|
|
13169
|
+
|
|
13170
|
+
StompStream.prototype.buildAlertsSubUnsubRequest = function buildAlertsSubUnsubRequest(opr, subscription) {
|
|
13171
|
+
var msg = new _streamerApi.messages.control.AlertsSubUnsubMessage();
|
|
13172
|
+
msg.operation = opr;
|
|
13173
|
+
msg.mimetype = subscription.mimetype;
|
|
13174
|
+
return msg;
|
|
13175
|
+
};
|
|
13176
|
+
|
|
13177
|
+
StompStream.prototype.buildTradeSubscribeRequest = function buildTradeSubscribeRequest(notificationType, sub, action) {
|
|
13178
|
+
var msg = new _streamerApi.messages.control.TradeSubscribeMessage();
|
|
13179
|
+
msg.action = action;
|
|
13180
|
+
msg.notificationType = notificationType;
|
|
13181
|
+
msg.mimetype = sub.mimetype;
|
|
13182
|
+
return msg;
|
|
13183
|
+
};
|
|
13184
|
+
|
|
13185
|
+
StompStream.prototype.buildNewsCommandRequest = function buildNewsCommandRequest(sub, newsAction) {
|
|
13186
|
+
var msg = new _streamerApi.messages.control.NewsCommandMessage();
|
|
13187
|
+
msg.newsAction = newsAction;
|
|
13188
|
+
msg.mimetype = sub.mimetype;
|
|
13189
|
+
return msg;
|
|
13190
|
+
};
|
|
13191
|
+
|
|
13192
|
+
StompStream.prototype._getUpdatedNumberOfEntitlements = function _getUpdatedNumberOfEntitlements(numberOfSubscriptionTypes, currentApproximateNumberOfEntitlements, symbol, isSubscribeToOrderbook) {
|
|
13193
|
+
var result = currentApproximateNumberOfEntitlements;
|
|
13194
|
+
if (isSubscribeToOrderbook && symbol.endsWith(CONSOLIDATED_SYMBOL_SUFFIX)) {
|
|
13195
|
+
result += CONSOLIDATED_SYMBOL_ENTITLEMENTS_COEFFICIENT * numberOfSubscriptionTypes;
|
|
13196
|
+
} else {
|
|
13197
|
+
result += numberOfSubscriptionTypes;
|
|
13198
|
+
}
|
|
13199
|
+
return result;
|
|
13200
|
+
};
|
|
13201
|
+
|
|
13202
|
+
StompStream.prototype.handlectrlmsg = function handlectrlmsg(msg) {
|
|
13203
|
+
this.log.debug(_formatting.msgfmt.fmt(msg));
|
|
13204
|
+
var _type = (0, _streamerUtils.messagetype)(msg);
|
|
13205
|
+
switch (_type) {
|
|
13206
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.HEARTBEAT:
|
|
13207
|
+
this.onHeartbeat(msg);
|
|
13208
|
+
break;
|
|
13209
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE:
|
|
13210
|
+
this.onSubscribeResponse(msg);
|
|
13211
|
+
break;
|
|
13212
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE:
|
|
13213
|
+
this.onExchangeSubscribeResponse(msg);
|
|
13214
|
+
break;
|
|
13215
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_SUBSCRIBE_RESPONSE:
|
|
13216
|
+
this.onNewsSubscribeResponse(msg);
|
|
13217
|
+
break;
|
|
13218
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB_RESPONSE:
|
|
13219
|
+
this.onAlertsSubUnsubResponse(msg);
|
|
13220
|
+
break;
|
|
13221
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE_RESPONSE:
|
|
13222
|
+
this.onTradeSubscribeResponse(msg);
|
|
13223
|
+
break;
|
|
13224
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE:
|
|
13225
|
+
this.onUnsubscribeResponse(msg);
|
|
13226
|
+
break;
|
|
13227
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE:
|
|
13228
|
+
this.onExchangeUnsubscribeResponse(msg);
|
|
13229
|
+
break;
|
|
13230
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_UNSUBSCRIBE_RESPONSE:
|
|
13231
|
+
this.onNewsUnsubscribeResponse(msg);
|
|
13232
|
+
break;
|
|
13233
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_CMD_FILTER_REFRESH_RESPONSE:
|
|
13234
|
+
this.onNewsCmdFilterRefreshResponse(msg);
|
|
13235
|
+
break;
|
|
13236
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_CMD_FILTER_RESPONSE:
|
|
13237
|
+
this.onNewsCmdFilterResponse(msg);
|
|
13238
|
+
break;
|
|
13239
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE:
|
|
13240
|
+
this.onTradeUnsubscribeResponse(msg);
|
|
13241
|
+
break;
|
|
13242
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.CONNECT_RESPONSE:
|
|
13243
|
+
this.onConnectResponse(msg);
|
|
13244
|
+
break;
|
|
13245
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.CONNECTION_CLOSE:
|
|
13246
|
+
this.onConnectionClose(msg);
|
|
13247
|
+
break;
|
|
13248
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.SLOW_CONNECTION:
|
|
13249
|
+
this.onSlowConnection(msg);
|
|
13250
|
+
break;
|
|
13251
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.STATS_RESPONSE:
|
|
13252
|
+
this.onStatsResponse(msg);
|
|
13253
|
+
break;
|
|
13254
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT:
|
|
13255
|
+
this.onInitialDataSent(msg);
|
|
13256
|
+
break;
|
|
13257
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE:
|
|
13258
|
+
this.onResubscribeMessage(msg);
|
|
13259
|
+
break;
|
|
13260
|
+
case _streamerApi.messages.MessageTypeNames.ctrl.OPEN_FLOW:
|
|
13261
|
+
this.onOpenFlow(msg);
|
|
13262
|
+
break;
|
|
13263
|
+
}
|
|
13264
|
+
};
|
|
13265
|
+
|
|
13266
|
+
StompStream.prototype.onHeartbeat = function onHeartbeat(msg) {};
|
|
13267
|
+
|
|
13268
|
+
StompStream.prototype.onSubscribeResponse = function onSubscribeResponse(msg) {
|
|
13269
|
+
var subscription = this.pendingsubscriptions[msg.__id];
|
|
13270
|
+
var callback = subscription.callback;
|
|
13271
|
+
|
|
13272
|
+
(0, _utils.removeFromArray)(subscription.ids, msg.__id);
|
|
13273
|
+
delete this.pendingsubscriptions[msg.__id];
|
|
13274
|
+
|
|
13275
|
+
if (msg.code != 200 && !subscription.failed) {
|
|
13276
|
+
subscription.failed = true;
|
|
13277
|
+
var event = events.error("Error subscribing", {
|
|
13278
|
+
code: msg.code,
|
|
13279
|
+
reason: msg.reason
|
|
13280
|
+
});
|
|
13281
|
+
this.events.fire("error", event);
|
|
13282
|
+
if (callback) {
|
|
13283
|
+
subscription.callback(event);
|
|
13284
|
+
}
|
|
13285
|
+
return;
|
|
13286
|
+
}
|
|
13287
|
+
|
|
13288
|
+
var result = subscription.result;
|
|
13289
|
+
|
|
13290
|
+
if (msg.entitlements) {
|
|
13291
|
+
for (var _iterator = msg.entitlements, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
|
13292
|
+
var _ref;
|
|
13293
|
+
|
|
13294
|
+
if (_isArray) {
|
|
13295
|
+
if (_i >= _iterator.length) break;
|
|
13296
|
+
_ref = _iterator[_i++];
|
|
13297
|
+
} else {
|
|
13298
|
+
_i = _iterator.next();
|
|
13299
|
+
if (_i.done) break;
|
|
13300
|
+
_ref = _i.value;
|
|
13301
|
+
}
|
|
13302
|
+
|
|
13303
|
+
var key = _ref;
|
|
13304
|
+
var _key = key,
|
|
13305
|
+
symbol = _key.symbol,
|
|
13306
|
+
marketdatatype = _key.marketdatatype,
|
|
13307
|
+
entitlement = _key.entitlement;
|
|
13308
|
+
|
|
13309
|
+
key = { symbol: symbol, type: marketdatatype };
|
|
13310
|
+
if (entitlement !== 'NA') {
|
|
13311
|
+
this.log.debug('SUBSCRIBED <' + symbol + ', ' + marketdatatype + '>');
|
|
13312
|
+
key.entitlement = entitlement;
|
|
13313
|
+
result.subscribed.push(key);
|
|
13314
|
+
} else {
|
|
13315
|
+
this.log.warn('NOT ENTITLED <' + symbol + ',' + marketdatatype + '>');
|
|
13316
|
+
result.unentitled.push(key);
|
|
13317
|
+
}
|
|
13318
|
+
}
|
|
13319
|
+
}
|
|
13320
|
+
if (msg.rejectedSymbols) {
|
|
13321
|
+
for (var _iterator2 = msg.rejectedSymbols, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
|
|
13322
|
+
var _ref2;
|
|
13323
|
+
|
|
13324
|
+
if (_isArray2) {
|
|
13325
|
+
if (_i2 >= _iterator2.length) break;
|
|
13326
|
+
_ref2 = _iterator2[_i2++];
|
|
13327
|
+
} else {
|
|
13328
|
+
_i2 = _iterator2.next();
|
|
13329
|
+
if (_i2.done) break;
|
|
13330
|
+
_ref2 = _i2.value;
|
|
13331
|
+
}
|
|
13332
|
+
|
|
13333
|
+
var symbol = _ref2;
|
|
13334
|
+
|
|
13335
|
+
this.log.warn('REJECTED ' + symbol);
|
|
13336
|
+
result.rejected.push(symbol);
|
|
13337
|
+
}
|
|
13338
|
+
}
|
|
13339
|
+
if (msg.invalidSymbols) {
|
|
13340
|
+
for (var _iterator3 = msg.invalidSymbols, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
|
|
13341
|
+
var _result$invalidSymbol;
|
|
13342
|
+
|
|
13343
|
+
var _ref3;
|
|
13344
|
+
|
|
13345
|
+
if (_isArray3) {
|
|
13346
|
+
if (_i3 >= _iterator3.length) break;
|
|
13347
|
+
_ref3 = _iterator3[_i3++];
|
|
13348
|
+
} else {
|
|
13349
|
+
_i3 = _iterator3.next();
|
|
13350
|
+
if (_i3.done) break;
|
|
13351
|
+
_ref3 = _i3.value;
|
|
13352
|
+
}
|
|
13353
|
+
|
|
13354
|
+
var _symbol2 = _ref3;
|
|
13355
|
+
|
|
13356
|
+
this.log.warn('INVALID SYMBOL ' + _symbol2);
|
|
13357
|
+
(_result$invalidSymbol = result.invalidSymbols).push.apply(_result$invalidSymbol, msg.invalidSymbols);
|
|
13358
|
+
}
|
|
13359
|
+
}
|
|
13360
|
+
|
|
13361
|
+
if (subscription.ids.length === 0 && !subscription.failed) {
|
|
13362
|
+
if (callback) {
|
|
13363
|
+
callback(null, subscription.result);
|
|
13364
|
+
}
|
|
13365
|
+
}
|
|
13366
|
+
};
|
|
13367
|
+
|
|
13368
|
+
StompStream.prototype.onExchangeSubscribeResponse = function onExchangeSubscribeResponse(msg) {
|
|
13369
|
+
var exchangeSub = this.pendingExchangeSubscriptions[msg.__id];
|
|
13370
|
+
var callback = exchangeSub.callback;
|
|
13371
|
+
|
|
13372
|
+
(0, _utils.removeFromArray)(exchangeSub.id, msg.__id);
|
|
13373
|
+
delete this.pendingExchangeSubscriptions[msg.__id];
|
|
13374
|
+
|
|
13375
|
+
console.log(msg);
|
|
13376
|
+
if (msg.code != 200) {
|
|
13377
|
+
var event = events.error("Error subscribing", {
|
|
13378
|
+
code: msg.code,
|
|
13379
|
+
reason: msg.reason
|
|
13380
|
+
});
|
|
13381
|
+
this.events.fire("error", event);
|
|
13382
|
+
if (callback) {
|
|
13383
|
+
exchangeSub.callback(event);
|
|
13384
|
+
}
|
|
13385
|
+
return;
|
|
13386
|
+
}
|
|
13387
|
+
if (exchangeSub.id.length === 0) {
|
|
13388
|
+
if (callback) {
|
|
13389
|
+
callback(null, exchangeSub);
|
|
13390
|
+
}
|
|
13391
|
+
}
|
|
13392
|
+
};
|
|
13393
|
+
|
|
13394
|
+
StompStream.prototype.onNewsSubscribeResponse = function onNewsSubscribeResponse(msg) {
|
|
13395
|
+
var newsSub = this.pendingNewsSubscriptions[msg.__id];
|
|
13396
|
+
var callback = newsSub.callback;
|
|
13397
|
+
|
|
13398
|
+
(0, _utils.removeFromArray)(newsSub.id, msg.__id);
|
|
13399
|
+
delete this.pendingNewsSubscriptions[msg.__id];
|
|
13400
|
+
|
|
13401
|
+
var result = newsSub.result;
|
|
13402
|
+
|
|
13403
|
+
console.log(msg);
|
|
13404
|
+
if (msg.code != 200) {
|
|
13405
|
+
var event = events.error("Error subscribing to news", {
|
|
13406
|
+
code: msg.code,
|
|
13407
|
+
reason: msg.reason
|
|
13408
|
+
});
|
|
13409
|
+
this.events.fire("error", event);
|
|
13410
|
+
if (callback) {
|
|
13411
|
+
newsSub.callback(event);
|
|
13412
|
+
}
|
|
13413
|
+
return;
|
|
13414
|
+
}
|
|
13415
|
+
if (msg.newsFilters) {
|
|
13416
|
+
for (var _iterator4 = msg.newsFilters, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) {
|
|
13417
|
+
var _ref4;
|
|
13418
|
+
|
|
13419
|
+
if (_isArray4) {
|
|
13420
|
+
if (_i4 >= _iterator4.length) break;
|
|
13421
|
+
_ref4 = _iterator4[_i4++];
|
|
13422
|
+
} else {
|
|
13423
|
+
_i4 = _iterator4.next();
|
|
13424
|
+
if (_i4.done) break;
|
|
13425
|
+
_ref4 = _i4.value;
|
|
13426
|
+
}
|
|
13427
|
+
|
|
13428
|
+
var newsFilter = _ref4;
|
|
13429
|
+
|
|
13430
|
+
result.newsFilters.push(newsFilter);
|
|
13431
|
+
}
|
|
13432
|
+
}
|
|
13433
|
+
if (msg.rejectedNewsFilters) {
|
|
13434
|
+
for (var _iterator5 = msg.rejectedNewsFilters, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) {
|
|
13435
|
+
var _ref5;
|
|
13436
|
+
|
|
13437
|
+
if (_isArray5) {
|
|
13438
|
+
if (_i5 >= _iterator5.length) break;
|
|
13439
|
+
_ref5 = _iterator5[_i5++];
|
|
13440
|
+
} else {
|
|
13441
|
+
_i5 = _iterator5.next();
|
|
13442
|
+
if (_i5.done) break;
|
|
13443
|
+
_ref5 = _i5.value;
|
|
13444
|
+
}
|
|
13445
|
+
|
|
13446
|
+
var rejectedFilter = _ref5;
|
|
13447
|
+
|
|
13448
|
+
result.rejectedNewsFilters.push(rejectedFilter);
|
|
13449
|
+
}
|
|
13450
|
+
}
|
|
13451
|
+
if (msg.unentitledNewsFilters) {
|
|
13452
|
+
for (var _iterator6 = msg.unentitledNewsFilters, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) {
|
|
13453
|
+
var _ref6;
|
|
13454
|
+
|
|
13455
|
+
if (_isArray6) {
|
|
13456
|
+
if (_i6 >= _iterator6.length) break;
|
|
13457
|
+
_ref6 = _iterator6[_i6++];
|
|
13458
|
+
} else {
|
|
13459
|
+
_i6 = _iterator6.next();
|
|
13460
|
+
if (_i6.done) break;
|
|
13461
|
+
_ref6 = _i6.value;
|
|
13462
|
+
}
|
|
13463
|
+
|
|
13464
|
+
var unentitledFilter = _ref6;
|
|
13465
|
+
|
|
13466
|
+
result.unentitledNewsFilters.push(unentitledFilter);
|
|
13467
|
+
}
|
|
13468
|
+
}
|
|
13469
|
+
|
|
13470
|
+
if (newsSub.id.length === 0) {
|
|
13471
|
+
if (callback) {
|
|
13472
|
+
callback(null, newsSub.result);
|
|
13473
|
+
}
|
|
13474
|
+
}
|
|
13475
|
+
};
|
|
13476
|
+
|
|
13477
|
+
StompStream.prototype.onAlertsSubUnsubResponse = function onAlertsSubUnsubResponse(msg) {
|
|
13478
|
+
var alertsSub = this.pendingAlertSubscription[msg.__id];
|
|
13479
|
+
var callback = alertsSub.callback;
|
|
13480
|
+
|
|
13481
|
+
(0, _utils.removeFromArray)(alertsSub.id, msg.__id);
|
|
13482
|
+
delete this.pendingAlertSubscription[msg.__id];
|
|
13483
|
+
|
|
13484
|
+
console.log(msg);
|
|
13485
|
+
if (msg.code != 200 && !alertsSub.failed) {
|
|
13486
|
+
alertsSub.failed = true;
|
|
13487
|
+
var event = events.error("Error subscribing", {
|
|
13488
|
+
code: msg.code,
|
|
13489
|
+
reason: msg.reason
|
|
13490
|
+
});
|
|
13491
|
+
this.events.fire("error", event);
|
|
13492
|
+
if (callback) {
|
|
13493
|
+
alertsSub.callback(event);
|
|
13494
|
+
}
|
|
13495
|
+
return;
|
|
13496
|
+
}
|
|
13497
|
+
|
|
13498
|
+
var result = alertsSub.result;
|
|
13499
|
+
|
|
13500
|
+
if (msg.operation) {
|
|
13501
|
+
this.log.debug('Alerts ' + msg.operation);
|
|
13502
|
+
result.operation = msg.operation;
|
|
13503
|
+
}
|
|
13504
|
+
|
|
13505
|
+
if (alertsSub.id.length === 0) {
|
|
13506
|
+
if (callback) {
|
|
13507
|
+
callback(null, alertsSub.result);
|
|
13508
|
+
}
|
|
13509
|
+
}
|
|
13510
|
+
};
|
|
13511
|
+
|
|
13512
|
+
StompStream.prototype.onTradeSubscribeResponse = function onTradeSubscribeResponse(msg) {
|
|
13513
|
+
var tradeSub = this.pendingTradeSubscription[msg.__id];
|
|
13514
|
+
var callback = tradeSub.callback;
|
|
13515
|
+
|
|
13516
|
+
(0, _utils.removeFromArray)(tradeSub.id, msg.__id);
|
|
13517
|
+
delete this.pendingTradeSubscription[msg.__id];
|
|
13518
|
+
|
|
13519
|
+
console.log(msg);
|
|
13520
|
+
if (msg.code != 200 && !tradeSub.failed) {
|
|
13521
|
+
tradeSub.failed = true;
|
|
13522
|
+
var event = events.error("Error subscribing", {
|
|
13523
|
+
code: msg.code,
|
|
13524
|
+
reason: msg.reason
|
|
13525
|
+
});
|
|
13526
|
+
this.events.fire("error", event);
|
|
13527
|
+
if (callback) {
|
|
13528
|
+
tradeSub.callback(event);
|
|
13529
|
+
}
|
|
13530
|
+
return;
|
|
13531
|
+
}
|
|
13532
|
+
|
|
13533
|
+
var result = tradeSub.result;
|
|
13534
|
+
|
|
13535
|
+
if (msg.notificationType) {
|
|
13536
|
+
this.log.debug('Trade ' + msg.notificationType);
|
|
13537
|
+
result.notificationType = msg.notificationType;
|
|
13538
|
+
}
|
|
13539
|
+
|
|
13540
|
+
if (tradeSub.id.length === 0) {
|
|
13541
|
+
if (callback) {
|
|
13542
|
+
callback(null, tradeSub.result);
|
|
13543
|
+
}
|
|
13544
|
+
}
|
|
13545
|
+
};
|
|
13546
|
+
|
|
13547
|
+
StompStream.prototype.onNewsUnsubscribeResponse = function onNewsUnsubscribeResponse(msg) {
|
|
13548
|
+
var newsUnsub = this.pendingNewsUnsubscriptions[msg.__id];
|
|
13549
|
+
var callback = newsUnsub.callback;
|
|
13550
|
+
|
|
13551
|
+
(0, _utils.removeFromArray)(newsUnsub.id, msg.__id);
|
|
13552
|
+
delete this.pendingNewsUnsubscriptions[msg.__id];
|
|
13553
|
+
|
|
13554
|
+
console.log("msg", msg);
|
|
13555
|
+
var result = newsUnsub.result;
|
|
13556
|
+
|
|
13557
|
+
if (msg.code != 200 && !newsUnsub.failed) {
|
|
13558
|
+
newsUnsub.failed = true;
|
|
13559
|
+
var event = events.error("Error unsubscribing to news", {
|
|
13560
|
+
code: msg.code,
|
|
13561
|
+
reason: msg.reason
|
|
13562
|
+
});
|
|
13563
|
+
this.events.fire("error", event);
|
|
13564
|
+
if (callback) {
|
|
13565
|
+
newsUnsub.callback(event);
|
|
13566
|
+
}
|
|
13567
|
+
return;
|
|
13568
|
+
}
|
|
13569
|
+
|
|
13570
|
+
if (msg.newsFilters) {
|
|
13571
|
+
for (var _iterator7 = msg.newsFilters, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) {
|
|
13572
|
+
var _ref7;
|
|
13573
|
+
|
|
13574
|
+
if (_isArray7) {
|
|
13575
|
+
if (_i7 >= _iterator7.length) break;
|
|
13576
|
+
_ref7 = _iterator7[_i7++];
|
|
13577
|
+
} else {
|
|
13578
|
+
_i7 = _iterator7.next();
|
|
13579
|
+
if (_i7.done) break;
|
|
13580
|
+
_ref7 = _i7.value;
|
|
13581
|
+
}
|
|
13582
|
+
|
|
13583
|
+
var newsFilter = _ref7;
|
|
13584
|
+
|
|
13585
|
+
result.unsubscribed.push(newsFilter);
|
|
13586
|
+
}
|
|
13587
|
+
}
|
|
13588
|
+
|
|
13589
|
+
if (newsUnsub.id.length === 0) {
|
|
13590
|
+
if (callback) {
|
|
13591
|
+
callback(null, newsUnsub.result);
|
|
13592
|
+
}
|
|
13593
|
+
}
|
|
13594
|
+
};
|
|
13595
|
+
|
|
13596
|
+
StompStream.prototype.onTradeUnsubscribeResponse = function onTradeUnsubscribeResponse(msg) {
|
|
13597
|
+
var tradeSub = this.pendingTradeUnsubscription[msg.__id];
|
|
13598
|
+
var callback = tradeSub.callback;
|
|
13599
|
+
|
|
13600
|
+
(0, _utils.removeFromArray)(tradeSub.id, msg.__id);
|
|
13601
|
+
delete this.pendingTradeUnsubscription[msg.__id];
|
|
13602
|
+
|
|
13603
|
+
console.log(msg);
|
|
13604
|
+
if (msg.code != 200 && !tradeSub.failed) {
|
|
13605
|
+
tradeSub.failed = true;
|
|
13606
|
+
var event = events.error("Error unsubscribing", {
|
|
13607
|
+
code: msg.code,
|
|
13608
|
+
reason: msg.reason
|
|
13609
|
+
});
|
|
13610
|
+
this.events.fire("error", event);
|
|
13611
|
+
if (callback) {
|
|
13612
|
+
tradeSub.callback(event);
|
|
13613
|
+
}
|
|
13614
|
+
return;
|
|
13615
|
+
}
|
|
13616
|
+
|
|
13617
|
+
var result = tradeSub.result;
|
|
13618
|
+
|
|
13619
|
+
if (msg.notificationType) {
|
|
13620
|
+
this.log.debug('Trade ' + msg.notificationType);
|
|
13621
|
+
result.notificationType = msg.notificationType;
|
|
13622
|
+
}
|
|
13623
|
+
|
|
13624
|
+
if (tradeSub.id.length === 0) {
|
|
13625
|
+
if (callback) {
|
|
13626
|
+
callback(null, tradeSub.result);
|
|
13627
|
+
}
|
|
13628
|
+
}
|
|
13629
|
+
};
|
|
13630
|
+
|
|
13631
|
+
StompStream.prototype.onNewsCmdFilterRefreshResponse = function onNewsCmdFilterRefreshResponse(msg) {
|
|
13632
|
+
console.log("msg", msg);
|
|
13633
|
+
if (msg.code != 200) {
|
|
13634
|
+
var event = events.error("Error Refreshing News Filters", {
|
|
13635
|
+
code: msg.code,
|
|
13636
|
+
reason: msg.reason
|
|
13637
|
+
});
|
|
13638
|
+
this.events.fire("error", event);
|
|
13639
|
+
return;
|
|
13640
|
+
}
|
|
13641
|
+
|
|
13642
|
+
this.events.fire("msg", msg);
|
|
13643
|
+
};
|
|
13644
|
+
|
|
13645
|
+
StompStream.prototype.onNewsCmdFilterResponse = function onNewsCmdFilterResponse(msg) {
|
|
13646
|
+
console.log("msg", msg);
|
|
13647
|
+
if (msg.code != 200) {
|
|
13648
|
+
var event = events.error("Error Getting News Filters Status", {
|
|
13649
|
+
code: msg.code,
|
|
13650
|
+
reason: msg.reason
|
|
13651
|
+
});
|
|
13652
|
+
this.events.fire("error", event);
|
|
13653
|
+
return;
|
|
13654
|
+
}
|
|
13655
|
+
|
|
13656
|
+
this.events.fire("filter status", msg);
|
|
13657
|
+
};
|
|
13658
|
+
|
|
13659
|
+
StompStream.prototype.onUnsubscribeResponse = function onUnsubscribeResponse(msg) {
|
|
13660
|
+
var unsubscription = this.pendingUnsubscriptions[msg.__id];
|
|
13661
|
+
var callback = unsubscription.callback;
|
|
13662
|
+
|
|
13663
|
+
(0, _utils.removeFromArray)(unsubscription.ids, msg.__id);
|
|
13664
|
+
delete this.pendingUnsubscriptions[msg.__id];
|
|
13665
|
+
|
|
13666
|
+
if (msg.code != 200 && !unsubscription.failed) {
|
|
13667
|
+
unsubscription.failed = true;
|
|
13668
|
+
var event = events.error("Error unsubscribing", {
|
|
13669
|
+
code: msg.code,
|
|
13670
|
+
reason: msg.reason
|
|
13671
|
+
});
|
|
13672
|
+
this.events.fire("error", event);
|
|
13673
|
+
if (callback) {
|
|
13674
|
+
callback(event);
|
|
13675
|
+
}
|
|
13676
|
+
return;
|
|
13677
|
+
}
|
|
13678
|
+
|
|
13679
|
+
for (var index = 0; index < msg.unsubscribed.length; ++index) {
|
|
13680
|
+
var result = unsubscription.result;
|
|
13681
|
+
|
|
13682
|
+
var unsubscribe = msg.unsubscribed[index];
|
|
13683
|
+
var _symbol = unsubscribe.symbol;
|
|
13684
|
+
var _datatype = unsubscribe.marketdatatype;
|
|
13685
|
+
this.log.debug('UNSUBSCRIBED <' + _symbol + ', ' + _datatype + '>');
|
|
13686
|
+
result.unsubscribed.push({ symbol: _symbol, type: _datatype });
|
|
13687
|
+
}
|
|
13688
|
+
|
|
13689
|
+
if (unsubscription.ids.length === 0 && !unsubscription.failed) {
|
|
13690
|
+
if (callback) {
|
|
13691
|
+
callback(null, unsubscription.result);
|
|
13692
|
+
}
|
|
13693
|
+
}
|
|
13694
|
+
};
|
|
13695
|
+
|
|
13696
|
+
StompStream.prototype.onExchangeUnsubscribeResponse = function onExchangeUnsubscribeResponse(msg) {
|
|
13697
|
+
var exchangeSub = this.pendingExchangeUnsubscriptions[msg.__id];
|
|
13698
|
+
var callback = exchangeSub.callback;
|
|
13699
|
+
|
|
13700
|
+
(0, _utils.removeFromArray)(exchangeSub.id, msg.__id);
|
|
13701
|
+
delete this.pendingExchangeUnsubscriptions[msg.__id];
|
|
13702
|
+
|
|
13703
|
+
console.log(msg);
|
|
13704
|
+
if (msg.code != 200) {
|
|
13705
|
+
var event = events.error("Error unsubscribing", {
|
|
13706
|
+
code: msg.code,
|
|
13707
|
+
reason: msg.reason
|
|
13708
|
+
});
|
|
13709
|
+
this.events.fire("error", event);
|
|
13710
|
+
if (callback) {
|
|
13711
|
+
exchangeSub.callback(event);
|
|
13712
|
+
}
|
|
13713
|
+
return;
|
|
13714
|
+
}
|
|
13715
|
+
if (exchangeSub.id.length === 0) {
|
|
13716
|
+
if (callback) {
|
|
13717
|
+
callback(null, exchangeSub);
|
|
13718
|
+
}
|
|
13719
|
+
}
|
|
13720
|
+
};
|
|
13721
|
+
|
|
13722
|
+
StompStream.prototype.onConnectResponse = function onConnectResponse(msg) {
|
|
13723
|
+
if (msg.code != 200) {
|
|
13724
|
+
var event = events.error("Connection failed", {
|
|
13725
|
+
code: msg.code,
|
|
13726
|
+
reason: msg.reason
|
|
13727
|
+
});
|
|
13728
|
+
this.events.fire("error", event);
|
|
13729
|
+
if (this.pendingConnection) {
|
|
13730
|
+
this.pendingConnection(event);
|
|
13731
|
+
}
|
|
13732
|
+
this.doClose(event);
|
|
13733
|
+
return;
|
|
13734
|
+
}
|
|
13735
|
+
|
|
13736
|
+
this._serverversion = msg.version;
|
|
13737
|
+
this.maxEntitlementsPerSubscription = msg.maxEntitlementsPerSubscription;
|
|
13738
|
+
if (this.isClosed()) {
|
|
13739
|
+
var _event = events.error("Connection was already closed", {
|
|
13740
|
+
code: -1,
|
|
13741
|
+
reason: "Already disconnected"
|
|
13742
|
+
});
|
|
13743
|
+
this.events.fire("error", _event);
|
|
13744
|
+
if (this.pendingConnection) {
|
|
13745
|
+
this.pendingConnection(_event);
|
|
13746
|
+
}
|
|
13747
|
+
return;
|
|
13748
|
+
}
|
|
13749
|
+
this.conn.setServer(msg.serverInstance);
|
|
13750
|
+
if (this.pendingConnection) {
|
|
13751
|
+
this.pendingConnection(null, this);
|
|
13752
|
+
}
|
|
13753
|
+
};
|
|
13754
|
+
|
|
13755
|
+
StompStream.prototype.onConnectionClose = function onConnectionClose(msg) {
|
|
13756
|
+
this.doClose(events.close({
|
|
13757
|
+
reason: msg.reason,
|
|
13758
|
+
code: msg.code
|
|
13759
|
+
}));
|
|
13760
|
+
};
|
|
13761
|
+
|
|
13762
|
+
StompStream.prototype.onSlowConnection = function onSlowConnection(msg) {
|
|
13763
|
+
this.log.debug(_formatting.msgfmt.fmt(msg));
|
|
13764
|
+
this.events.fire("slow", msg);
|
|
13765
|
+
};
|
|
13766
|
+
|
|
13767
|
+
StompStream.prototype.onStatsResponse = function onStatsResponse(msg) {
|
|
13768
|
+
if (msg.code != 200) {
|
|
13769
|
+
var event = events.error("Error getting stats", {
|
|
13770
|
+
code: msg.code,
|
|
13771
|
+
reason: msg.reason
|
|
13772
|
+
});
|
|
13773
|
+
this.events.fire("error", event);
|
|
13774
|
+
return;
|
|
13775
|
+
}
|
|
13776
|
+
;
|
|
13777
|
+
this.events.fire("stats", msg);
|
|
13778
|
+
};
|
|
13779
|
+
|
|
13780
|
+
StompStream.prototype.onInitialDataSent = function onInitialDataSent(msg) {
|
|
13781
|
+
this.log.debug(_formatting.msgfmt.fmt(msg));
|
|
13782
|
+
this.events.fire("initialDataSent", msg);
|
|
13783
|
+
};
|
|
13784
|
+
|
|
13785
|
+
StompStream.prototype.onResubscribeMessage = function onResubscribeMessage(msg) {
|
|
13786
|
+
this.log.debug(_formatting.msgfmt.fmt(msg));
|
|
13787
|
+
this.events.fire("resubscribeMessage", msg);
|
|
13788
|
+
};
|
|
13789
|
+
|
|
13790
|
+
StompStream.prototype.onOpenFlow = function onOpenFlow(msg) {
|
|
13791
|
+
this.conn.send(msg);
|
|
13792
|
+
};
|
|
13793
|
+
|
|
13794
|
+
StompStream.prototype._handledatamsg = function _handledatamsg(msg) {
|
|
13795
|
+
this.events.fire("message", msg);
|
|
13796
|
+
};
|
|
13797
|
+
|
|
13798
|
+
StompStream.prototype.send = function send(msg) {
|
|
13799
|
+
if (this.conn) {
|
|
13800
|
+
this.conn.send(msg);
|
|
13801
|
+
}
|
|
13802
|
+
};
|
|
13803
|
+
|
|
13804
|
+
StompStream.prototype.doClose = function doClose(msg) {
|
|
13805
|
+
if (!this.isClosed()) {
|
|
13806
|
+
var conn = this.conn;
|
|
13807
|
+
this.conn = null;
|
|
13808
|
+
this.events.fire("close", msg);
|
|
13809
|
+
conn.close();
|
|
13810
|
+
}
|
|
13811
|
+
};
|
|
13812
|
+
|
|
13813
|
+
StompStream.prototype.close = function close(callback) {
|
|
13814
|
+
this.doClose(events.close({
|
|
13815
|
+
reason: "Manually closed",
|
|
13816
|
+
code: 200
|
|
13817
|
+
}));
|
|
13818
|
+
if (callback) {
|
|
13819
|
+
callback();
|
|
13820
|
+
}
|
|
13821
|
+
};
|
|
13822
|
+
|
|
13823
|
+
StompStream.prototype.isClosed = function isClosed() {
|
|
13824
|
+
return this.conn == null;
|
|
13825
|
+
};
|
|
13826
|
+
|
|
13827
|
+
return StompStream;
|
|
13828
|
+
}();
|
|
13829
|
+
|
|
13830
|
+
exports["default"] = StompStream;
|
|
13831
|
+
}).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/stomp/StompStream.js","/lib/stomp")
|
|
13832
|
+
},{"../EventSupport.js":2,"../UShortId.js":9,"../formatting.js":13,"../logging.js":16,"../polyfills.js":18,"../streamer-api.js":96,"../streamer-events.js":97,"../streamer-utils.js":98,"../utils.js":103,"_process":119,"buffer":109,"timers":140}],95:[function(require,module,exports){
|
|
13833
|
+
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
13834
|
+
"use strict";
|
|
13835
|
+
|
|
13836
|
+
exports.__esModule = true;
|
|
13837
|
+
|
|
13838
|
+
require("../polyfills.js");
|
|
13839
|
+
|
|
13840
|
+
var _logging = require("../logging.js");
|
|
13841
|
+
|
|
13842
|
+
var _streamerApi = require("../streamer-api.js");
|
|
13843
|
+
|
|
13844
|
+
var _message = require("../message.js");
|
|
13845
|
+
|
|
13846
|
+
var _JsonStompTransmitter = require("../transmission/JsonStompTransmitter.js");
|
|
13847
|
+
|
|
13848
|
+
var _JsonStompTransmitter2 = _interopRequireDefault(_JsonStompTransmitter);
|
|
13849
|
+
|
|
13850
|
+
var _StompConnection = require("./StompConnection.js");
|
|
13851
|
+
|
|
13852
|
+
var _StompConnection2 = _interopRequireDefault(_StompConnection);
|
|
13853
|
+
|
|
13854
|
+
var _StompStream = require("./StompStream.js");
|
|
13855
|
+
|
|
13856
|
+
var _StompStream2 = _interopRequireDefault(_StompStream);
|
|
13857
|
+
|
|
13858
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13859
|
+
|
|
13860
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13861
|
+
|
|
13862
|
+
var STREAMURLS = {
|
|
13863
|
+
"ping": "/ping/v1",
|
|
13864
|
+
"version": "/version/v1",
|
|
13865
|
+
"streamStomp": "/stream/connect"
|
|
13866
|
+
};
|
|
13867
|
+
|
|
13868
|
+
var StompStreamingService = function () {
|
|
13869
|
+
function StompStreamingService(http, stompJs, log, config) {
|
|
13870
|
+
var _this = this;
|
|
13871
|
+
|
|
13872
|
+
_classCallCheck(this, StompStreamingService);
|
|
13873
|
+
|
|
13874
|
+
this.http = http;
|
|
13875
|
+
this.stompJs = stompJs;
|
|
13876
|
+
this.log = (0, _logging.asLogger)(log);
|
|
13877
|
+
this.config = config || {};
|
|
13878
|
+
|
|
13879
|
+
this.format = this.config.format;
|
|
13880
|
+
if (this.config.format === 'application/json') {
|
|
13881
|
+
this.createTransmitter = function (socket) {
|
|
13882
|
+
return new _JsonStompTransmitter2["default"](socket, _this.log);
|
|
13883
|
+
};
|
|
13884
|
+
}
|
|
13885
|
+
}
|
|
13886
|
+
|
|
13887
|
+
StompStreamingService.prototype.openStompSocket = function openStompSocket(handlers) {
|
|
13888
|
+
var headers = {
|
|
13889
|
+
'X-Stream-Version': _streamerApi.VERSION,
|
|
13890
|
+
'X-Stream-Lib': _streamerApi.LIBRARY_NAME
|
|
13891
|
+
};
|
|
13892
|
+
|
|
13893
|
+
var _conflation = this.config.conflation;
|
|
13894
|
+
if (_conflation != null && _conflation !== '') {
|
|
13895
|
+
headers['X-Stream-Conflation'] = _conflation;
|
|
13896
|
+
}
|
|
13897
|
+
|
|
13898
|
+
var _rejectExcessiveConnection = this.config.rejectExcessiveConnection;
|
|
13899
|
+
if (_rejectExcessiveConnection != null && _rejectExcessiveConnection !== '') {
|
|
13900
|
+
headers['X-Stream-Reject'] = _rejectExcessiveConnection;
|
|
13901
|
+
}
|
|
13902
|
+
|
|
13903
|
+
if (this.config.format === 'application/json' || this.config.format === _message.MimeTypes.QITCH) {
|
|
13904
|
+
headers['X-Stream-Format'] = this.format;
|
|
13905
|
+
}
|
|
13906
|
+
|
|
13907
|
+
if (this.config.updatesOnly === 'true') {
|
|
13908
|
+
headers['X-Stream-UpdatesOnly'] = true;
|
|
13909
|
+
}
|
|
13910
|
+
|
|
13911
|
+
Object.assign(headers, this.config.credentials.getHeaders());
|
|
13912
|
+
|
|
13913
|
+
var url = this.config.url + STREAMURLS.streamStomp;
|
|
13914
|
+
var stompClient = this.stompJs.Stomp.client(url);
|
|
13915
|
+
|
|
13916
|
+
var authMessage = new _streamerApi.messages.control.AuthenticationMessage();
|
|
13917
|
+
if (this.config.credentials.sid !== undefined) {
|
|
13918
|
+
authMessage.authenticationMethod = "sid";
|
|
13919
|
+
authMessage.authorization = this.config.credentials.sid;
|
|
13920
|
+
} else if (this.config.credentials.wmid !== undefined && this.config.credentials.token !== undefined) {
|
|
13921
|
+
authMessage.authenticationMethod = "enterprise";
|
|
13922
|
+
authMessage.authorization = this.config.credentials.token;
|
|
13923
|
+
} else if (this.config.credentials.wmid !== undefined) {
|
|
13924
|
+
authMessage.authenticationMethod = "wmid";
|
|
13925
|
+
authMessage.authorization = this.config.credentials.wmid;
|
|
13926
|
+
} else if (this.config.credentials.data_token !== undefined) {
|
|
13927
|
+
authMessage.authenticationMethod = "datatool";
|
|
13928
|
+
authMessage.authorization = this.config.credentials.data_token;
|
|
13929
|
+
}
|
|
13930
|
+
|
|
13931
|
+
if (this.config.conflation != null && this.config.conflation !== "") {
|
|
13932
|
+
authMessage.conflation = this.config.conflation;
|
|
13933
|
+
}
|
|
13934
|
+
|
|
13935
|
+
if (this.config.rejectExcessiveConnection != null && this.config.rejectExcessiveConnection !== "") {
|
|
13936
|
+
authMessage.rejectExcessiveConnection = this.config.rejectExcessiveConnection;
|
|
13937
|
+
}
|
|
13938
|
+
|
|
13939
|
+
stompClient.connect({}, function (frame) {
|
|
13940
|
+
stompClient.subscribe('/user/queue/messages', function (responseMessage) {
|
|
13941
|
+
handlers(headers).onMessage(responseMessage);
|
|
13942
|
+
});
|
|
13943
|
+
|
|
13944
|
+
stompClient.send("/stream/message", headers, JSON.stringify(authMessage));
|
|
13945
|
+
});
|
|
13946
|
+
|
|
13947
|
+
return {
|
|
13948
|
+
send: function send(msg) {
|
|
13949
|
+
stompClient.send("/stream/message", headers, msg);
|
|
13950
|
+
},
|
|
13951
|
+
close: function close() {
|
|
13952
|
+
stompClient.disconnect();
|
|
13953
|
+
}
|
|
13954
|
+
};
|
|
13955
|
+
};
|
|
13956
|
+
|
|
13957
|
+
StompStreamingService.prototype.createStompConnection = function createStompConnection() {
|
|
13958
|
+
var _this2 = this;
|
|
13959
|
+
|
|
13960
|
+
return new _StompConnection2["default"](function (socket) {
|
|
13961
|
+
return _this2.createTransmitter(socket);
|
|
13962
|
+
}, function (handlers) {
|
|
13963
|
+
return _this2.openStompSocket(handlers);
|
|
13964
|
+
}, this.logger);
|
|
13965
|
+
};
|
|
13966
|
+
|
|
13967
|
+
StompStreamingService.prototype.openStompStream = function openStompStream(callback) {
|
|
13968
|
+
var stompStream = new _StompStream2["default"](this, this.format, this.log);
|
|
13969
|
+
stompStream.openStomp(callback);
|
|
13970
|
+
};
|
|
13971
|
+
|
|
13972
|
+
StompStreamingService.prototype.ping = function ping(callback) {
|
|
13973
|
+
this.http({
|
|
13974
|
+
url: this.config.host + STREAMURLS.ping,
|
|
13975
|
+
success: function success(result) {
|
|
13976
|
+
return callback(null, result);
|
|
13977
|
+
},
|
|
13978
|
+
type: "GET",
|
|
13979
|
+
failure: callback
|
|
13980
|
+
});
|
|
13981
|
+
};
|
|
13982
|
+
|
|
13983
|
+
StompStreamingService.prototype.getVersion = function getVersion(callback) {
|
|
13984
|
+
this.http({
|
|
13985
|
+
url: this.config.host + STREAMURLS.version,
|
|
13986
|
+
success: function success(result) {
|
|
13987
|
+
return callback(null, result);
|
|
13988
|
+
},
|
|
13989
|
+
type: "GET",
|
|
13990
|
+
failure: callback
|
|
13991
|
+
});
|
|
13992
|
+
};
|
|
13993
|
+
|
|
13994
|
+
return StompStreamingService;
|
|
13995
|
+
}();
|
|
13996
|
+
|
|
13997
|
+
exports["default"] = StompStreamingService;
|
|
13998
|
+
}).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/stomp/StompStreamingService.js","/lib/stomp")
|
|
13999
|
+
},{"../logging.js":16,"../message.js":17,"../polyfills.js":18,"../streamer-api.js":96,"../transmission/JsonStompTransmitter.js":99,"./StompConnection.js":93,"./StompStream.js":94,"_process":119,"buffer":109,"timers":140}],96:[function(require,module,exports){
|
|
14000
|
+
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
14001
|
+
"use strict";
|
|
14002
|
+
|
|
14003
|
+
exports.__esModule = true;
|
|
14004
|
+
/* @see http://usejsdoc.org */
|
|
14005
|
+
|
|
14006
|
+
/**
|
|
14007
|
+
* Streamer api namespace.
|
|
14008
|
+
* @namespace
|
|
14009
|
+
*/
|
|
14010
|
+
|
|
14011
|
+
var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
|
|
14012
|
+
var VERSION = exports.VERSION = "2.31.0";
|
|
14013
|
+
|
|
14014
|
+
/**
|
|
14015
|
+
* Streamer message api namespace.
|
|
14016
|
+
* @namespace
|
|
14017
|
+
*/
|
|
14018
|
+
var messages = exports.messages = {};
|
|
14019
|
+
|
|
14020
|
+
/**
|
|
14021
|
+
* Streamer control message namespace. * @namespace
|
|
14022
|
+
*/
|
|
14023
|
+
messages.control = {};
|
|
14024
|
+
|
|
14025
|
+
/**
|
|
14026
|
+
* Streamer market data message namespace.
|
|
14027
|
+
* @namespace
|
|
14028
|
+
*/
|
|
14029
|
+
messages.market = {};
|
|
14030
|
+
|
|
14031
|
+
/* ****************************************************************************************************************** */
|
|
14032
|
+
|
|
14033
|
+
/**
|
|
14034
|
+
*
|
|
14035
|
+
* @type {string}
|
|
14036
|
+
*/
|
|
14037
|
+
messages.JSON_TYPE_PROPERTY = '@T';
|
|
14038
|
+
|
|
14039
|
+
/**
|
|
11651
14040
|
* Message type identifiers.<br>
|
|
11652
14041
|
* Ensure identifiers are unique within this name space.
|
|
11653
14042
|
* @namespace
|
|
@@ -11682,7 +14071,12 @@ messages.MessageTypeNames = {
|
|
|
11682
14071
|
NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
|
|
11683
14072
|
NEWS_COMMAND: 'C24',
|
|
11684
14073
|
NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
|
|
11685
|
-
NEWS_CMD_FILTER_RESPONSE: 'C26'
|
|
14074
|
+
NEWS_CMD_FILTER_RESPONSE: 'C26',
|
|
14075
|
+
AUTHENTICATION: 'C27',
|
|
14076
|
+
OPEN_FLOW: 'C28',
|
|
14077
|
+
RECONNECT_RESPONSE: 'C29',
|
|
14078
|
+
TRADE_UNSUBSCRIBE_RESPONSE: 'C30',
|
|
14079
|
+
MISSED_DATA_SENT: 'C31'
|
|
11686
14080
|
},
|
|
11687
14081
|
/**
|
|
11688
14082
|
* Name space for data message type identifiers.<br>
|
|
@@ -11709,7 +14103,8 @@ messages.MessageTypeNames = {
|
|
|
11709
14103
|
ALERT: 'D17',
|
|
11710
14104
|
NEWS: 'D18',
|
|
11711
14105
|
TRADENOTIFICATION: 'D19',
|
|
11712
|
-
NEWSCMDFILTER: 'D20'
|
|
14106
|
+
NEWSCMDFILTER: 'D20',
|
|
14107
|
+
NEWSERROR: 'D21'
|
|
11713
14108
|
}
|
|
11714
14109
|
};
|
|
11715
14110
|
|
|
@@ -11917,11 +14312,18 @@ messages.control.AlertsSubUnsubMessage.prototype = new messages.control.CtrlMess
|
|
|
11917
14312
|
messages.control.TradeSubscribeMessage = function () {
|
|
11918
14313
|
this.init(messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE);
|
|
11919
14314
|
|
|
14315
|
+
/**
|
|
14316
|
+
* The action the server will taken when receiving this message.
|
|
14317
|
+
* @type {string}
|
|
14318
|
+
* @see exports.messages.control.Action
|
|
14319
|
+
*/
|
|
14320
|
+
this.action = null;
|
|
14321
|
+
|
|
11920
14322
|
/**
|
|
11921
14323
|
* The subscribe/un-subscribe for trade notifications.
|
|
11922
14324
|
* @type {Array.<string>}
|
|
11923
14325
|
*/
|
|
11924
|
-
this.
|
|
14326
|
+
this.notificationType = null;
|
|
11925
14327
|
|
|
11926
14328
|
/**
|
|
11927
14329
|
* Requested message mime-type format.
|
|
@@ -12040,6 +14442,15 @@ messages.control.NewsUnsubscribeResponse = function () {
|
|
|
12040
14442
|
};
|
|
12041
14443
|
messages.control.NewsUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
12042
14444
|
|
|
14445
|
+
/**
|
|
14446
|
+
* Creates Trade notification subscribe response message.
|
|
14447
|
+
* @constructor
|
|
14448
|
+
*/
|
|
14449
|
+
messages.control.TradeUnsubscribeResponse = function () {
|
|
14450
|
+
this.init(messages.MessageTypeNames.ctrl.TRADE_UNSUBSCRIBE_RESPONSE);
|
|
14451
|
+
};
|
|
14452
|
+
|
|
14453
|
+
messages.control.TradeUnsubscribeResponse.prototype = new messages.control.BaseResponse();
|
|
12043
14454
|
/**
|
|
12044
14455
|
* Creates a stream entitlement info.
|
|
12045
14456
|
* @constructor
|
|
@@ -12099,6 +14510,44 @@ messages.control.ConnectResponse = function () {
|
|
|
12099
14510
|
};
|
|
12100
14511
|
messages.control.ConnectResponse.prototype = new messages.control.BaseResponse();
|
|
12101
14512
|
|
|
14513
|
+
/**
|
|
14514
|
+
* Creates a new reconnect response message
|
|
14515
|
+
* @constructor
|
|
14516
|
+
*/
|
|
14517
|
+
messages.control.ReconnectResponse = function () {
|
|
14518
|
+
undefined.init(messages.MessageTypeNames.ctrl.RECONNECT_RESPONSE);
|
|
14519
|
+
|
|
14520
|
+
/**
|
|
14521
|
+
* The server version.
|
|
14522
|
+
* @type {string}
|
|
14523
|
+
*/
|
|
14524
|
+
undefined.version = null;
|
|
14525
|
+
|
|
14526
|
+
/**
|
|
14527
|
+
* The flow control check interval.
|
|
14528
|
+
* @type {number}
|
|
14529
|
+
*/
|
|
14530
|
+
undefined.flowControlCheckInterval = null;
|
|
14531
|
+
|
|
14532
|
+
/**
|
|
14533
|
+
* The server instance connected to.
|
|
14534
|
+
* @type {string}
|
|
14535
|
+
*/
|
|
14536
|
+
undefined.serverInstance = null;
|
|
14537
|
+
|
|
14538
|
+
/**
|
|
14539
|
+
* The conflation rate in milliseconds.
|
|
14540
|
+
* @type {number}
|
|
14541
|
+
*/
|
|
14542
|
+
undefined.conflationMs = null;
|
|
14543
|
+
|
|
14544
|
+
/**
|
|
14545
|
+
* The previous subscriptions
|
|
14546
|
+
* @type {Array.<messages.control.StreamEntitlement>}
|
|
14547
|
+
*/
|
|
14548
|
+
undefined.previousSubscriptions = null;
|
|
14549
|
+
};
|
|
14550
|
+
|
|
12102
14551
|
/**
|
|
12103
14552
|
* Creates a connection response message.
|
|
12104
14553
|
* @constructor
|
|
@@ -12159,6 +14608,39 @@ messages.control.FlowMessage = function () {
|
|
|
12159
14608
|
};
|
|
12160
14609
|
messages.control.FlowMessage.prototype = new messages.control.CtrlMessage();
|
|
12161
14610
|
|
|
14611
|
+
/**
|
|
14612
|
+
* Creates an Auth message for Stomp connection Auth verification.
|
|
14613
|
+
* @constructor
|
|
14614
|
+
*/
|
|
14615
|
+
messages.control.AuthenticationMessage = function () {
|
|
14616
|
+
this.init(messages.MessageTypeNames.ctrl.AUTHENTICATION);
|
|
14617
|
+
|
|
14618
|
+
/**
|
|
14619
|
+
* Auth method.
|
|
14620
|
+
* @type {String}
|
|
14621
|
+
*/
|
|
14622
|
+
this.authenticationMethod = null;
|
|
14623
|
+
|
|
14624
|
+
/**
|
|
14625
|
+
* Auth token.
|
|
14626
|
+
* @type {String}
|
|
14627
|
+
*/
|
|
14628
|
+
this.authorization = null;
|
|
14629
|
+
|
|
14630
|
+
/**
|
|
14631
|
+
* Requested conflation. Null indicates using the default conflation.
|
|
14632
|
+
* @type {number}
|
|
14633
|
+
*/
|
|
14634
|
+
this.conflation = 150;
|
|
14635
|
+
|
|
14636
|
+
/**
|
|
14637
|
+
*
|
|
14638
|
+
* @type {Boolean}
|
|
14639
|
+
*/
|
|
14640
|
+
this.rejectExcessiveConnection = false;
|
|
14641
|
+
};
|
|
14642
|
+
messages.control.AuthenticationMessage.prototype = new messages.control.CtrlMessage();
|
|
14643
|
+
|
|
12162
14644
|
/**
|
|
12163
14645
|
* Creates a stats response message.
|
|
12164
14646
|
* @constructor
|
|
@@ -12241,6 +14723,22 @@ messages.control.ResubscribeMessage = function () {
|
|
|
12241
14723
|
};
|
|
12242
14724
|
messages.control.ResubscribeMessage.prototype = new messages.control.CtrlMessage();
|
|
12243
14725
|
|
|
14726
|
+
/**
|
|
14727
|
+
* Creates a Missed Data Sent response message.
|
|
14728
|
+
* @constructor
|
|
14729
|
+
*/
|
|
14730
|
+
messages.control.MissedDataSent = function () {
|
|
14731
|
+
this.init(messages.MessageTypeNames.ctrl.MISSED_DATA_SENT);
|
|
14732
|
+
|
|
14733
|
+
/**
|
|
14734
|
+
* The timestamp of message creation.
|
|
14735
|
+
* @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
|
|
14736
|
+
* for connections with QITCH format - {@link JSBI.BigInt}
|
|
14737
|
+
*/
|
|
14738
|
+
this.timestamp = null;
|
|
14739
|
+
};
|
|
14740
|
+
messages.control.MissedDataSent.prototype = new messages.control.CtrlMessage();
|
|
14741
|
+
|
|
12244
14742
|
/**
|
|
12245
14743
|
* Stream entitlement types.
|
|
12246
14744
|
* @enum
|
|
@@ -12595,7 +15093,7 @@ messages.market.OrderChangeType = {
|
|
|
12595
15093
|
'E': "EXECUTE"
|
|
12596
15094
|
};
|
|
12597
15095
|
}).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")
|
|
12598
|
-
},{"_process":
|
|
15096
|
+
},{"_process":119,"buffer":109,"timers":140}],97:[function(require,module,exports){
|
|
12599
15097
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
12600
15098
|
"use strict";
|
|
12601
15099
|
|
|
@@ -12649,7 +15147,7 @@ var close = exports.close = function close(moreArgs) {
|
|
|
12649
15147
|
return event("close", moreArgs);
|
|
12650
15148
|
};
|
|
12651
15149
|
}).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-events.js","/lib")
|
|
12652
|
-
},{"./polyfills":18,"_process":
|
|
15150
|
+
},{"./polyfills":18,"_process":119,"buffer":109,"timers":140}],98:[function(require,module,exports){
|
|
12653
15151
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
12654
15152
|
'use strict';
|
|
12655
15153
|
|
|
@@ -12774,7 +15272,57 @@ var getMessageName = exports.getMessageName = function () {
|
|
|
12774
15272
|
};
|
|
12775
15273
|
}();
|
|
12776
15274
|
}).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-utils.js","/lib")
|
|
12777
|
-
},{"./streamer-api.js":
|
|
15275
|
+
},{"./streamer-api.js":96,"_process":119,"buffer":109,"timers":140}],99:[function(require,module,exports){
|
|
15276
|
+
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
15277
|
+
"use strict";
|
|
15278
|
+
|
|
15279
|
+
exports.__esModule = true;
|
|
15280
|
+
|
|
15281
|
+
var _EventSupport = require("../EventSupport.js");
|
|
15282
|
+
|
|
15283
|
+
var _EventSupport2 = _interopRequireDefault(_EventSupport);
|
|
15284
|
+
|
|
15285
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15286
|
+
|
|
15287
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15288
|
+
|
|
15289
|
+
var JsonStompTransmitter = function () {
|
|
15290
|
+
function JsonStompTransmitter(socket, log) {
|
|
15291
|
+
_classCallCheck(this, JsonStompTransmitter);
|
|
15292
|
+
|
|
15293
|
+
this.socket = socket;
|
|
15294
|
+
this.log = log;
|
|
15295
|
+
this.events = new _EventSupport2["default"](this);
|
|
15296
|
+
}
|
|
15297
|
+
|
|
15298
|
+
JsonStompTransmitter.prototype.send = function send(msg, id) {
|
|
15299
|
+
this.socket.send(JSON.stringify(msg));
|
|
15300
|
+
};
|
|
15301
|
+
|
|
15302
|
+
JsonStompTransmitter.prototype.onMessage = function onMessage(msg) {
|
|
15303
|
+
var _jsonblock = null;
|
|
15304
|
+
try {
|
|
15305
|
+
_jsonblock = JSON.parse(msg);
|
|
15306
|
+
} catch (e) {
|
|
15307
|
+
this.log.error(e);
|
|
15308
|
+
return;
|
|
15309
|
+
}
|
|
15310
|
+
|
|
15311
|
+
var _jsonmsg = _jsonblock;
|
|
15312
|
+
_jsonmsg.__id = _jsonmsg['requestId'];
|
|
15313
|
+
this.events.fire("message", _jsonmsg);
|
|
15314
|
+
};
|
|
15315
|
+
|
|
15316
|
+
JsonStompTransmitter.prototype.on = function on(event, callback) {
|
|
15317
|
+
return this.events.on(event, callback);
|
|
15318
|
+
};
|
|
15319
|
+
|
|
15320
|
+
return JsonStompTransmitter;
|
|
15321
|
+
}();
|
|
15322
|
+
|
|
15323
|
+
exports["default"] = JsonStompTransmitter;
|
|
15324
|
+
}).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/transmission/JsonStompTransmitter.js","/lib/transmission")
|
|
15325
|
+
},{"../EventSupport.js":2,"_process":119,"buffer":109,"timers":140}],100:[function(require,module,exports){
|
|
12778
15326
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
12779
15327
|
"use strict";
|
|
12780
15328
|
|
|
@@ -12833,7 +15381,7 @@ var JsonTransmitter = function () {
|
|
|
12833
15381
|
|
|
12834
15382
|
exports["default"] = JsonTransmitter;
|
|
12835
15383
|
}).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/transmission/JsonTransmitter.js","/lib/transmission")
|
|
12836
|
-
},{"../EventSupport.js":2,"../message.js":17,"_process":
|
|
15384
|
+
},{"../EventSupport.js":2,"../message.js":17,"_process":119,"buffer":109,"timers":140}],101:[function(require,module,exports){
|
|
12837
15385
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
12838
15386
|
"use strict";
|
|
12839
15387
|
|
|
@@ -12957,7 +15505,7 @@ QitchTransmitter.prototype.DEFAULT_BUFFERSIZE = 4096;
|
|
|
12957
15505
|
|
|
12958
15506
|
exports["default"] = QitchTransmitter;
|
|
12959
15507
|
}).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/transmission/QitchTransmitter.js","/lib/transmission")
|
|
12960
|
-
},{"../EventSupport.js":2,"../SMessage":5,"../UShortId.js":9,"../message.js":17,"../qitch/LocateCodeInjector":23,"../qitch/decoder/QitchDecoder":41,"../qitch/encoder/QitchEncoder":67,"../utils":
|
|
15508
|
+
},{"../EventSupport.js":2,"../SMessage":5,"../UShortId.js":9,"../message.js":17,"../qitch/LocateCodeInjector":23,"../qitch/decoder/QitchDecoder":41,"../qitch/encoder/QitchEncoder":67,"../utils":103,"_process":119,"buffer":109,"timers":140}],102:[function(require,module,exports){
|
|
12961
15509
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
12962
15510
|
"use strict";
|
|
12963
15511
|
|
|
@@ -13047,7 +15595,7 @@ var SMessageTransmitter = function () {
|
|
|
13047
15595
|
|
|
13048
15596
|
exports["default"] = SMessageTransmitter;
|
|
13049
15597
|
}).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/transmission/SMessageTransmitter.js","/lib/transmission")
|
|
13050
|
-
},{"../EventSupport.js":2,"../SMessage.js":5,"../UShortId.js":9,"../formatting.js":13,"../message.js":17,"_process":
|
|
15598
|
+
},{"../EventSupport.js":2,"../SMessage.js":5,"../UShortId.js":9,"../formatting.js":13,"../message.js":17,"_process":119,"buffer":109,"timers":140}],103:[function(require,module,exports){
|
|
13051
15599
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
13052
15600
|
"use strict";
|
|
13053
15601
|
|
|
@@ -13098,7 +15646,7 @@ var asciiStringToArrayBuffer = exports.asciiStringToArrayBuffer = function ascii
|
|
|
13098
15646
|
return buf;
|
|
13099
15647
|
};
|
|
13100
15648
|
}).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/utils.js","/lib")
|
|
13101
|
-
},{"_process":
|
|
15649
|
+
},{"_process":119,"buffer":109,"timers":140}],104:[function(require,module,exports){
|
|
13102
15650
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
13103
15651
|
|
|
13104
15652
|
module.exports = function equal(arr1, arr2) {
|
|
@@ -13111,7 +15659,7 @@ module.exports = function equal(arr1, arr2) {
|
|
|
13111
15659
|
}
|
|
13112
15660
|
|
|
13113
15661
|
}).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,"/node_modules/array-equal/index.js","/node_modules/array-equal")
|
|
13114
|
-
},{"_process":
|
|
15662
|
+
},{"_process":119,"buffer":109,"timers":140}],105:[function(require,module,exports){
|
|
13115
15663
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
13116
15664
|
'use strict'
|
|
13117
15665
|
|
|
@@ -13266,7 +15814,7 @@ function fromByteArray (uint8) {
|
|
|
13266
15814
|
}
|
|
13267
15815
|
|
|
13268
15816
|
}).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,"/node_modules/base64-js/index.js","/node_modules/base64-js")
|
|
13269
|
-
},{"_process":
|
|
15817
|
+
},{"_process":119,"buffer":109,"timers":140}],106:[function(require,module,exports){
|
|
13270
15818
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
13271
15819
|
;(function (globalObject) {
|
|
13272
15820
|
'use strict';
|
|
@@ -16172,15 +18720,15 @@ function fromByteArray (uint8) {
|
|
|
16172
18720
|
})(this);
|
|
16173
18721
|
|
|
16174
18722
|
}).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,"/node_modules/bignumber.js/bignumber.js","/node_modules/bignumber.js")
|
|
16175
|
-
},{"_process":
|
|
18723
|
+
},{"_process":119,"buffer":109,"timers":140}],107:[function(require,module,exports){
|
|
16176
18724
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
16177
18725
|
|
|
16178
18726
|
}).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,"/node_modules/browser-resolve/empty.js","/node_modules/browser-resolve")
|
|
16179
|
-
},{"_process":
|
|
18727
|
+
},{"_process":119,"buffer":109,"timers":140}],108:[function(require,module,exports){
|
|
16180
18728
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
16181
18729
|
|
|
16182
18730
|
}).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,"/node_modules/browserify/lib/_empty.js","/node_modules/browserify/lib")
|
|
16183
|
-
},{"_process":
|
|
18731
|
+
},{"_process":119,"buffer":109,"timers":140}],109:[function(require,module,exports){
|
|
16184
18732
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
16185
18733
|
/*!
|
|
16186
18734
|
* The buffer module from node.js, for the browser.
|
|
@@ -17920,7 +20468,7 @@ function numberIsNaN (obj) {
|
|
|
17920
20468
|
}
|
|
17921
20469
|
|
|
17922
20470
|
}).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,"/node_modules/buffer/index.js","/node_modules/buffer")
|
|
17923
|
-
},{"_process":
|
|
20471
|
+
},{"_process":119,"base64-js":105,"buffer":109,"ieee754":114,"timers":140}],110:[function(require,module,exports){
|
|
17924
20472
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
17925
20473
|
module.exports = {
|
|
17926
20474
|
"100": "Continue",
|
|
@@ -17988,7 +20536,7 @@ module.exports = {
|
|
|
17988
20536
|
}
|
|
17989
20537
|
|
|
17990
20538
|
}).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,"/node_modules/builtin-status-codes/browser.js","/node_modules/builtin-status-codes")
|
|
17991
|
-
},{"_process":
|
|
20539
|
+
},{"_process":119,"buffer":109,"timers":140}],111:[function(require,module,exports){
|
|
17992
20540
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
17993
20541
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
17994
20542
|
//
|
|
@@ -18099,7 +20647,7 @@ function objectToString(o) {
|
|
|
18099
20647
|
}
|
|
18100
20648
|
|
|
18101
20649
|
}).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,"/node_modules/core-util-is/lib/util.js","/node_modules/core-util-is/lib")
|
|
18102
|
-
},{"_process":
|
|
20650
|
+
},{"_process":119,"buffer":109,"timers":140}],112:[function(require,module,exports){
|
|
18103
20651
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
18104
20652
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
18105
20653
|
//
|
|
@@ -18626,7 +21174,7 @@ function functionBindPolyfill(context) {
|
|
|
18626
21174
|
}
|
|
18627
21175
|
|
|
18628
21176
|
}).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,"/node_modules/events/events.js","/node_modules/events")
|
|
18629
|
-
},{"_process":
|
|
21177
|
+
},{"_process":119,"buffer":109,"timers":140}],113:[function(require,module,exports){
|
|
18630
21178
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
18631
21179
|
var http = require('http')
|
|
18632
21180
|
var url = require('url')
|
|
@@ -18661,7 +21209,7 @@ function validateParams (params) {
|
|
|
18661
21209
|
}
|
|
18662
21210
|
|
|
18663
21211
|
}).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,"/node_modules/https-browserify/index.js","/node_modules/https-browserify")
|
|
18664
|
-
},{"_process":
|
|
21212
|
+
},{"_process":119,"buffer":109,"http":125,"timers":140,"url":142}],114:[function(require,module,exports){
|
|
18665
21213
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
18666
21214
|
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
18667
21215
|
var e, m
|
|
@@ -18749,7 +21297,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
18749
21297
|
}
|
|
18750
21298
|
|
|
18751
21299
|
}).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,"/node_modules/ieee754/index.js","/node_modules/ieee754")
|
|
18752
|
-
},{"_process":
|
|
21300
|
+
},{"_process":119,"buffer":109,"timers":140}],115:[function(require,module,exports){
|
|
18753
21301
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
18754
21302
|
if (typeof Object.create === 'function') {
|
|
18755
21303
|
// implementation from standard node.js 'util' module
|
|
@@ -18776,12 +21324,12 @@ if (typeof Object.create === 'function') {
|
|
|
18776
21324
|
}
|
|
18777
21325
|
|
|
18778
21326
|
}).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,"/node_modules/inherits/inherits_browser.js","/node_modules/inherits")
|
|
18779
|
-
},{"_process":
|
|
21327
|
+
},{"_process":119,"buffer":109,"timers":140}],116:[function(require,module,exports){
|
|
18780
21328
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
18781
21329
|
(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,e.JSBI=t())})(this,function(){'use strict';function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var _,n=0;n<t.length;n++)_=t[n],_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(e,_.key,_)}function _(e,t,_){return t&&i(e.prototype,t),_&&i(e,_),e}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function a(){return a=o()?Reflect.construct:function(e,t,i){var _=[null];_.push.apply(_,t);var n=Function.bind.apply(e,_),g=new n;return i&&l(g,i.prototype),g},a.apply(null,arguments)}function s(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){function i(){return a(e,arguments,g(this).constructor)}if(null===e||!s(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof t){if(t.has(e))return t.get(e);t.set(e,i)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l(i,e)},u(e)}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return t&&("object"==typeof t||"function"==typeof t)?t:r(e)}var h=function(i){var o=Math.abs,a=Math.max,s=Math.imul,u=Math.clz32;function l(e,i){var _;if(t(this,l),e>l.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return _=d(this,g(l).call(this,e)),_.sign=i,_}return n(l,i),_(l,[{key:"toDebugString",value:function(){var e=["BigInt["],t=!0,i=!1,_=void 0;try{for(var n,g,l=this[Symbol.iterator]();!(t=(n=l.next()).done);t=!0)g=n.value,e.push((g?(g>>>0).toString(16):g)+", ")}catch(e){i=!0,_=e}finally{try{t||null==l["return"]||l["return"]()}finally{if(i)throw _}}return e.push("]"),e.join("")}},{key:"toString",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;if(2>e||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(e&e-1)?l.__toStringBasePowerOfTwo(this,e):l.__toStringGeneric(this,e,!1)}},{key:"__copy",value:function(){for(var e=new l(this.length,this.sign),t=0;t<this.length;t++)e[t]=this[t];return e}},{key:"__trim",value:function(){for(var e=this.length,t=this[e-1];0===t;)e--,t=this[e-1],this.pop();return 0===e&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var e=0;e<this.length;e++)this[e]=0}},{key:"__clzmsd",value:function(){return u(this[this.length-1])}},{key:"__inplaceMultiplyAdd",value:function(e,t,_){_>this.length&&(_=this.length);for(var n=65535&e,g=e>>>16,l=0,o=65535&t,a=t>>>16,u=0;u<_;u++){var r=this.__digit(u),d=65535&r,h=r>>>16,b=s(d,n),m=s(d,g),c=s(h,n),v=s(h,g),y=o+(65535&b),f=a+l+(y>>>16)+(b>>>16)+(65535&m)+(65535&c);o=(m>>>16)+(c>>>16)+(65535&v)+(f>>>16),l=o>>>16,o&=65535,a=v>>>16;this.__setDigit(u,65535&y|f<<16)}if(0!==l||0!==o||0!==a)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(e,t,_){for(var n,g=0,l=0;l<_;l++)n=this.__halfDigit(t+l)+e.__halfDigit(l)+g,g=n>>>16,this.__setHalfDigit(t+l,n);return g}},{key:"__inplaceSub",value:function(e,t,_){var n=0;if(1&t){t>>=1;for(var g=this.__digit(t),l=65535&g,o=0;o<_-1>>>1;o++){var a=e.__digit(o),s=(g>>>16)-(65535&a)-n;n=1&s>>>16,this.__setDigit(t+o,s<<16|65535&l),g=this.__digit(t+o+1),l=(65535&g)-(a>>>16)-n,n=1&l>>>16}var u=e.__digit(o),r=(g>>>16)-(65535&u)-n;n=1&r>>>16,this.__setDigit(t+o,r<<16|65535&l);if(t+o+1>=this.length)throw new RangeError("out of bounds");0==(1&_)&&(g=this.__digit(t+o+1),l=(65535&g)-(u>>>16)-n,n=1&l>>>16,this.__setDigit(t+e.length,4294901760&g|65535&l))}else{t>>=1;for(var d=0;d<e.length-1;d++){var h=this.__digit(t+d),b=e.__digit(d),m=(65535&h)-(65535&b)-n;n=1&m>>>16;var c=(h>>>16)-(b>>>16)-n;n=1&c>>>16,this.__setDigit(t+d,c<<16|65535&m)}var v=this.__digit(t+d),y=e.__digit(d),f=(65535&v)-(65535&y)-n;n=1&f>>>16;var k=0;0==(1&_)&&(k=(v>>>16)-(y>>>16)-n,n=1&k>>>16),this.__setDigit(t+d,k<<16|65535&f)}return n}},{key:"__inplaceRightShift",value:function(e){if(0!==e){for(var t,_=this.__digit(0)>>>e,n=this.length-1,g=0;g<n;g++)t=this.__digit(g+1),this.__setDigit(g,t<<32-e|_),_=t>>>e;this.__setDigit(n,_)}}},{key:"__digit",value:function(e){return this[e]}},{key:"__unsignedDigit",value:function(e){return this[e]>>>0}},{key:"__setDigit",value:function(e,t){this[e]=0|t}},{key:"__setDigitGrow",value:function(e,t){this[e]=0|t}},{key:"__halfDigitLength",value:function(){var e=this.length;return 65535>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:"__halfDigit",value:function(e){return 65535&this[e>>>1]>>>((1&e)<<4)}},{key:"__setHalfDigit",value:function(e,t){var i=e>>>1,_=this.__digit(i),n=1&e?65535&_|t<<16:4294901760&_|65535&t;this.__setDigit(i,n)}}],[{key:"BigInt",value:function(t){var i=Math.floor,_=Number.isFinite;if("number"==typeof t){if(0===t)return l.__zero();if((0|t)===t)return 0>t?l.__oneDigit(-t,!0):l.__oneDigit(t,!1);if(!_(t)||i(t)!==t)throw new RangeError("The number "+t+" cannot be converted to BigInt because it is not an integer");return l.__fromDouble(t)}if("string"==typeof t){var n=l.__fromString(t);if(null===n)throw new SyntaxError("Cannot convert "+t+" to a BigInt");return n}if("boolean"==typeof t)return!0===t?l.__oneDigit(1,!1):l.__zero();if("object"===e(t)){if(t.constructor===l)return t;var g=l.__toPrimitive(t);return l.BigInt(g)}throw new TypeError("Cannot convert "+t+" to a BigInt")}},{key:"toNumber",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var i=e.__unsignedDigit(0);return e.sign?-i:i}var _=e.__digit(t-1),n=u(_),g=32*t-n;if(1024<g)return e.sign?-Infinity:1/0;var o=g-1,a=_,s=t-1,r=n+1,d=32===r?0:a<<r;d>>>=12;var h=r-12,b=12<=r?0:a<<20+r,m=20+r;0<h&&0<s&&(s--,a=e.__digit(s),d|=a>>>32-h,b=a<<h,m=h),0<m&&0<s&&(s--,a=e.__digit(s),b|=a>>>32-m,m-=32);var c=l.__decideRounding(e,m,s,a);if((1===c||0===c&&1==(1&b))&&(b=b+1>>>0,0===b&&(d++,0!=d>>>20&&(d=0,o++,1023<o))))return e.sign?-Infinity:1/0;var v=e.sign?-2147483648:0;return o=o+1023<<20,l.__kBitConversionInts[1]=v|o|d,l.__kBitConversionInts[0]=b,l.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function(e){return e.sign?l.__absoluteSubOne(e).__trim():l.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function(e,t){if(t.sign)throw new RangeError("Exponent must be positive");if(0===t.length)return l.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?l.unaryMinus(e):e;if(1<t.length)throw new RangeError("BigInt too big");var i=t.__unsignedDigit(0);if(1===i)return e;if(i>=l.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var _=1+(i>>>5),n=e.sign&&0!=(1&i),g=new l(_,n);g.__initializeDigits();var o=1<<(31&i);return g.__setDigit(_-1,o),g}var a=null,s=e;for(0!=(1&i)&&(a=e),i>>=1;0!==i;i>>=1)s=l.multiply(s,s),0!=(1&i)&&(null===a?a=s:a=l.multiply(a,s));return a}},{key:"multiply",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var _=e.length+t.length;32<=e.__clzmsd()+t.__clzmsd()&&_--;var n=new l(_,e.sign!==t.sign);n.__initializeDigits();for(var g=0;g<e.length;g++)l.__multiplyAccumulate(t,e.__digit(g),n,g);return n.__trim()}},{key:"divide",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>l.__absoluteCompare(e,t))return l.__zero();var i,_=e.sign!==t.sign,n=t.__unsignedDigit(0);if(1===t.length&&65535>=n){if(1===n)return _===e.sign?e:l.unaryMinus(e);i=l.__absoluteDivSmall(e,n,null)}else i=l.__absoluteDivLarge(e,t,!0,!1);return i.sign=_,i.__trim()}},{key:"remainder",value:function e(t,i){if(0===i.length)throw new RangeError("Division by zero");if(0>l.__absoluteCompare(t,i))return t;var _=i.__unsignedDigit(0);if(1===i.length&&65535>=_){if(1===_)return l.__zero();var n=l.__absoluteModSmall(t,_);return 0===n?l.__zero():l.__oneDigit(n,t.sign)}var e=l.__absoluteDivLarge(t,i,!1,!0);return e.sign=t.sign,e.__trim()}},{key:"add",value:function(e,t){var i=e.sign;return i===t.sign?l.__absoluteAdd(e,t,i):0<=l.__absoluteCompare(e,t)?l.__absoluteSub(e,t,i):l.__absoluteSub(t,e,!i)}},{key:"subtract",value:function(e,t){var i=e.sign;return i===t.sign?0<=l.__absoluteCompare(e,t)?l.__absoluteSub(e,t,i):l.__absoluteSub(t,e,!i):l.__absoluteAdd(e,t,i)}},{key:"leftShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?l.__rightShiftByAbsolute(e,t):l.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?l.__leftShiftByAbsolute(e,t):l.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(e,t){return 0>l.__compareToBigInt(e,t)}},{key:"lessThanOrEqual",value:function(e,t){return 0>=l.__compareToBigInt(e,t)}},{key:"greaterThan",value:function(e,t){return 0<l.__compareToBigInt(e,t)}},{key:"greaterThanOrEqual",value:function(e,t){return 0<=l.__compareToBigInt(e,t)}},{key:"equal",value:function(e,t){if(e.sign!==t.sign)return!1;if(e.length!==t.length)return!1;for(var _=0;_<e.length;_++)if(e.__digit(_)!==t.__digit(_))return!1;return!0}},{key:"notEqual",value:function(e,t){return!l.equal(e,t)}},{key:"bitwiseAnd",value:function(e,t){if(!e.sign&&!t.sign)return l.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){var i=a(e.length,t.length)+1,_=l.__absoluteSubOne(e,i),n=l.__absoluteSubOne(t);return _=l.__absoluteOr(_,n,_),l.__absoluteAddOne(_,!0,_).__trim()}if(e.sign){var g=[t,e];e=g[0],t=g[1]}return l.__absoluteAndNot(e,l.__absoluteSubOne(t)).__trim()}},{key:"bitwiseXor",value:function(e,t){if(!e.sign&&!t.sign)return l.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){var i=a(e.length,t.length),_=l.__absoluteSubOne(e,i),n=l.__absoluteSubOne(t);return l.__absoluteXor(_,n,_).__trim()}var g=a(e.length,t.length)+1;if(e.sign){var o=[t,e];e=o[0],t=o[1]}var s=l.__absoluteSubOne(t,g);return s=l.__absoluteXor(s,e,s),l.__absoluteAddOne(s,!0,s).__trim()}},{key:"bitwiseOr",value:function(e,t){var i=a(e.length,t.length);if(!e.sign&&!t.sign)return l.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){var _=l.__absoluteSubOne(e,i),n=l.__absoluteSubOne(t);return _=l.__absoluteAnd(_,n,_),l.__absoluteAddOne(_,!0,_).__trim()}if(e.sign){var g=[t,e];e=g[0],t=g[1]}var o=l.__absoluteSubOne(t,i);return o=l.__absoluteAndNot(o,e,o),l.__absoluteAddOne(o,!0,o).__trim()}},{key:"asIntN",value:function(e,t){if(0===t.length)return t;if(0===e)return l.__zero();if(e>=l.__kMaxLengthBits)return t;var _=e+31>>>5;if(t.length<_)return t;var n=t.__unsignedDigit(_-1),g=1<<(31&e-1);if(t.length===_&&n<g)return t;if(!((n&g)===g))return l.__truncateToNBits(e,t);if(!t.sign)return l.__truncateAndSubFromPowerOfTwo(e,t,!0);if(0==(n&g-1)){for(var o=_-2;0<=o;o--)if(0!==t.__digit(o))return l.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===_&&n===g?t:l.__truncateToNBits(e,t)}return l.__truncateAndSubFromPowerOfTwo(e,t,!1)}},{key:"asUintN",value:function(e,t){if(0===t.length)return t;if(0===e)return l.__zero();if(t.sign){if(e>l.__kMaxLengthBits)throw new RangeError("BigInt too big");return l.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=l.__kMaxLengthBits)return t;var i=e+31>>>5;if(t.length<i)return t;var _=31&e;if(t.length==i){if(0==_)return t;var n=t.__digit(i-1);if(0==n>>>_)return t}return l.__truncateToNBits(e,t)}},{key:"ADD",value:function(e,t){if(e=l.__toPrimitive(e),t=l.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=l.__toNumeric(e),t=l.__toNumeric(t),l.__isBigInt(e)&&l.__isBigInt(t))return l.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(e,t){return l.__compare(e,t,0)}},{key:"LE",value:function(e,t){return l.__compare(e,t,1)}},{key:"GT",value:function(e,t){return l.__compare(e,t,2)}},{key:"GE",value:function(e,t){return l.__compare(e,t,3)}},{key:"EQ",value:function(t,i){for(;;){if(l.__isBigInt(t))return l.__isBigInt(i)?l.equal(t,i):l.EQ(i,t);if("number"==typeof t){if(l.__isBigInt(i))return l.__equalToNumber(i,t);if("object"!==e(i))return t==i;i=l.__toPrimitive(i)}else if("string"==typeof t){if(l.__isBigInt(i))return t=l.__fromString(t),null!==t&&l.equal(t,i);if("object"!==e(i))return t==i;i=l.__toPrimitive(i)}else if("boolean"==typeof t){if(l.__isBigInt(i))return l.__equalToNumber(i,+t);if("object"!==e(i))return t==i;i=l.__toPrimitive(i)}else if("symbol"===e(t)){if(l.__isBigInt(i))return!1;if("object"!==e(i))return t==i;i=l.__toPrimitive(i)}else if("object"===e(t)){if("object"===e(i)&&i.constructor!==l)return t==i;t=l.__toPrimitive(t)}else return t==i}}},{key:"NE",value:function(e,t){return!l.EQ(e,t)}},{key:"__zero",value:function(){return new l(0,!1)}},{key:"__oneDigit",value:function(e,t){var i=new l(1,t);return i.__setDigit(0,e),i}},{key:"__decideRounding",value:function(e,t,i,_){if(0<t)return-1;var n;if(0>t)n=-t-1;else{if(0===i)return-1;i--,_=e.__digit(i),n=31}var g=1<<n;if(0==(_&g))return-1;if(g-=1,0!=(_&g))return 1;for(;0<i;)if(i--,0!==e.__digit(i))return 1;return 0}},{key:"__fromDouble",value:function(e){l.__kBitConversionDouble[0]=e;var t,i=2047&l.__kBitConversionInts[1]>>>20,_=i-1023,n=(_>>>5)+1,g=new l(n,0>e),o=1048575&l.__kBitConversionInts[1]|1048576,a=l.__kBitConversionInts[0],s=20,u=31&_,r=0;if(u<s){var d=s-u;r=d+32,t=o>>>d,o=o<<32-d|a>>>d,a<<=32-d}else if(u===s)r=32,t=o,o=a;else{var h=u-s;r=32-h,t=o<<h|a>>>32-h,o=a<<h}g.__setDigit(n-1,t);for(var b=n-2;0<=b;b--)0<r?(r-=32,t=o,o=a):t=0,g.__setDigit(b,t);return g.__trim()}},{key:"__isWhitespace",value:function(e){return!!(13>=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?(e&=131071,10>=e||40==e||41==e||47==e||95==e||4096==e):65279==e)}},{key:"__fromString",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=0,_=e.length,n=0;if(n===_)return l.__zero();for(var g=e.charCodeAt(n);l.__isWhitespace(g);){if(++n===_)return l.__zero();g=e.charCodeAt(n)}if(43===g){if(++n===_)return null;g=e.charCodeAt(n),i=1}else if(45===g){if(++n===_)return null;g=e.charCodeAt(n),i=-1}if(0===t){if(t=10,48===g){if(++n===_)return l.__zero();if(g=e.charCodeAt(n),88===g||120===g){if(t=16,++n===_)return null;g=e.charCodeAt(n)}else if(79===g||111===g){if(t=8,++n===_)return null;g=e.charCodeAt(n)}else if(66===g||98===g){if(t=2,++n===_)return null;g=e.charCodeAt(n)}}}else if(16===t&&48===g){if(++n===_)return l.__zero();if(g=e.charCodeAt(n),88===g||120===g){if(++n===_)return null;g=e.charCodeAt(n)}}for(;48===g;){if(++n===_)return l.__zero();g=e.charCodeAt(n)}var o=_-n,a=l.__kMaxBitsPerChar[t],s=l.__kBitsPerCharTableMultiplier-1;if(o>1073741824/a)return null;var u=a*o+s>>>l.__kBitsPerCharTableShift,r=new l(u+31>>>5,!1),h=10>t?t:10,b=10<t?t-10:0;if(0==(t&t-1)){a>>=l.__kBitsPerCharTableShift;var c=[],v=[],y=!1;do{for(var f,k=0,D=0;;){if(f=void 0,g-48>>>0<h)f=g-48;else if((32|g)-97>>>0<b)f=(32|g)-87;else{y=!0;break}if(D+=a,k=k<<a|f,++n===_){y=!0;break}if(g=e.charCodeAt(n),32<D+a)break}c.push(k),v.push(D)}while(!y);l.__fillFromParts(r,c,v)}else{r.__initializeDigits();var p=!1,B=0;do{for(var S,C=0,A=1;;){if(S=void 0,g-48>>>0<h)S=g-48;else if((32|g)-97>>>0<b)S=(32|g)-87;else{p=!0;break}var T=A*t;if(4294967295<T)break;if(A=T,C=C*t+S,B++,++n===_){p=!0;break}g=e.charCodeAt(n)}s=32*l.__kBitsPerCharTableMultiplier-1;var m=a*B+s>>>l.__kBitsPerCharTableShift+5;r.__inplaceMultiplyAdd(A,C,m)}while(!p)}for(;n!==_;){if(!l.__isWhitespace(g))return null;g=e.charCodeAt(n++)}return 0!==i&&10!==t?null:(r.sign=-1===i,r.__trim())}},{key:"__fillFromParts",value:function(e,t,_){for(var n=0,g=0,l=0,o=t.length-1;0<=o;o--){var a=t[o],s=_[o];g|=a<<l,l+=s,32===l?(e.__setDigit(n++,g),l=0,g=0):32<l&&(e.__setDigit(n++,g),l-=32,g=a>>>s-l)}if(0!==g){if(n>=e.length)throw new Error("implementation bug");e.__setDigit(n++,g)}for(;n<e.length;n++)e.__setDigit(n,0)}},{key:"__toStringBasePowerOfTwo",value:function(e,t){var _=e.length,n=t-1;n=(85&n>>>1)+(85&n),n=(51&n>>>2)+(51&n),n=(15&n>>>4)+(15&n);var g=n,o=t-1,a=e.__digit(_-1),s=u(a),r=0|(32*_-s+g-1)/g;if(e.sign&&r++,268435456<r)throw new Error("string too long");for(var d=Array(r),h=r-1,b=0,m=0,c=0;c<_-1;c++){var v=e.__digit(c),y=(b|v<<m)&o;d[h--]=l.__kConversionChars[y];var f=g-m;for(b=v>>>f,m=32-f;m>=g;)d[h--]=l.__kConversionChars[b&o],b>>>=g,m-=g}var k=(b|a<<m)&o;for(d[h--]=l.__kConversionChars[k],b=a>>>g-m;0!==b;)d[h--]=l.__kConversionChars[b&o],b>>>=g;if(e.sign&&(d[h--]="-"),-1!==h)throw new Error("implementation bug");return d.join("")}},{key:"__toStringGeneric",value:function(e,t,_){var n=e.length;if(0===n)return"";if(1===n){var g=e.__unsignedDigit(0).toString(t);return!1===_&&e.sign&&(g="-"+g),g}var o=32*n-u(e.__digit(n-1)),a=l.__kMaxBitsPerChar[t],s=a-1,r=o*l.__kBitsPerCharTableMultiplier;r+=s-1,r=0|r/s;var d,h,b=r+1>>1,m=l.exponentiate(l.__oneDigit(t,!1),l.__oneDigit(b,!1)),c=m.__unsignedDigit(0);if(1===m.length&&65535>=c){d=new l(e.length,!1),d.__initializeDigits();for(var v,y=0,f=2*e.length-1;0<=f;f--)v=y<<16|e.__halfDigit(f),d.__setHalfDigit(f,0|v/c),y=0|v%c;h=y.toString(t)}else{var k=l.__absoluteDivLarge(e,m,!0,!0);d=k.quotient;var D=k.remainder.__trim();h=l.__toStringGeneric(D,t,!0)}d.__trim();for(var p=l.__toStringGeneric(d,t,!0);h.length<b;)h="0"+h;return!1===_&&e.sign&&(p="-"+p),p+h}},{key:"__unequalSign",value:function(e){return e?-1:1}},{key:"__absoluteGreater",value:function(e){return e?-1:1}},{key:"__absoluteLess",value:function(e){return e?1:-1}},{key:"__compareToBigInt",value:function(e,t){var i=e.sign;if(i!==t.sign)return l.__unequalSign(i);var _=l.__absoluteCompare(e,t);return 0<_?l.__absoluteGreater(i):0>_?l.__absoluteLess(i):0}},{key:"__compareToNumber",value:function(e,t){if(!0|t){var i=e.sign,_=0>t;if(i!==_)return l.__unequalSign(i);if(0===e.length){if(_)throw new Error("implementation bug");return 0===t?0:-1}if(1<e.length)return l.__absoluteGreater(i);var n=o(t),g=e.__unsignedDigit(0);return g>n?l.__absoluteGreater(i):g<n?l.__absoluteLess(i):0}return l.__compareToDouble(e,t)}},{key:"__compareToDouble",value:function(e,t){if(t!==t)return t;if(t===1/0)return-1;if(t===-Infinity)return 1;var i=e.sign;if(i!==0>t)return l.__unequalSign(i);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return-1;l.__kBitConversionDouble[0]=t;var _=2047&l.__kBitConversionInts[1]>>>20;if(2047==_)throw new Error("implementation bug: handled elsewhere");var n=_-1023;if(0>n)return l.__absoluteGreater(i);var g=e.length,o=e.__digit(g-1),a=u(o),s=32*g-a,r=n+1;if(s<r)return l.__absoluteLess(i);if(s>r)return l.__absoluteGreater(i);var d=1048576|1048575&l.__kBitConversionInts[1],h=l.__kBitConversionInts[0],b=20,m=31-a;if(m!==(s-1)%31)throw new Error("implementation bug");var c,v=0;if(m<b){var y=b-m;v=y+32,c=d>>>y,d=d<<32-y|h>>>y,h<<=32-y}else if(m===b)v=32,c=d,d=h;else{var f=m-b;v=32-f,c=d<<f|h>>>32-f,d=h<<f}if(o>>>=0,c>>>=0,o>c)return l.__absoluteGreater(i);if(o<c)return l.__absoluteLess(i);for(var k=g-2;0<=k;k--){0<v?(v-=32,c=d>>>0,d=h,h=0):c=0;var D=e.__unsignedDigit(k);if(D>c)return l.__absoluteGreater(i);if(D<c)return l.__absoluteLess(i)}if(0!==d||0!==h){if(0===v)throw new Error("implementation bug");return l.__absoluteLess(i)}return 0}},{key:"__equalToNumber",value:function(e,t){return t|0===t?0===t?0===e.length:1===e.length&&e.sign===0>t&&e.__unsignedDigit(0)===o(t):0===l.__compareToDouble(e,t)}},{key:"__comparisonResultToBool",value:function(e,t){switch(t){case 0:return 0>e;case 1:return 0>=e;case 2:return 0<e;case 3:return 0<=e;}throw new Error("unreachable")}},{key:"__compare",value:function(e,t,i){if(e=l.__toPrimitive(e),t=l.__toPrimitive(t),"string"==typeof e&&"string"==typeof t)switch(i){case 0:return e<t;case 1:return e<=t;case 2:return e>t;case 3:return e>=t;}if(l.__isBigInt(e)&&"string"==typeof t)return t=l.__fromString(t),null!==t&&l.__comparisonResultToBool(l.__compareToBigInt(e,t),i);if("string"==typeof e&&l.__isBigInt(t))return e=l.__fromString(e),null!==e&&l.__comparisonResultToBool(l.__compareToBigInt(e,t),i);if(e=l.__toNumeric(e),t=l.__toNumeric(t),l.__isBigInt(e)){if(l.__isBigInt(t))return l.__comparisonResultToBool(l.__compareToBigInt(e,t),i);if("number"!=typeof t)throw new Error("implementation bug");return l.__comparisonResultToBool(l.__compareToNumber(e,t),i)}if("number"!=typeof e)throw new Error("implementation bug");if(l.__isBigInt(t))return l.__comparisonResultToBool(l.__compareToNumber(t,e),2^i);if("number"!=typeof t)throw new Error("implementation bug");return 0===i?e<t:1===i?e<=t:2===i?e>t:3===i?e>=t:void 0}},{key:"__absoluteAdd",value:function(e,t,_){if(e.length<t.length)return l.__absoluteAdd(t,e,_);if(0===e.length)return e;if(0===t.length)return e.sign===_?e:l.unaryMinus(e);var n=e.length;(0===e.__clzmsd()||t.length===e.length&&0===t.__clzmsd())&&n++;for(var g=new l(n,_),o=0,a=0;a<t.length;a++){var s=t.__digit(a),u=e.__digit(a),r=(65535&u)+(65535&s)+o,d=(u>>>16)+(s>>>16)+(r>>>16);o=d>>>16,g.__setDigit(a,65535&r|d<<16)}for(;a<e.length;a++){var h=e.__digit(a),b=(65535&h)+o,m=(h>>>16)+(b>>>16);o=m>>>16,g.__setDigit(a,65535&b|m<<16)}return a<g.length&&g.__setDigit(a,o),g.__trim()}},{key:"__absoluteSub",value:function(e,t,_){if(0===e.length)return e;if(0===t.length)return e.sign===_?e:l.unaryMinus(e);for(var n=new l(e.length,_),g=0,o=0;o<t.length;o++){var a=e.__digit(o),s=t.__digit(o),u=(65535&a)-(65535&s)-g;g=1&u>>>16;var r=(a>>>16)-(s>>>16)-g;g=1&r>>>16,n.__setDigit(o,65535&u|r<<16)}for(;o<e.length;o++){var d=e.__digit(o),h=(65535&d)-g;g=1&h>>>16;var b=(d>>>16)-g;g=1&b>>>16,n.__setDigit(o,65535&h|b<<16)}return n.__trim()}},{key:"__absoluteAddOne",value:function(e,t){var _=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=e.length;null===_?_=new l(n,t):_.sign=t;for(var g=!0,o=0;o<n;o++){var a=e.__digit(o),s=-1===a;g&&(a=0|a+1),g=s,_.__setDigit(o,a)}return g&&_.__setDigitGrow(n,1),_}},{key:"__absoluteSubOne",value:function(e,t){var _=e.length;t=t||_;for(var n=new l(t,!1),g=!0,o=0;o<_;o++){var a=e.__digit(o),s=0===a;g&&(a=0|a-1),g=s,n.__setDigit(o,a)}for(var u=_;u<t;u++)n.__setDigit(u,0);return n}},{key:"__absoluteAnd",value:function(e,t){var _=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=e.length,g=t.length,o=g;if(n<g){o=n;var a=e,s=n;e=t,n=g,t=a,g=s}var u=o;null===_?_=new l(u,!1):u=_.length;for(var r=0;r<o;r++)_.__setDigit(r,e.__digit(r)&t.__digit(r));for(;r<u;r++)_.__setDigit(r,0);return _}},{key:"__absoluteAndNot",value:function(e,t){var _=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=e.length,g=t.length,o=g;n<g&&(o=n);var a=n;null===_?_=new l(a,!1):a=_.length;for(var s=0;s<o;s++)_.__setDigit(s,e.__digit(s)&~t.__digit(s));for(;s<n;s++)_.__setDigit(s,e.__digit(s));for(;s<a;s++)_.__setDigit(s,0);return _}},{key:"__absoluteOr",value:function(e,t){var _=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=e.length,g=t.length,o=g;if(n<g){o=n;var a=e,s=n;e=t,n=g,t=a,g=s}var u=n;null===_?_=new l(u,!1):u=_.length;for(var r=0;r<o;r++)_.__setDigit(r,e.__digit(r)|t.__digit(r));for(;r<n;r++)_.__setDigit(r,e.__digit(r));for(;r<u;r++)_.__setDigit(r,0);return _}},{key:"__absoluteXor",value:function(e,t){var _=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=e.length,g=t.length,o=g;if(n<g){o=n;var a=e,s=n;e=t,n=g,t=a,g=s}var u=n;null===_?_=new l(u,!1):u=_.length;for(var r=0;r<o;r++)_.__setDigit(r,e.__digit(r)^t.__digit(r));for(;r<n;r++)_.__setDigit(r,e.__digit(r));for(;r<u;r++)_.__setDigit(r,0);return _}},{key:"__absoluteCompare",value:function(e,t){var _=e.length-t.length;if(0!=_)return _;for(var n=e.length-1;0<=n&&e.__digit(n)===t.__digit(n);)n--;return 0>n?0:e.__unsignedDigit(n)>t.__unsignedDigit(n)?1:-1}},{key:"__multiplyAccumulate",value:function(e,t,_,n){if(0!==t){for(var g=65535&t,l=t>>>16,o=0,a=0,u=0,r=0;r<e.length;r++,n++){var d=_.__digit(n),h=65535&d,b=d>>>16,m=e.__digit(r),c=65535&m,v=m>>>16,y=s(c,g),f=s(c,l),k=s(v,g),D=s(v,l);h+=a+(65535&y),b+=u+o+(h>>>16)+(y>>>16)+(65535&f)+(65535&k),o=b>>>16,a=(f>>>16)+(k>>>16)+(65535&D)+o,o=a>>>16,a&=65535,u=D>>>16,d=65535&h|b<<16,_.__setDigit(n,d)}for(;0!==o||0!==a||0!==u;n++){var p=_.__digit(n),B=(65535&p)+a,S=(p>>>16)+(B>>>16)+u+o;a=0,u=0,o=S>>>16,p=65535&B|S<<16,_.__setDigit(n,p)}}}},{key:"__internalMultiplyAdd",value:function(e,t,_,g,l){for(var o=_,a=0,u=0;u<g;u++){var r=e.__digit(u),d=s(65535&r,t),h=(65535&d)+a+o;o=h>>>16;var b=s(r>>>16,t),m=(65535&b)+(d>>>16)+o;o=m>>>16,a=b>>>16,l.__setDigit(u,m<<16|65535&h)}if(l.length>g)for(l.__setDigit(g++,o+a);g<l.length;)l.__setDigit(g++,0);else if(0!==o+a)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(e,t,_){null===_&&(_=new l(e.length,!1));for(var n=0,g=2*e.length-1;0<=g;g-=2){var o=(n<<16|e.__halfDigit(g))>>>0,a=0|o/t;n=0|o%t,o=(n<<16|e.__halfDigit(g-1))>>>0;var s=0|o/t;n=0|o%t,_.__setDigit(g>>>1,a<<16|s)}return _}},{key:"__absoluteModSmall",value:function(e,t){for(var _,n=0,g=2*e.length-1;0<=g;g--)_=(n<<16|e.__halfDigit(g))>>>0,n=0|_%t;return n}},{key:"__absoluteDivLarge",value:function(e,t,i,_){var g=t.__halfDigitLength(),n=t.length,o=e.__halfDigitLength()-g,a=null;i&&(a=new l(o+2>>>1,!1),a.__initializeDigits());var r=new l(g+2>>>1,!1);r.__initializeDigits();var d=l.__clz16(t.__halfDigit(g-1));0<d&&(t=l.__specialLeftShift(t,d,0));for(var h=l.__specialLeftShift(e,d,1),u=t.__halfDigit(g-1),b=0,m=o;0<=m;m--){var v=65535,y=h.__halfDigit(m+g);if(y!==u){var f=(y<<16|h.__halfDigit(m+g-1))>>>0;v=0|f/u;for(var k=0|f%u,D=t.__halfDigit(g-2),p=h.__halfDigit(m+g-2);s(v,D)>>>0>(k<<16|p)>>>0&&(v--,k+=u,!(65535<k)););}l.__internalMultiplyAdd(t,v,0,n,r);var B=h.__inplaceSub(r,m,g+1);0!==B&&(B=h.__inplaceAdd(t,m,g),h.__setHalfDigit(m+g,h.__halfDigit(m+g)+B),v--),i&&(1&m?b=v<<16:a.__setDigit(m>>>1,b|v))}return _?(h.__inplaceRightShift(d),i?{quotient:a,remainder:h}:h):i?a:void 0}},{key:"__clz16",value:function(e){return u(e)-16}},{key:"__specialLeftShift",value:function(e,t,_){var g=e.length,n=new l(g+_,!1);if(0===t){for(var o=0;o<g;o++)n.__setDigit(o,e.__digit(o));return 0<_&&n.__setDigit(g,0),n}for(var a,s=0,u=0;u<g;u++)a=e.__digit(u),n.__setDigit(u,a<<t|s),s=a>>>32-t;return 0<_&&n.__setDigit(g,s),n}},{key:"__leftShiftByAbsolute",value:function(e,t){var _=l.__toShiftAmount(t);if(0>_)throw new RangeError("BigInt too big");var n=_>>>5,g=31&_,o=e.length,a=0!==g&&0!=e.__digit(o-1)>>>32-g,s=o+n+(a?1:0),u=new l(s,e.sign);if(0===g){for(var r=0;r<n;r++)u.__setDigit(r,0);for(;r<s;r++)u.__setDigit(r,e.__digit(r-n))}else{for(var h=0,b=0;b<n;b++)u.__setDigit(b,0);for(var m,c=0;c<o;c++)m=e.__digit(c),u.__setDigit(c+n,m<<g|h),h=m>>>32-g;if(a)u.__setDigit(o+n,h);else if(0!==h)throw new Error("implementation bug")}return u.__trim()}},{key:"__rightShiftByAbsolute",value:function(e,t){var _=e.length,n=e.sign,g=l.__toShiftAmount(t);if(0>g)return l.__rightShiftByMaximum(n);var o=g>>>5,a=31&g,s=_-o;if(0>=s)return l.__rightShiftByMaximum(n);var u=!1;if(n){if(0!=(e.__digit(o)&(1<<a)-1))u=!0;else for(var r=0;r<o;r++)if(0!==e.__digit(r)){u=!0;break}}if(u&&0===a){var h=e.__digit(_-1);0==~h&&s++}var b=new l(s,n);if(0===a)for(var m=o;m<_;m++)b.__setDigit(m-o,e.__digit(m));else{for(var c,v=e.__digit(o)>>>a,y=_-o-1,f=0;f<y;f++)c=e.__digit(f+o+1),b.__setDigit(f,c<<32-a|v),v=c>>>a;b.__setDigit(y,v)}return u&&(b=l.__absoluteAddOne(b,!0,b)),b.__trim()}},{key:"__rightShiftByMaximum",value:function(e){return e?l.__oneDigit(1,!0):l.__zero()}},{key:"__toShiftAmount",value:function(e){if(1<e.length)return-1;var t=e.__unsignedDigit(0);return t>l.__kMaxLengthBits?-1:t}},{key:"__toPrimitive",value:function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"default";if("object"!==e(t))return t;if(t.constructor===l)return t;var _=t[Symbol.toPrimitive];if(_){var n=_(i);if("object"!==e(n))return n;throw new TypeError("Cannot convert object to primitive value")}var g=t.valueOf;if(g){var o=g.call(t);if("object"!==e(o))return o}var a=t.toString;if(a){var s=a.call(t);if("object"!==e(s))return s}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(e){return l.__isBigInt(e)?e:+e}},{key:"__isBigInt",value:function(t){return"object"===e(t)&&t.constructor===l}},{key:"__truncateToNBits",value:function(e,t){for(var _=e+31>>>5,n=new l(_,t.sign),g=_-1,o=0;o<g;o++)n.__setDigit(o,t.__digit(o));var a=t.__digit(g);if(0!=(31&e)){var s=32-(31&e);a=a<<s>>>s}return n.__setDigit(g,a),n.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(e,t,_){for(var n=Math.min,g=e+31>>>5,o=new l(g,_),a=0,s=g-1,u=0,r=n(s,t.length);a<r;a++){var d=t.__digit(a),h=0-(65535&d)-u;u=1&h>>>16;var b=0-(d>>>16)-u;u=1&b>>>16,o.__setDigit(a,65535&h|b<<16)}for(;a<s;a++)o.__setDigit(a,0|-u);var m,c=s<t.length?t.__digit(s):0,v=31&e;if(0===v){var y=0-(65535&c)-u;u=1&y>>>16;var f=0-(c>>>16)-u;m=65535&y|f<<16}else{var k=32-v;c=c<<k>>>k;var D=1<<32-k,p=(65535&D)-(65535&c)-u;u=1&p>>>16;var B=(D>>>16)-(c>>>16)-u;m=65535&p|B<<16,m&=D-1}return o.__setDigit(s,m),o.__trim()}},{key:"__digitPow",value:function(e,t){for(var i=1;0<t;)1&t&&(i*=e),t>>>=1,e*=e;return i}}]),l}(u(Array));return h.__kMaxLength=33554432,h.__kMaxLengthBits=h.__kMaxLength<<5,h.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],h.__kBitsPerCharTableShift=5,h.__kBitsPerCharTableMultiplier=1<<h.__kBitsPerCharTableShift,h.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],h.__kBitConversionBuffer=new ArrayBuffer(8),h.__kBitConversionDouble=new Float64Array(h.__kBitConversionBuffer),h.__kBitConversionInts=new Int32Array(h.__kBitConversionBuffer),h});
|
|
18782
21330
|
|
|
18783
21331
|
}).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,"/node_modules/jsbi/dist/jsbi-umd.js","/node_modules/jsbi/dist")
|
|
18784
|
-
},{"_process":
|
|
21332
|
+
},{"_process":119,"buffer":109,"timers":140}],117:[function(require,module,exports){
|
|
18785
21333
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
18786
21334
|
/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
|
|
18787
21335
|
;(function () {
|
|
@@ -19687,7 +22235,7 @@ if (typeof Object.create === 'function') {
|
|
|
19687
22235
|
}).call(this);
|
|
19688
22236
|
|
|
19689
22237
|
}).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,"/node_modules/json3/lib/json3.js","/node_modules/json3/lib")
|
|
19690
|
-
},{"_process":
|
|
22238
|
+
},{"_process":119,"buffer":109,"timers":140}],118:[function(require,module,exports){
|
|
19691
22239
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
19692
22240
|
'use strict';
|
|
19693
22241
|
|
|
@@ -19735,7 +22283,7 @@ function nextTick(fn, arg1, arg2, arg3) {
|
|
|
19735
22283
|
|
|
19736
22284
|
|
|
19737
22285
|
}).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,"/node_modules/process-nextick-args/index.js","/node_modules/process-nextick-args")
|
|
19738
|
-
},{"_process":
|
|
22286
|
+
},{"_process":119,"buffer":109,"timers":140}],119:[function(require,module,exports){
|
|
19739
22287
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
19740
22288
|
// shim for using process in browser
|
|
19741
22289
|
var process = module.exports = {};
|
|
@@ -19923,7 +22471,7 @@ process.chdir = function (dir) {
|
|
|
19923
22471
|
process.umask = function() { return 0; };
|
|
19924
22472
|
|
|
19925
22473
|
}).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,"/node_modules/process/browser.js","/node_modules/process")
|
|
19926
|
-
},{"_process":
|
|
22474
|
+
},{"_process":119,"buffer":109,"timers":140}],120:[function(require,module,exports){
|
|
19927
22475
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
19928
22476
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
19929
22477
|
;(function(root) {
|
|
@@ -20460,7 +23008,7 @@ process.umask = function() { return 0; };
|
|
|
20460
23008
|
}(this));
|
|
20461
23009
|
|
|
20462
23010
|
}).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,"/node_modules/punycode/punycode.js","/node_modules/punycode")
|
|
20463
|
-
},{"_process":
|
|
23011
|
+
},{"_process":119,"buffer":109,"timers":140}],121:[function(require,module,exports){
|
|
20464
23012
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
20465
23013
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
20466
23014
|
//
|
|
@@ -20548,7 +23096,7 @@ var isArray = Array.isArray || function (xs) {
|
|
|
20548
23096
|
};
|
|
20549
23097
|
|
|
20550
23098
|
}).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,"/node_modules/querystring-es3/decode.js","/node_modules/querystring-es3")
|
|
20551
|
-
},{"_process":
|
|
23099
|
+
},{"_process":119,"buffer":109,"timers":140}],122:[function(require,module,exports){
|
|
20552
23100
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
20553
23101
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
20554
23102
|
//
|
|
@@ -20637,7 +23185,7 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
20637
23185
|
};
|
|
20638
23186
|
|
|
20639
23187
|
}).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,"/node_modules/querystring-es3/encode.js","/node_modules/querystring-es3")
|
|
20640
|
-
},{"_process":
|
|
23188
|
+
},{"_process":119,"buffer":109,"timers":140}],123:[function(require,module,exports){
|
|
20641
23189
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
20642
23190
|
'use strict';
|
|
20643
23191
|
|
|
@@ -20645,7 +23193,7 @@ exports.decode = exports.parse = require('./decode');
|
|
|
20645
23193
|
exports.encode = exports.stringify = require('./encode');
|
|
20646
23194
|
|
|
20647
23195
|
}).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,"/node_modules/querystring-es3/index.js","/node_modules/querystring-es3")
|
|
20648
|
-
},{"./decode":
|
|
23196
|
+
},{"./decode":121,"./encode":122,"_process":119,"buffer":109,"timers":140}],124:[function(require,module,exports){
|
|
20649
23197
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
20650
23198
|
/* eslint-disable node/no-deprecated-api */
|
|
20651
23199
|
var buffer = require('buffer')
|
|
@@ -20711,7 +23259,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
|
|
|
20711
23259
|
}
|
|
20712
23260
|
|
|
20713
23261
|
}).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,"/node_modules/safe-buffer/index.js","/node_modules/safe-buffer")
|
|
20714
|
-
},{"_process":
|
|
23262
|
+
},{"_process":119,"buffer":109,"timers":140}],125:[function(require,module,exports){
|
|
20715
23263
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
20716
23264
|
var ClientRequest = require('./lib/request')
|
|
20717
23265
|
var response = require('./lib/response')
|
|
@@ -20799,7 +23347,7 @@ http.METHODS = [
|
|
|
20799
23347
|
'UNSUBSCRIBE'
|
|
20800
23348
|
]
|
|
20801
23349
|
}).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,"/node_modules/stream-http/index.js","/node_modules/stream-http")
|
|
20802
|
-
},{"./lib/request":
|
|
23350
|
+
},{"./lib/request":127,"./lib/response":128,"_process":119,"buffer":109,"builtin-status-codes":110,"timers":140,"url":142,"xtend":146}],126:[function(require,module,exports){
|
|
20803
23351
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
20804
23352
|
exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
|
|
20805
23353
|
|
|
@@ -20876,7 +23424,7 @@ function isFunction (value) {
|
|
|
20876
23424
|
xhr = null // Help gc
|
|
20877
23425
|
|
|
20878
23426
|
}).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,"/node_modules/stream-http/lib/capability.js","/node_modules/stream-http/lib")
|
|
20879
|
-
},{"_process":
|
|
23427
|
+
},{"_process":119,"buffer":109,"timers":140}],127:[function(require,module,exports){
|
|
20880
23428
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
20881
23429
|
var capability = require('./capability')
|
|
20882
23430
|
var inherits = require('inherits')
|
|
@@ -21207,7 +23755,7 @@ var unsafeHeaders = [
|
|
|
21207
23755
|
]
|
|
21208
23756
|
|
|
21209
23757
|
}).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,"/node_modules/stream-http/lib/request.js","/node_modules/stream-http/lib")
|
|
21210
|
-
},{"./capability":
|
|
23758
|
+
},{"./capability":126,"./response":128,"_process":119,"buffer":109,"inherits":115,"readable-stream":138,"timers":140,"to-arraybuffer":141}],128:[function(require,module,exports){
|
|
21211
23759
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
21212
23760
|
var capability = require('./capability')
|
|
21213
23761
|
var inherits = require('inherits')
|
|
@@ -21435,7 +23983,7 @@ IncomingMessage.prototype._onXHRProgress = function () {
|
|
|
21435
23983
|
}
|
|
21436
23984
|
|
|
21437
23985
|
}).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,"/node_modules/stream-http/lib/response.js","/node_modules/stream-http/lib")
|
|
21438
|
-
},{"./capability":
|
|
23986
|
+
},{"./capability":126,"_process":119,"buffer":109,"inherits":115,"readable-stream":138,"timers":140}],129:[function(require,module,exports){
|
|
21439
23987
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
21440
23988
|
var toString = {}.toString;
|
|
21441
23989
|
|
|
@@ -21444,7 +23992,7 @@ module.exports = Array.isArray || function (arr) {
|
|
|
21444
23992
|
};
|
|
21445
23993
|
|
|
21446
23994
|
}).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,"/node_modules/stream-http/node_modules/isarray/index.js","/node_modules/stream-http/node_modules/isarray")
|
|
21447
|
-
},{"_process":
|
|
23995
|
+
},{"_process":119,"buffer":109,"timers":140}],130:[function(require,module,exports){
|
|
21448
23996
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
21449
23997
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
21450
23998
|
//
|
|
@@ -21578,7 +24126,7 @@ Duplex.prototype._destroy = function (err, cb) {
|
|
|
21578
24126
|
pna.nextTick(cb, err);
|
|
21579
24127
|
};
|
|
21580
24128
|
}).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,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_duplex.js","/node_modules/stream-http/node_modules/readable-stream/lib")
|
|
21581
|
-
},{"./_stream_readable":
|
|
24129
|
+
},{"./_stream_readable":132,"./_stream_writable":134,"_process":119,"buffer":109,"core-util-is":111,"inherits":115,"process-nextick-args":118,"timers":140}],131:[function(require,module,exports){
|
|
21582
24130
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
21583
24131
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
21584
24132
|
//
|
|
@@ -21628,7 +24176,7 @@ PassThrough.prototype._transform = function (chunk, encoding, cb) {
|
|
|
21628
24176
|
cb(null, chunk);
|
|
21629
24177
|
};
|
|
21630
24178
|
}).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,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_passthrough.js","/node_modules/stream-http/node_modules/readable-stream/lib")
|
|
21631
|
-
},{"./_stream_transform":
|
|
24179
|
+
},{"./_stream_transform":133,"_process":119,"buffer":109,"core-util-is":111,"inherits":115,"timers":140}],132:[function(require,module,exports){
|
|
21632
24180
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
21633
24181
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
21634
24182
|
//
|
|
@@ -22650,7 +25198,7 @@ function indexOf(xs, x) {
|
|
|
22650
25198
|
return -1;
|
|
22651
25199
|
}
|
|
22652
25200
|
}).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,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_readable.js","/node_modules/stream-http/node_modules/readable-stream/lib")
|
|
22653
|
-
},{"./_stream_duplex":
|
|
25201
|
+
},{"./_stream_duplex":130,"./internal/streams/BufferList":135,"./internal/streams/destroy":136,"./internal/streams/stream":137,"_process":119,"buffer":109,"core-util-is":111,"events":112,"inherits":115,"isarray":129,"process-nextick-args":118,"safe-buffer":124,"string_decoder/":139,"timers":140,"util":107}],133:[function(require,module,exports){
|
|
22654
25202
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
22655
25203
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
22656
25204
|
//
|
|
@@ -22867,7 +25415,7 @@ function done(stream, er, data) {
|
|
|
22867
25415
|
return stream.push(null);
|
|
22868
25416
|
}
|
|
22869
25417
|
}).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,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_transform.js","/node_modules/stream-http/node_modules/readable-stream/lib")
|
|
22870
|
-
},{"./_stream_duplex":
|
|
25418
|
+
},{"./_stream_duplex":130,"_process":119,"buffer":109,"core-util-is":111,"inherits":115,"timers":140}],134:[function(require,module,exports){
|
|
22871
25419
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
22872
25420
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
22873
25421
|
//
|
|
@@ -23557,7 +26105,7 @@ Writable.prototype._destroy = function (err, cb) {
|
|
|
23557
26105
|
cb(err);
|
|
23558
26106
|
};
|
|
23559
26107
|
}).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,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_writable.js","/node_modules/stream-http/node_modules/readable-stream/lib")
|
|
23560
|
-
},{"./_stream_duplex":
|
|
26108
|
+
},{"./_stream_duplex":130,"./internal/streams/destroy":136,"./internal/streams/stream":137,"_process":119,"buffer":109,"core-util-is":111,"inherits":115,"process-nextick-args":118,"safe-buffer":124,"timers":140,"util-deprecate":144}],135:[function(require,module,exports){
|
|
23561
26109
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
23562
26110
|
'use strict';
|
|
23563
26111
|
|
|
@@ -23639,7 +26187,7 @@ if (util && util.inspect && util.inspect.custom) {
|
|
|
23639
26187
|
};
|
|
23640
26188
|
}
|
|
23641
26189
|
}).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,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/BufferList.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")
|
|
23642
|
-
},{"_process":
|
|
26190
|
+
},{"_process":119,"buffer":109,"safe-buffer":124,"timers":140,"util":107}],136:[function(require,module,exports){
|
|
23643
26191
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
23644
26192
|
'use strict';
|
|
23645
26193
|
|
|
@@ -23716,12 +26264,12 @@ module.exports = {
|
|
|
23716
26264
|
undestroy: undestroy
|
|
23717
26265
|
};
|
|
23718
26266
|
}).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,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/destroy.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")
|
|
23719
|
-
},{"_process":
|
|
26267
|
+
},{"_process":119,"buffer":109,"process-nextick-args":118,"timers":140}],137:[function(require,module,exports){
|
|
23720
26268
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
23721
26269
|
module.exports = require('events').EventEmitter;
|
|
23722
26270
|
|
|
23723
26271
|
}).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,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/stream-browser.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")
|
|
23724
|
-
},{"_process":
|
|
26272
|
+
},{"_process":119,"buffer":109,"events":112,"timers":140}],138:[function(require,module,exports){
|
|
23725
26273
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
23726
26274
|
exports = module.exports = require('./lib/_stream_readable.js');
|
|
23727
26275
|
exports.Stream = exports;
|
|
@@ -23732,7 +26280,7 @@ exports.Transform = require('./lib/_stream_transform.js');
|
|
|
23732
26280
|
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
23733
26281
|
|
|
23734
26282
|
}).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,"/node_modules/stream-http/node_modules/readable-stream/readable-browser.js","/node_modules/stream-http/node_modules/readable-stream")
|
|
23735
|
-
},{"./lib/_stream_duplex.js":
|
|
26283
|
+
},{"./lib/_stream_duplex.js":130,"./lib/_stream_passthrough.js":131,"./lib/_stream_readable.js":132,"./lib/_stream_transform.js":133,"./lib/_stream_writable.js":134,"_process":119,"buffer":109,"timers":140}],139:[function(require,module,exports){
|
|
23736
26284
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
23737
26285
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
23738
26286
|
//
|
|
@@ -24031,7 +26579,7 @@ function simpleEnd(buf) {
|
|
|
24031
26579
|
return buf && buf.length ? this.write(buf) : '';
|
|
24032
26580
|
}
|
|
24033
26581
|
}).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,"/node_modules/stream-http/node_modules/string_decoder/lib/string_decoder.js","/node_modules/stream-http/node_modules/string_decoder/lib")
|
|
24034
|
-
},{"_process":
|
|
26582
|
+
},{"_process":119,"buffer":109,"safe-buffer":124,"timers":140}],140:[function(require,module,exports){
|
|
24035
26583
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
24036
26584
|
var nextTick = require('process/browser.js').nextTick;
|
|
24037
26585
|
var apply = Function.prototype.apply;
|
|
@@ -24110,7 +26658,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
|
|
|
24110
26658
|
delete immediateIds[id];
|
|
24111
26659
|
};
|
|
24112
26660
|
}).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,"/node_modules/timers-browserify/main.js","/node_modules/timers-browserify")
|
|
24113
|
-
},{"_process":
|
|
26661
|
+
},{"_process":119,"buffer":109,"process/browser.js":119,"timers":140}],141:[function(require,module,exports){
|
|
24114
26662
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
24115
26663
|
var Buffer = require('buffer').Buffer
|
|
24116
26664
|
|
|
@@ -24141,7 +26689,7 @@ module.exports = function (buf) {
|
|
|
24141
26689
|
}
|
|
24142
26690
|
|
|
24143
26691
|
}).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,"/node_modules/to-arraybuffer/index.js","/node_modules/to-arraybuffer")
|
|
24144
|
-
},{"_process":
|
|
26692
|
+
},{"_process":119,"buffer":109,"timers":140}],142:[function(require,module,exports){
|
|
24145
26693
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
24146
26694
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
24147
26695
|
//
|
|
@@ -24877,7 +27425,7 @@ Url.prototype.parseHost = function() {
|
|
|
24877
27425
|
};
|
|
24878
27426
|
|
|
24879
27427
|
}).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,"/node_modules/url/url.js","/node_modules/url")
|
|
24880
|
-
},{"./util":
|
|
27428
|
+
},{"./util":143,"_process":119,"buffer":109,"punycode":120,"querystring":123,"timers":140}],143:[function(require,module,exports){
|
|
24881
27429
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
24882
27430
|
'use strict';
|
|
24883
27431
|
|
|
@@ -24897,7 +27445,7 @@ module.exports = {
|
|
|
24897
27445
|
};
|
|
24898
27446
|
|
|
24899
27447
|
}).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,"/node_modules/url/util.js","/node_modules/url")
|
|
24900
|
-
},{"_process":
|
|
27448
|
+
},{"_process":119,"buffer":109,"timers":140}],144:[function(require,module,exports){
|
|
24901
27449
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
24902
27450
|
|
|
24903
27451
|
/**
|
|
@@ -24968,7 +27516,7 @@ function config (name) {
|
|
|
24968
27516
|
}
|
|
24969
27517
|
|
|
24970
27518
|
}).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,"/node_modules/util-deprecate/browser.js","/node_modules/util-deprecate")
|
|
24971
|
-
},{"_process":
|
|
27519
|
+
},{"_process":119,"buffer":109,"timers":140}],145:[function(require,module,exports){
|
|
24972
27520
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
24973
27521
|
/**
|
|
24974
27522
|
* Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
|
|
@@ -25592,7 +28140,7 @@ exports.XMLHttpRequest = function() {
|
|
|
25592
28140
|
};
|
|
25593
28141
|
|
|
25594
28142
|
}).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,"/node_modules/xmlhttprequest/lib/XMLHttpRequest.js","/node_modules/xmlhttprequest/lib")
|
|
25595
|
-
},{"_process":
|
|
28143
|
+
},{"_process":119,"buffer":109,"child_process":108,"fs":108,"http":125,"https":113,"timers":140,"url":142}],146:[function(require,module,exports){
|
|
25596
28144
|
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
|
|
25597
28145
|
module.exports = extend
|
|
25598
28146
|
|
|
@@ -25615,5 +28163,5 @@ function extend() {
|
|
|
25615
28163
|
}
|
|
25616
28164
|
|
|
25617
28165
|
}).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,"/node_modules/xtend/immutable.js","/node_modules/xtend")
|
|
25618
|
-
},{"_process":
|
|
28166
|
+
},{"_process":119,"buffer":109,"timers":140}]},{},[15])(15)
|
|
25619
28167
|
});
|