From 1258889275eb6c5689cf507d68f61a6622128f13 Mon Sep 17 00:00:00 2001 From: Eunjin3395 Date: Tue, 8 Oct 2024 13:29:51 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[Fix]=20matching-found-sender=20?= =?UTF-8?q?emit=20=EC=8B=9C=20=EB=94=9C=EB=A0=88=EC=9D=B4=20=EC=A3=BC?= =?UTF-8?q?=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- socket/handlers/matching/matchingSocketListeners.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/socket/handlers/matching/matchingSocketListeners.js b/socket/handlers/matching/matchingSocketListeners.js index 78c95f8..378ed70 100644 --- a/socket/handlers/matching/matchingSocketListeners.js +++ b/socket/handlers/matching/matchingSocketListeners.js @@ -120,7 +120,9 @@ async function setupMatchSocketListeners(socket, io) { if (result) { logger.info("Received matching FOUND API response", `receiverMemberId:${socket.memberId}, senderMemberId:${senderSocket.memberId}`); // 21) "matching-found-sender" emit - emitMatchingFoundSender(senderSocket, result.myMatchingInfo); + setTimeout(() => { + emitMatchingFoundSender(senderSocket, result.myMatchingInfo); + }, 2000); } } catch (error) { logger.error("Error during matching FOUND API request", `socketId:${socket.id}, error:${error.message}`);