[BE] FEAT: state server, produce "1 connect" to kafka #146
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
해당 사항 (중복 선택)
설명
🔗 관련 이슈
해결한 이슈: closed #134
📝 작업 내용
1. kafka topic 이름 바꾸기
friend-online-notify -> friend_online_notify
2. chat-server 쪽 index.html
random userId -> 1
테스트를 위해서 userId를 1로 바꿨습니다!
3. 유저 접속 정보 notify
1이 connect/disconnect 되었을 때 1의 online/offline 상태에 대한 정보를 kafka로 전송하는 작업
ex)
{
"userId": "1",
"status": "online",
"friends": ["2", "3"],
"timestamp": 1707558301000
}
📸 스크린샷(optional)