diff --git a/server.js b/server.js index 50df98e..021e441 100644 --- a/server.js +++ b/server.js @@ -311,12 +311,12 @@ async function runSocketServer() { return; } - if (!socket.room) { + if (!socket.studyroomId) { callback({ error: 'Not in a room' }); return; } - const room = roomManager.getRoom(socket.room); + const room = roomManager.getRoom(socket.studyroomId); const { transport, params } = await createWebRtcTransport(room.router); socket.producerTransport = transport; callback(params);