small bug fix with async socket

This commit is contained in:
Zoe
2023-04-24 20:42:33 -05:00
parent 54cd5b8654
commit a7c91b382a
3 changed files with 10 additions and 12 deletions

View File

@@ -12,8 +12,6 @@ export default defineEventHandler(({ node }) => {
global.io.on('connection', async (socket: Socket) => {
const token = socket.handshake.auth.token;
console.log(token);
if (!token) {
socket.disconnect();
return;