Spaces:
Running
Running
merasabkuch
commited on
Commit
•
0f7cf98
1
Parent(s):
2a260f0
Update index.js
Browse files
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 |
}
|