HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧚
[1기]최종 프로젝트 데브코스
/
[팀12] 기부니🧡
[팀12] 기부니🧡
/
🧡
API 설계
/
📢
요청/응답 값
📢

요청/응답 값

HTTP verbs
NONE
Path
/stomp-handshake
기능
STOMP 핸드쉐이크
담당자
권규
도메인
웹소켓
완료
요청 시 아래처럼 'Authorization' 이름의 헤더에 발급받은 JWT를 포함하여 전달.
const socket = new SockJS('/stomp_handshake'); const stompClient = Stomp.over(socket); stompClient.connect( {'Authorization': 'JWT_TOKEN_HERE'}, function (frame) { // callback after successful connection. stomClinet.subcri('user/topic/notification,(data)=>{ console.log(data); }) });