bocker.js 499 B

1234567891011121314
  1. // 房间拦截行为助手
  2. import { EVENT, CODEMEG } from "../../enum/index.js";
  3. import { updateUser, removeRoomAllUsers, getAllRoomUsers, updateRoomUser } from "../../service/userService.js";
  4. import { setRoomConfig, getRoomConfig } from "../../service/roomConfigService.js";
  5. import { subClient } from "../../connection/redis.js";
  6. export class RoomBlocker {
  7. constructor(socket, redis, room) {
  8. this.socket = socket;
  9. this.redis = redis;
  10. this.roomId = null;
  11. this.room = room;
  12. }
  13. }