Skip to content

WebSocket 실시간 댓글

Hwanhee "Asher" Kim edited this page Nov 26, 2024 · 1 revision
sequenceDiagram
    participant User1 as 유저1
    participant Server as 서버
    participant User2 as 유저2

    note over User1: Session ID로 댓글 창에 접속<br/>(ws://127.0.0.1:8000/chat/<track_id>)
    User1<<->>Server: 현재 접속중인 유저 목록 및 댓글 목록 요청, 응답
    note over User2: Session ID로 댓글 창에 접속<br/>(ws://127.0.0.1:8000/chat/<track_id>)
    User2<<->>Server: 현재 접속중인 유저 목록 및 댓글 목록 요청, 응답
    User1->>Server: 댓글 또는 대댓글 추가
    note over Server: Chat ID 발급
    Server->>User1: 댓글 Broadcast
    Server->>User2: 댓글 Broadcast
Loading
Clone this wiki locally