Skip to content

Commit

Permalink
fix: group poc
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Aug 20, 2024
1 parent 61377cb commit da3e1bf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class ReactiveConcurrentUserWebSocketHandler(
private val concurrentUserByMap: ConcurrentMap<Long, ConcurrentMap<Long, WebSocketSession>> = ConcurrentHashMap()

override fun handle(session: WebSocketSession): Mono<Void> {
println(">> 접속함")

val groupId = session.handshakeInfo.uri.path
.split("/")
.lastOrNull { it.matches(Regex("\\d+")) }
Expand All @@ -57,6 +59,8 @@ class ReactiveConcurrentUserWebSocketHandler(

val user = authFacade.resolveAuthUser(authUserToken)

println("concurrent user : ${user.uid}")

val groupUsers = groupUserService.findAllByUidSync(user.uid)

groupUsers.forEach { groupUser ->
Expand All @@ -67,6 +71,7 @@ class ReactiveConcurrentUserWebSocketHandler(
concurrentUserByMap[groupUser.groupId] = cuser
}


logger.info { "concurrent user ${user.uid}" }

concurrentUserByMap.forEach { (groupId, uidBySession) ->
Expand Down

0 comments on commit da3e1bf

Please sign in to comment.