merasabkuch commited on
Commit
0f7cf98
1 Parent(s): 2a260f0

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -348,7 +348,7 @@ wss.on('connection', (ws) => {
348
 
349
  switch (parsedMessage.type) {
350
  case 'joinRoom':
351
- if (!roomId || !(userId || apiKey) {
352
  ws.send(JSON.stringify({ error: 'Invalid room or user ID or apikey' }));
353
  return;
354
  }
 
348
 
349
  switch (parsedMessage.type) {
350
  case 'joinRoom':
351
+ if (!roomId || !(userId || apiKey)) {
352
  ws.send(JSON.stringify({ error: 'Invalid room or user ID or apikey' }));
353
  return;
354
  }