floating-live 0.8.2 → 0.8.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "floating-live",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "type": "commonjs",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -24,10 +24,10 @@ module.exports = (ctx) => {
24
24
  ctx.on("room_close", (key) => {
25
25
  console.log(`[${key}]房间已关闭`);
26
26
  });
27
- ctx.on("room_open", (key) => {
27
+ ctx.on("room_add", (key) => {
28
28
  console.log(`[room]已添加房间: ${key}`);
29
29
  });
30
- ctx.on("room_close", (key) => {
30
+ ctx.on("room_remove", (key) => {
31
31
  console.log(`[room]已移除房间: ${key}`);
32
32
  });
33
33
  ctx.on("room_exist", (key) => {
@@ -52,7 +52,7 @@ class Controller {
52
52
  }
53
53
  /** 关闭房间 */
54
54
  closeRoom(roomKey) {
55
- this.room.open(roomKey);
55
+ this.room.close(roomKey);
56
56
  }
57
57
  /** 打开所有房间 */
58
58
  openAllRooms() {