diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt index 8e9c16cb..74cf8fa6 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt @@ -928,6 +928,13 @@ class LiveRoomService( expireTimestamp.toInt() ) + val v2vWorkerRtmToken = rtmTokenBuilder.buildToken( + agoraAppId, + agoraAppCertificate, + "v2v-agent-${member.id!!}", + expireTimestamp.toInt() + ) + val isFollowing = explorerQueryRepository .getNotificationUserIds(room.member!!.id!!) .contains(member.id) @@ -982,6 +989,7 @@ class LiveRoomService( channelName = room.channelName!!, rtcToken = rtcToken, rtmToken = rtmToken, + v2vWorkerRtmToken = v2vWorkerRtmToken, creatorId = room.member!!.id!!, creatorNickname = room.member!!.nickname, creatorProfileUrl = if (room.member!!.profileImage != null) { diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt index f8f8b6d1..b455b6ec 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/info/GetRoomInfoResponse.kt @@ -8,6 +8,7 @@ data class GetRoomInfoResponse( val channelName: String, val rtcToken: String, val rtmToken: String, + val v2vWorkerRtmToken: String, val creatorId: Long, val creatorNickname: String, val creatorProfileUrl: String,