@drift-labs/sdk-browser 2.115.0-beta.14 → 2.115.0-beta.15
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/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.115.0-beta.
|
|
1
|
+
2.115.0-beta.15
|
|
@@ -89,6 +89,22 @@ class SwiftOrderSubscriber {
|
|
|
89
89
|
this.reconnect();
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
|
+
ws.on('unexpected-response', async (request, response) => {
|
|
93
|
+
console.error('Unexpected response, reconnecting in 5s:', response.statusCode);
|
|
94
|
+
setTimeout(() => {
|
|
95
|
+
if (this.heartbeatTimeout)
|
|
96
|
+
clearTimeout(this.heartbeatTimeout);
|
|
97
|
+
this.reconnect();
|
|
98
|
+
}, 5000);
|
|
99
|
+
});
|
|
100
|
+
ws.on('error', async (request, response) => {
|
|
101
|
+
console.error('WS closed from error, reconnecting in 1s:', response.statusCode);
|
|
102
|
+
setTimeout(() => {
|
|
103
|
+
if (this.heartbeatTimeout)
|
|
104
|
+
clearTimeout(this.heartbeatTimeout);
|
|
105
|
+
this.reconnect();
|
|
106
|
+
}, 1000);
|
|
107
|
+
});
|
|
92
108
|
}
|
|
93
109
|
async getPlaceAndMakeSignedMsgOrderIxs(orderMessageRaw, signedMsgOrderParamsMessage, makerOrderParams) {
|
|
94
110
|
if (!this.userAccountGetter) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swiftOrderSubscriber.d.ts","sourceRoot":"","sources":["../../../src/swift/swiftOrderSubscriber.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,WAAW,EACX,QAAQ,EAKR,mBAAmB,EAEnB,2BAA2B,EAC3B,WAAW,EACX,MAAM,IAAI,CAAC;AACZ,OAAO,EAAE,OAAO,EAAa,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAM7E,MAAM,WAAW,aAAa;IAC7B,kBAAkB,CAAC,S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6CpC,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,SAAS;CAWjB"}
|
|
@@ -89,6 +89,22 @@ class SwiftOrderSubscriber {
|
|
|
89
89
|
this.reconnect();
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
|
+
ws.on('unexpected-response', async (request, response) => {
|
|
93
|
+
console.error('Unexpected response, reconnecting in 5s:', response.statusCode);
|
|
94
|
+
setTimeout(() => {
|
|
95
|
+
if (this.heartbeatTimeout)
|
|
96
|
+
clearTimeout(this.heartbeatTimeout);
|
|
97
|
+
this.reconnect();
|
|
98
|
+
}, 5000);
|
|
99
|
+
});
|
|
100
|
+
ws.on('error', async (request, response) => {
|
|
101
|
+
console.error('WS closed from error, reconnecting in 1s:', response.statusCode);
|
|
102
|
+
setTimeout(() => {
|
|
103
|
+
if (this.heartbeatTimeout)
|
|
104
|
+
clearTimeout(this.heartbeatTimeout);
|
|
105
|
+
this.reconnect();
|
|
106
|
+
}, 1000);
|
|
107
|
+
});
|
|
92
108
|
}
|
|
93
109
|
async getPlaceAndMakeSignedMsgOrderIxs(orderMessageRaw, signedMsgOrderParamsMessage, makerOrderParams) {
|
|
94
110
|
if (!this.userAccountGetter) {
|
package/package.json
CHANGED
|
@@ -161,6 +161,28 @@ export class SwiftOrderSubscriber {
|
|
|
161
161
|
this.reconnect();
|
|
162
162
|
});
|
|
163
163
|
});
|
|
164
|
+
|
|
165
|
+
ws.on('unexpected-response', async (request, response) => {
|
|
166
|
+
console.error(
|
|
167
|
+
'Unexpected response, reconnecting in 5s:',
|
|
168
|
+
response.statusCode
|
|
169
|
+
);
|
|
170
|
+
setTimeout(() => {
|
|
171
|
+
if (this.heartbeatTimeout) clearTimeout(this.heartbeatTimeout);
|
|
172
|
+
this.reconnect();
|
|
173
|
+
}, 5000);
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
ws.on('error', async (request, response) => {
|
|
177
|
+
console.error(
|
|
178
|
+
'WS closed from error, reconnecting in 1s:',
|
|
179
|
+
response.statusCode
|
|
180
|
+
);
|
|
181
|
+
setTimeout(() => {
|
|
182
|
+
if (this.heartbeatTimeout) clearTimeout(this.heartbeatTimeout);
|
|
183
|
+
this.reconnect();
|
|
184
|
+
}, 1000);
|
|
185
|
+
});
|
|
164
186
|
}
|
|
165
187
|
|
|
166
188
|
async getPlaceAndMakeSignedMsgOrderIxs(
|