floating-live 0.15.0-beta.7 → 0.15.0-beta.8
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/core/LiveRoom.d.ts +1 -1
- package/dist/core/LiveRoom.js +2 -4
- package/package.json +1 -1
package/dist/core/LiveRoom.d.ts
CHANGED
package/dist/core/LiveRoom.js
CHANGED
|
@@ -10,13 +10,11 @@ class LiveRoom extends events_1.EventEmitter {
|
|
|
10
10
|
this.status = enums_1.RoomStatus.off;
|
|
11
11
|
/** 时间戳 */
|
|
12
12
|
this.timestamp = 0;
|
|
13
|
+
/** 房间是否打开 */
|
|
14
|
+
this.opened = false;
|
|
13
15
|
/** 是否连接上房间 */
|
|
14
16
|
this.connection = enums_1.ConnectStatus.off;
|
|
15
17
|
}
|
|
16
|
-
/** 房间是否打开 */
|
|
17
|
-
get opened() {
|
|
18
|
-
return !!this.connection;
|
|
19
|
-
}
|
|
20
18
|
/** 销毁 */
|
|
21
19
|
destroy() {
|
|
22
20
|
this.close();
|