diff --git a/src/components/views/Gameroom.tsx b/src/components/views/Gameroom.tsx index 0224147..97ff28b 100644 --- a/src/components/views/Gameroom.tsx +++ b/src/components/views/Gameroom.tsx @@ -396,7 +396,8 @@ const Gameroom = () => { const receiptId = uuidv4(); stompClientRef.current?.send( `/app/message/users/enterroom/${currentRoomID}`, - { receiptId: receiptId }, + { receiptId: receiptId, + token: sessionStorage.getItem("token") }, JSON.stringify(payload) ); requestLists.current.push({ type: "enter",receiptId: receiptId }); @@ -429,7 +430,8 @@ const Gameroom = () => { const receiptId = uuidv4(); stompClientRef.current?.send( `/app/message/users/ready/${currentRoomID}`, - { receiptId: receiptId }, + { receiptId: receiptId, + token: sessionStorage.getItem("token") }, JSON.stringify(payload) ); requestLists.current.push({ type: "ready",receiptId: receiptId }); @@ -461,7 +463,8 @@ const Gameroom = () => { const receiptId = uuidv4(); stompClientRef.current?.send( `/app/message/users/unready/${currentRoomID}`, - { receiptId: receiptId }, + { receiptId: receiptId, + token: sessionStorage.getItem("token") }, JSON.stringify(payload) ); requestLists.current.push({ type: "unready",receiptId: receiptId }); @@ -493,7 +496,8 @@ const Gameroom = () => { const receiptId = uuidv4(); stompClientRef.current?.send( `/app/message/games/start/${currentRoomID}`, - { receiptId: receiptId }, + { receiptId: receiptId, + token: sessionStorage.getItem("token") }, JSON.stringify(payload) ); requestLists.current.push({ type: "start",receiptId: receiptId }); @@ -527,7 +531,8 @@ const Gameroom = () => { const receiptId = uuidv4(); stompClientRef.current?.send( `/app/message/users/exitroom/${currentRoomID}`, - { receiptId: receiptId }, + { receiptId: receiptId, + token: sessionStorage.getItem("token") }, JSON.stringify(payload) ); // requestLists.current.push({ type: "leave",receiptId: receiptId }); @@ -562,7 +567,8 @@ const Gameroom = () => { const receiptId = uuidv4(); stompClientRef.current?.send( `/app/message/games/validate/${currentRoomID}`, - { receiptId: receiptId }, + { receiptId: receiptId, + token: sessionStorage.getItem("token") }, JSON.stringify(payload) ); requestLists.current.push({ type: "submit",receiptId: receiptId }); @@ -603,7 +609,8 @@ const Gameroom = () => { const receiptId = uuidv4(); stompClientRef.current.send( `/app/message/games/audio/upload/${currentRoomID}`, - { receiptId: receiptId }, + { receiptId: receiptId, + token: sessionStorage.getItem("token") }, JSON.stringify(payload) ); requestLists.current.push({ type: "upload",receiptId: receiptId });