added replicas for docker swarm
This commit is contained in:
@@ -40,7 +40,6 @@ export const handleSendMessage =
|
||||
const recvSockets = await io.in(`user:${userId}`).fetchSockets();
|
||||
await io.in(`user:${senderId}`).fetchSockets();
|
||||
|
||||
console.log(`Sockets in room user:${userId}:`);
|
||||
if (!recvSockets.length) {
|
||||
cb({ error: "User is not connected" });
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user