added replicas for docker swarm

This commit is contained in:
PxlLoewe
2025-05-27 21:40:18 -07:00
parent 2209372303
commit 23dd9c2958
4 changed files with 13 additions and 14 deletions

View File

@@ -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 {