@grvt/client 1.5.3 → 1.5.4
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/package.json +1 -1
- package/ws/ws.js +4 -2
package/package.json
CHANGED
package/ws/ws.js
CHANGED
|
@@ -177,7 +177,7 @@ class WS {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
else {
|
|
180
|
-
console.
|
|
180
|
+
console.warn(error);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
return;
|
|
@@ -718,7 +718,9 @@ class WS {
|
|
|
718
718
|
throw new Error('Unknown stream or feed');
|
|
719
719
|
}
|
|
720
720
|
const pair = this._getPair({ stream, feed });
|
|
721
|
-
void this._subscribe(pair, subscribePayload).catch(
|
|
721
|
+
void this._subscribe(pair, subscribePayload).catch((error) => {
|
|
722
|
+
onError === null || onError === void 0 ? void 0 : onError(error);
|
|
723
|
+
});
|
|
722
724
|
return this._addConsumer(pair, onMessage);
|
|
723
725
|
}
|
|
724
726
|
subscribes(...subscriptions) {
|