강동현

테스트 방 제거

...@@ -16,16 +16,12 @@ export class Server { ...@@ -16,16 +16,12 @@ export class Server {
16 const server = createServer(app); 16 const server = createServer(app);
17 this.io = new socketIo.Server(server, { 17 this.io = new socketIo.Server(server, {
18 cors: { 18 cors: {
19 - origin: '*' 19 + origin: "*",
20 - } 20 + },
21 }); 21 });
22 22
23 const roomManager = new RoomManager(); 23 const roomManager = new RoomManager();
24 24
25 - roomManager.create("테스트 방 #1", 8);
26 - roomManager.create("테스트 방 #2", 4);
27 - roomManager.create("테스트 방 #3", 2);
28 -
29 this.io.on("connection", (socket) => { 25 this.io.on("connection", (socket) => {
30 new Connection(new SocketIoWrapper(socket), roomManager); 26 new Connection(new SocketIoWrapper(socket), roomManager);
31 }); 27 });
......