serg1557733 1 year ago
parent
commit
970dfd378b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      backend/app.js

+ 2 - 1
backend/app.js

@@ -243,6 +243,7 @@ io.on("connection", async (socket) => {
 
     //need to use this ID to socket privat messges
 
+    
     const usersInSocket = [];
         for (let [id, socket] of io.of("/").sockets) {
             
@@ -285,7 +286,7 @@ io.on("connection", async (socket) => {
 
 socket.emit('my chats', privateChats)
 
-    socket.emit('connected', dbUser); //socket.user
+    //socket.emit('connected', dbUser); //socket.user
   
     if(socket.user.isAdmin){
          getAllDbUsers(socket);