@ariva-mds/mds 2.9.0 → 2.11.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/lib/cjs/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.MdsConnection = exports.MarketstateUpdate = exports.MdsAuthdata = void 0;
6
+ exports.MdsConnection = exports.MdsConnectionState = exports.MarketstateUpdate = exports.MdsAuthdata = void 0;
7
7
  const reconnecting_websocket_1 = __importDefault(require("reconnecting-websocket"));
8
8
  const rxjs_1 = require("rxjs");
9
9
  const MarketstateWithId_1 = require("./models/MarketstateWithId");
@@ -20,8 +20,25 @@ class MarketstateUpdate {
20
20
  }
21
21
  }
22
22
  exports.MarketstateUpdate = MarketstateUpdate;
23
+ class MdsConnectionState {
24
+ constructor() {
25
+ this.isConnected = false;
26
+ this.isAuthenticated = false;
27
+ }
28
+ connectionOpened() {
29
+ this.isConnected = true;
30
+ this.isAuthenticated = false;
31
+ }
32
+ connectionClosed() {
33
+ this.isConnected = false;
34
+ this.isAuthenticated = false;
35
+ }
36
+ }
37
+ exports.MdsConnectionState = MdsConnectionState;
23
38
  class MdsConnection {
24
39
  constructor(websocketUrl, authdataCallback, options = {}) {
40
+ this.state = new MdsConnectionState();
41
+ this.waitingForAuthentification = [];
25
42
  this.counter = 0;
26
43
  this.runningRequestsObservable = new Map();
27
44
  this.runningRequestsPromise = new Map();
@@ -33,18 +50,19 @@ class MdsConnection {
33
50
  this.stayAuthenticated();
34
51
  const outer = this;
35
52
  this.websocket.onopen = function () {
53
+ outer.state.connectionOpened();
36
54
  // @ts-ignore
37
55
  for (let [key, value] of outer.replayRequestsOnOpen) {
38
- if (value.subscribeAuthentication)
39
- outer.websocket.send(JSON.stringify(value));
40
- }
41
- // @ts-ignore
42
- for (let [key, value] of outer.replayRequestsOnOpen) {
43
- if (!value.subscribeAuthentication)
56
+ if (!value.subscribeAuthentication) {
57
+ outer.sendWhenAuthenticated(value);
58
+ }
59
+ else {
44
60
  outer.websocket.send(JSON.stringify(value));
61
+ }
45
62
  }
46
63
  };
47
64
  this.websocket.onclose = function () {
65
+ outer.state.connectionClosed();
48
66
  outer.replayRequestsOnOpen = new Map(outer.runningRequestsParameters);
49
67
  console.log("close");
50
68
  };
@@ -53,7 +71,7 @@ class MdsConnection {
53
71
  };
54
72
  }
55
73
  heartbeat() {
56
- return this.observable({ 'heartbeat': {} })
74
+ return this.observable({ 'heartbeat': {} }, true)
57
75
  .pipe((0, rxjs_1.map)((x) => x.dataHeartbeat));
58
76
  }
59
77
  marketstates(marketstateQueries) {
@@ -65,7 +83,7 @@ class MdsConnection {
65
83
  const existingJson = (0, MarketstateWithId_1.MarketstateWithIdToJSON)(existingEntry);
66
84
  const updateJson = (0, MarketstateWithId_1.MarketstateWithIdToJSON)(update);
67
85
  for (let key in updateJson) {
68
- if (!updateJson[key] === undefined) {
86
+ if (!(updateJson[key] == undefined)) {
69
87
  existingJson[key] = updateJson[key];
70
88
  }
71
89
  }
@@ -84,7 +102,7 @@ class MdsConnection {
84
102
  }));
85
103
  }
86
104
  marketstateUpdates(marketstateQueries) {
87
- return this.observable({ 'subscribeMarketstates': { 'marketstateQueries': marketstateQueries } })
105
+ return this.observable({ 'subscribeMarketstates': { 'marketstateQueries': marketstateQueries } }, true)
88
106
  .pipe((0, rxjs_1.map)((x) => (0, MarketstateWithId_1.MarketstateWithIdFromJSON)(x.dataMarketstate)));
89
107
  }
90
108
  marketstatesStates(marketstateQueries) {
@@ -93,12 +111,24 @@ class MdsConnection {
93
111
  priority(sources) {
94
112
  return this.promise({ 'priority': { 'sources': sources } });
95
113
  }
114
+ sendWhenAuthenticated(json) {
115
+ if (this.state.isAuthenticated || json.subscribeAuthentication) {
116
+ this.websocket.send(JSON.stringify(json));
117
+ }
118
+ else {
119
+ this.waitingForAuthentification.push(json);
120
+ }
121
+ }
96
122
  stayAuthenticated() {
97
123
  const outer = this;
98
124
  new rxjs_1.Observable((subscriber) => {
99
- this.authdataCallback().then((mdsAuthdata) => outer.observable({ 'subscribeAuthentication': mdsAuthdata })).then((observable) => observable.subscribe({
125
+ this.authdataCallback().then((mdsAuthdata) => outer.observable({ 'subscribeAuthentication': mdsAuthdata }, true)).then((observable) => observable.subscribe({
100
126
  next(x) {
101
127
  subscriber.next(x);
128
+ for (const json of outer.waitingForAuthentification) {
129
+ outer.websocket.send(JSON.stringify(json));
130
+ }
131
+ outer.waitingForAuthentification = [];
102
132
  },
103
133
  complete() {
104
134
  subscriber.complete();
@@ -114,14 +144,14 @@ class MdsConnection {
114
144
  generateNextRequestId() {
115
145
  return "request-" + this.counter++;
116
146
  }
117
- observable(req) {
147
+ observable(req, sendEventWithoutAuthentification = false) {
118
148
  const requestId = this.generateNextRequestId();
119
149
  req.requestId = requestId;
120
150
  const outer = this;
121
151
  const observable = new rxjs_1.Observable((subscriber) => {
122
152
  outer.runningRequestsObservable.set(requestId, subscriber);
123
153
  outer.runningRequestsParameters.set(requestId, req);
124
- outer.websocket.send(JSON.stringify(req));
154
+ outer.sendWhenAuthenticated(req);
125
155
  // Provide a way of canceling and disposing the resources
126
156
  return function unsubscribe() {
127
157
  if (outer.runningRequestsObservable.has(requestId)) {
@@ -142,12 +172,13 @@ class MdsConnection {
142
172
  const promise = new Promise((resolve, reject) => {
143
173
  outer.runningRequestsPromise.set(requestId, { 'resolve': resolve, 'reject': reject });
144
174
  outer.runningRequestsParameters.set(requestId, req);
145
- outer.websocket.send(JSON.stringify(req));
175
+ outer.sendWhenAuthenticated(req);
146
176
  });
147
177
  return promise;
148
178
  }
149
179
  processWebsocketMessageEvent(e) {
150
180
  const msg = JSON.parse(e.data);
181
+ console.log("we received " + JSON.stringify(msg));
151
182
  const promise = this.runningRequestsPromise.get(msg.requestId);
152
183
  const subscriber = this.runningRequestsObservable.get(msg.requestId);
153
184
  if (promise) {
@@ -10,12 +10,20 @@ export declare class MarketstateUpdate {
10
10
  update: MarketstateWithId;
11
11
  constructor(state: any, update: any);
12
12
  }
13
+ export declare class MdsConnectionState {
14
+ isConnected: boolean;
15
+ isAuthenticated: boolean;
16
+ connectionOpened(): void;
17
+ connectionClosed(): void;
18
+ }
13
19
  export type Options = {
14
20
  wsOptions?: ReconnectingWebSocketOptions;
15
21
  };
16
22
  export declare class MdsConnection {
17
23
  private websocketUrl;
18
24
  private websocket;
25
+ private state;
26
+ private waitingForAuthentification;
19
27
  private counter;
20
28
  private readonly runningRequestsObservable;
21
29
  private readonly runningRequestsPromise;
@@ -28,6 +36,7 @@ export declare class MdsConnection {
28
36
  marketstateUpdates(marketstateQueries: String[]): Observable<MarketstateWithId>;
29
37
  marketstatesStates(marketstateQueries: String[]): Observable<MarketstateWithId>;
30
38
  priority(sources: string[]): Promise<void>;
39
+ private sendWhenAuthenticated;
31
40
  private stayAuthenticated;
32
41
  private generateNextRequestId;
33
42
  private observable;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAM,UAAU,EAAqB,MAAM,MAAM,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,4BAA4B,EAAC,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAC,iBAAiB,EAAqD,MAAM,4BAA4B,CAAA;AAGhH,qBAAa,WAAW;IAEb,KAAK,EAAE,MAAM,CAAC;gBAET,KAAK,EAAE,MAAM;CAI5B;AAID,qBAAa,iBAAiB;IAEnB,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAAG,iBAAiB,CAAA;gBAErB,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG;CAKtC;AAED,MAAM,MAAM,OAAO,GAAG;IAClB,SAAS,CAAC,EAAE,4BAA4B,CAAC;CAC5C,CAAC;AAEF,qBAAa,aAAa;IAEtB,OAAO,CAAC,YAAY,CAAS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,iBAAiB;IAmCzB,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,UAAU;IA4BlB,OAAO,CAAC,OAAO;IAkBf,OAAO,CAAC,4BAA4B;CAoCvC"}
package/lib/esm/index.mjs CHANGED
@@ -15,9 +15,23 @@ export class MarketstateUpdate {
15
15
  this.update = update;
16
16
  }
17
17
  }
18
+ export class MdsConnectionState {
19
+ isConnected = false;
20
+ isAuthenticated = false;
21
+ connectionOpened() {
22
+ this.isConnected = true;
23
+ this.isAuthenticated = false;
24
+ }
25
+ connectionClosed() {
26
+ this.isConnected = false;
27
+ this.isAuthenticated = false;
28
+ }
29
+ }
18
30
  export class MdsConnection {
19
31
  websocketUrl;
20
32
  websocket;
33
+ state = new MdsConnectionState();
34
+ waitingForAuthentification = [];
21
35
  counter = 0;
22
36
  runningRequestsObservable = new Map();
23
37
  runningRequestsPromise = new Map();
@@ -31,18 +45,19 @@ export class MdsConnection {
31
45
  this.stayAuthenticated();
32
46
  const outer = this;
33
47
  this.websocket.onopen = function () {
48
+ outer.state.connectionOpened();
34
49
  // @ts-ignore
35
50
  for (let [key, value] of outer.replayRequestsOnOpen) {
36
- if (value.subscribeAuthentication)
37
- outer.websocket.send(JSON.stringify(value));
38
- }
39
- // @ts-ignore
40
- for (let [key, value] of outer.replayRequestsOnOpen) {
41
- if (!value.subscribeAuthentication)
51
+ if (!value.subscribeAuthentication) {
52
+ outer.sendWhenAuthenticated(value);
53
+ }
54
+ else {
42
55
  outer.websocket.send(JSON.stringify(value));
56
+ }
43
57
  }
44
58
  };
45
59
  this.websocket.onclose = function () {
60
+ outer.state.connectionClosed();
46
61
  outer.replayRequestsOnOpen = new Map(outer.runningRequestsParameters);
47
62
  console.log("close");
48
63
  };
@@ -51,7 +66,7 @@ export class MdsConnection {
51
66
  };
52
67
  }
53
68
  heartbeat() {
54
- return this.observable({ 'heartbeat': {} })
69
+ return this.observable({ 'heartbeat': {} }, true)
55
70
  .pipe(map((x) => x.dataHeartbeat));
56
71
  }
57
72
  marketstates(marketstateQueries) {
@@ -63,7 +78,7 @@ export class MdsConnection {
63
78
  const existingJson = MarketstateWithIdToJSON(existingEntry);
64
79
  const updateJson = MarketstateWithIdToJSON(update);
65
80
  for (let key in updateJson) {
66
- if (!updateJson[key] === undefined) {
81
+ if (!(updateJson[key] == undefined)) {
67
82
  existingJson[key] = updateJson[key];
68
83
  }
69
84
  }
@@ -82,7 +97,7 @@ export class MdsConnection {
82
97
  }));
83
98
  }
84
99
  marketstateUpdates(marketstateQueries) {
85
- return this.observable({ 'subscribeMarketstates': { 'marketstateQueries': marketstateQueries } })
100
+ return this.observable({ 'subscribeMarketstates': { 'marketstateQueries': marketstateQueries } }, true)
86
101
  .pipe(map((x) => MarketstateWithIdFromJSON(x.dataMarketstate)));
87
102
  }
88
103
  marketstatesStates(marketstateQueries) {
@@ -91,12 +106,24 @@ export class MdsConnection {
91
106
  priority(sources) {
92
107
  return this.promise({ 'priority': { 'sources': sources } });
93
108
  }
109
+ sendWhenAuthenticated(json) {
110
+ if (this.state.isAuthenticated || json.subscribeAuthentication) {
111
+ this.websocket.send(JSON.stringify(json));
112
+ }
113
+ else {
114
+ this.waitingForAuthentification.push(json);
115
+ }
116
+ }
94
117
  stayAuthenticated() {
95
118
  const outer = this;
96
119
  new Observable((subscriber) => {
97
- this.authdataCallback().then((mdsAuthdata) => outer.observable({ 'subscribeAuthentication': mdsAuthdata })).then((observable) => observable.subscribe({
120
+ this.authdataCallback().then((mdsAuthdata) => outer.observable({ 'subscribeAuthentication': mdsAuthdata }, true)).then((observable) => observable.subscribe({
98
121
  next(x) {
99
122
  subscriber.next(x);
123
+ for (const json of outer.waitingForAuthentification) {
124
+ outer.websocket.send(JSON.stringify(json));
125
+ }
126
+ outer.waitingForAuthentification = [];
100
127
  },
101
128
  complete() {
102
129
  subscriber.complete();
@@ -112,14 +139,14 @@ export class MdsConnection {
112
139
  generateNextRequestId() {
113
140
  return "request-" + this.counter++;
114
141
  }
115
- observable(req) {
142
+ observable(req, sendEventWithoutAuthentification = false) {
116
143
  const requestId = this.generateNextRequestId();
117
144
  req.requestId = requestId;
118
145
  const outer = this;
119
146
  const observable = new Observable((subscriber) => {
120
147
  outer.runningRequestsObservable.set(requestId, subscriber);
121
148
  outer.runningRequestsParameters.set(requestId, req);
122
- outer.websocket.send(JSON.stringify(req));
149
+ outer.sendWhenAuthenticated(req);
123
150
  // Provide a way of canceling and disposing the resources
124
151
  return function unsubscribe() {
125
152
  if (outer.runningRequestsObservable.has(requestId)) {
@@ -140,12 +167,13 @@ export class MdsConnection {
140
167
  const promise = new Promise((resolve, reject) => {
141
168
  outer.runningRequestsPromise.set(requestId, { 'resolve': resolve, 'reject': reject });
142
169
  outer.runningRequestsParameters.set(requestId, req);
143
- outer.websocket.send(JSON.stringify(req));
170
+ outer.sendWhenAuthenticated(req);
144
171
  });
145
172
  return promise;
146
173
  }
147
174
  processWebsocketMessageEvent(e) {
148
175
  const msg = JSON.parse(e.data);
176
+ console.log("we received " + JSON.stringify(msg));
149
177
  const promise = this.runningRequestsPromise.get(msg.requestId);
150
178
  const subscriber = this.runningRequestsObservable.get(msg.requestId);
151
179
  if (promise) {
@@ -10,12 +10,20 @@ export declare class MarketstateUpdate {
10
10
  update: MarketstateWithId;
11
11
  constructor(state: any, update: any);
12
12
  }
13
+ export declare class MdsConnectionState {
14
+ isConnected: boolean;
15
+ isAuthenticated: boolean;
16
+ connectionOpened(): void;
17
+ connectionClosed(): void;
18
+ }
13
19
  export type Options = {
14
20
  wsOptions?: ReconnectingWebSocketOptions;
15
21
  };
16
22
  export declare class MdsConnection {
17
23
  private websocketUrl;
18
24
  private websocket;
25
+ private state;
26
+ private waitingForAuthentification;
19
27
  private counter;
20
28
  private readonly runningRequestsObservable;
21
29
  private readonly runningRequestsPromise;
@@ -28,6 +36,7 @@ export declare class MdsConnection {
28
36
  marketstateUpdates(marketstateQueries: String[]): Observable<MarketstateWithId>;
29
37
  marketstatesStates(marketstateQueries: String[]): Observable<MarketstateWithId>;
30
38
  priority(sources: string[]): Promise<void>;
39
+ private sendWhenAuthenticated;
31
40
  private stayAuthenticated;
32
41
  private generateNextRequestId;
33
42
  private observable;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAM,UAAU,EAAqB,MAAM,MAAM,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,4BAA4B,EAAC,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAC,iBAAiB,EAAqD,MAAM,4BAA4B,CAAA;AAGhH,qBAAa,WAAW;IAEb,KAAK,EAAE,MAAM,CAAC;gBAET,KAAK,EAAE,MAAM;CAI5B;AAID,qBAAa,iBAAiB;IAEnB,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAAG,iBAAiB,CAAA;gBAErB,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG;CAKtC;AAED,MAAM,MAAM,OAAO,GAAG;IAClB,SAAS,CAAC,EAAE,4BAA4B,CAAC;CAC5C,CAAC;AAEF,qBAAa,aAAa;IAEtB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,SAAS,CAAwB;IAEzC,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAA2C;IACrF,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAA+B;IACtE,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAA+B;IACzE,OAAO,CAAC,oBAAoB,CAA+B;IAE3D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA6B;gBAElD,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,EAAE,OAAO,GAAE,OAAY;IAiC9F,SAAS,IAAI,UAAU,CAAC,MAAM,CAAC;IAK/B,YAAY,CAAC,kBAAkB,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC;IA4BzE,kBAAk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