@pathscale/wss-adapter 1.0.12 → 1.0.13
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/dist/wssAdapter.js +1 -1
- package/package.json +1 -1
- package/wssAdapter.ts +1 -1
package/dist/wssAdapter.js
CHANGED
|
@@ -121,7 +121,7 @@ var receiveHandler = function (event) {
|
|
|
121
121
|
var response = JSON.parse(event.data);
|
|
122
122
|
if (response.method || response.method === 0) {
|
|
123
123
|
console.log("app::".concat(((_a = store.pendingPromises[response.seq]) === null || _a === void 0 ? void 0 : _a.methodName) || response.method, " got:"), response);
|
|
124
|
-
var error = response.method === 0;
|
|
124
|
+
var error = response.method === 0 || response.params.error;
|
|
125
125
|
var done = response.method.toString().endsWith('1');
|
|
126
126
|
var resolve = function (payload, code) {
|
|
127
127
|
var executor = store.pendingPromises[response.seq];
|
package/package.json
CHANGED
package/wssAdapter.ts
CHANGED
|
@@ -160,7 +160,7 @@ const receiveHandler = (event: { data: string }) => {
|
|
|
160
160
|
response
|
|
161
161
|
)
|
|
162
162
|
|
|
163
|
-
const error = response.method === 0
|
|
163
|
+
const error = response.method === 0 || response.params.error
|
|
164
164
|
const done = response.method.toString().endsWith('1')
|
|
165
165
|
|
|
166
166
|
const resolve = (payload: unknown, code: number) => {
|