fishpi 0.0.58 → 0.0.59
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/chatroom.js +3 -3
- package/package.json +1 -1
package/lib/chatroom.js
CHANGED
|
@@ -464,7 +464,7 @@ var ChatRoom = /** @class */ (function () {
|
|
|
464
464
|
case 0:
|
|
465
465
|
_a.trys.push([0, 2, , 3]);
|
|
466
466
|
return [4 /*yield*/, (0, utils_1.request)({
|
|
467
|
-
url: "chat-room/node/get",
|
|
467
|
+
url: "chat-room/node/get?apiKey=".concat(this._apiKey),
|
|
468
468
|
method: 'get',
|
|
469
469
|
})];
|
|
470
470
|
case 1:
|
|
@@ -493,7 +493,7 @@ var ChatRoom = /** @class */ (function () {
|
|
|
493
493
|
switch (_g.label) {
|
|
494
494
|
case 0:
|
|
495
495
|
if (!!url) return [3 /*break*/, 2];
|
|
496
|
-
return [4 /*yield*/, this.getNode()];
|
|
496
|
+
return [4 /*yield*/, this.getNode().catch(function () { return "wss://".concat(utils_1.domain, "/chat-room-channel?apiKey=").concat(_this._apiKey); })];
|
|
497
497
|
case 1:
|
|
498
498
|
url = _g.sent();
|
|
499
499
|
_g.label = 2;
|
|
@@ -508,7 +508,7 @@ var ChatRoom = /** @class */ (function () {
|
|
|
508
508
|
return [2 /*return*/, resolve(this._rws.reconnect())];
|
|
509
509
|
_a = this;
|
|
510
510
|
_b = reconnecting_websocket_1.default.bind;
|
|
511
|
-
_c = [void 0, "".concat(url
|
|
511
|
+
_c = [void 0, "".concat(url), []];
|
|
512
512
|
_e = {};
|
|
513
513
|
if (!utils_1.isBrowse) return [3 /*break*/, 1];
|
|
514
514
|
_d = window.WebSocket;
|