Beta to stable #5

Merged
saqut merged 37 commits from beta into stable 2022-12-25 23:24:56 +03:00
4 changed files with 5 additions and 3 deletions
Showing only changes of commit d7900f827f - Show all commits

View File

@ -73,6 +73,7 @@ export default class Room extends EventTarget
...result.room
};
this.roomId = result.room.id;
this.mwse.rooms.set(this.roomId as string, this);
}
}
async join(){
@ -90,6 +91,7 @@ export default class Room extends EventTarget
...result.room
};
this.roomId = result.room.id;
this.mwse.rooms.set(this.roomId as string, this);
}
}
async send(pack: any, wom:boolean = false){

View File

@ -71,7 +71,7 @@ export default class MWSE extends EventTarget {
}
let room = new Room(this);
room.setRoomOptions(options);
this.rooms.set(room.roomId as string, room);
// this.rooms.set(room.roomId as string, room);
this.emit('room');
return room;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long