Skip to content

Commit

Permalink
Merge pull request #102 from Gamegoo-repo/fix/101
Browse files Browse the repository at this point in the history
[Fix/10] matching-found-sender emit 시 딜레이 주기
  • Loading branch information
Eunjin3395 authored Oct 8, 2024
2 parents 160b34c + 1258889 commit c528b24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion socket/handlers/matching/matchingSocketListeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit c528b24

Please sign in to comment.