|
@@ -342,8 +342,9 @@ export class RoomAssistant {
|
|
|
});
|
|
|
} else {
|
|
|
this.room.logger.warn("超出房间上限");
|
|
|
- this.socket.emit(EVENT.roomMaximum);
|
|
|
- this.socket.broadcast.emit(EVENT.roomMaximum);
|
|
|
+ this.socket.emit(EVENT.roomMaximum, user);
|
|
|
+ this.socket.broadcast.to(this.room.syncId).emit(EVENT.roomMaximum, user);
|
|
|
+ // this.socket.broadcast.emit(EVENT.roomMaximum, user);
|
|
|
}
|
|
|
// await this.notifyUsersChange(roomId, user, true);
|
|
|
} catch (error) {
|