@realsee/live 0.5.0-alpha.2 → 0.5.0-alpha.3
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/realsee-live.cjs.development.js +6 -1
- package/dist/realsee-live.cjs.development.js.map +1 -1
- package/dist/realsee-live.cjs.production.js +1 -1
- package/dist/realsee-live.cjs.production.js.map +1 -1
- package/dist/realsee-live.esm.js +6 -1
- package/dist/realsee-live.esm.js.map +1 -1
- package/dist/realsee-live.umd.development.js +12 -2
- package/dist/realsee-live.umd.development.js.map +1 -1
- package/dist/realsee-live.umd.production.js +1 -1
- package/dist/realsee-live.umd.production.js.map +1 -1
- package/package.json +2 -2
package/dist/realsee-live.esm.js
CHANGED
|
@@ -1228,7 +1228,12 @@ class RobustWebSocket extends Subscribe {
|
|
|
1228
1228
|
* @param data
|
|
1229
1229
|
* @returns
|
|
1230
1230
|
*/
|
|
1231
|
-
this.send = (data) => {
|
|
1231
|
+
this.send = (data) => {
|
|
1232
|
+
var _a, _b, _c;
|
|
1233
|
+
if (((_a = this._realWebSocket) === null || _a === void 0 ? void 0 : _a.readyState) === ((_b = this._realWebSocket) === null || _b === void 0 ? void 0 : _b.OPEN)) {
|
|
1234
|
+
(_c = this._realWebSocket) === null || _c === void 0 ? void 0 : _c.send(data);
|
|
1235
|
+
}
|
|
1236
|
+
};
|
|
1232
1237
|
/**
|
|
1233
1238
|
* 关闭连接
|
|
1234
1239
|
* @param code 代码
|