HOTFIX: fixed a server when trying to connect to the adminRoomSocket
This commit is contained in:
parent
3c0f61d3b3
commit
0a2e967eca
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ export class IoSocketController {
|
||||||
if (token !== ADMIN_API_TOKEN) {
|
if (token !== ADMIN_API_TOKEN) {
|
||||||
console.log('Admin access refused for token: '+token)
|
console.log('Admin access refused for token: '+token)
|
||||||
res.writeStatus("401 Unauthorized").end('Incorrect token');
|
res.writeStatus("401 Unauthorized").end('Incorrect token');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
const roomId = query.roomId as string;
|
const roomId = query.roomId as string;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue