|
@@ -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);
|