diff --git a/src/main/java/jungle/HandTris/application/impl/MemberConnectionServiceImpl.java b/src/main/java/jungle/HandTris/application/impl/MemberConnectionServiceImpl.java index ef5b369..140bd8f 100644 --- a/src/main/java/jungle/HandTris/application/impl/MemberConnectionServiceImpl.java +++ b/src/main/java/jungle/HandTris/application/impl/MemberConnectionServiceImpl.java @@ -1,10 +1,16 @@ package jungle.HandTris.application.impl; import jungle.HandTris.application.service.MemberConnectionService; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; +@Service +@RequiredArgsConstructor +@Transactional public class MemberConnectionServiceImpl implements MemberConnectionService { private Set connectedMembers = ConcurrentHashMap.newKeySet(); @@ -15,7 +21,8 @@ public void addUser(String sessionId) { } @Override - public void removeUser(String sessionId) { + public void + removeUser(String sessionId) { connectedMembers.remove(sessionId); }