필수

webSockJS 가 있어야 함

var sock = new SockJS("웹소켓 경로");
var ws = Stomp.over(sock);

API

기본 경로

<aside> 💡 /api/chat/**

</aside>

웹소켓 연결

채팅방 정보 확인

[RequestParam]
"roomId" : "방 식별 번호"

ex) <http://localhost:8080/api/chat/room/info?roomId=**087ef3d8-0d0b-409f-80b4-c68270e38e71**>
{
    "chatRoomNumber": "채팅방 식별번호",
    "chatRoomName": "채팅방 이름",
    "participants": [
        참가자들
    ],
    "lastChatmessageDto": 가장 최근 메시지 
}

ex)
{
    "chatRoomNumber": "9c25d10e-7e96-4309-b4fd-18ef9cdc029b",
    "chatRoomName": "채팅방",
    "participants": [
        "testId2",
        "testId3",
        "testId"
    ],
    "lastChatmessageDto": null
}