[Develop] 채팅 서비스 소켓 발행/구독 이벤트에 대한 논의 #91
Junad-Park
started this conversation in
토론
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
현재 채팅 서비스의 소켓 이벤트의 발행/구독 관계는 다음과 같습니다.
각 발행의 역할
app/~/chat-channels/status
: 채팅 채널 목록 상태 업데이트 발행app/~/read
: 메시지 읽음 처리 발행-> 해당 이벤트는
채팅 채널에 접속하였을 때
혹은4.특정 채팅 채널 메시지 구독
이 수행되었을 때 2가지 상황에서 발행된다.app/~/messages
: 특정 채팅 채널 메시지 발행각 구독의 역할
4.
topic/~/messages
: 특정 채팅 채널 메시지 구독topic/~/receive-message
: 팀스페이스 전역 메시지 수신 구독topic/~/chat-channels/status
: 채팅 채널 목록 상태 업데이트 구독현재 문제점
왜 이렇게 구성되어 있나?
더 심플하고 좋은 방법이 있는지에 대해 논의해 보고자 합니다
Beta Was this translation helpful? Give feedback.
All reactions