Skip to content

Commit

Permalink
Merge pull request #61 from Arcoss03/main
Browse files Browse the repository at this point in the history
fix: socket io connexion
  • Loading branch information
ArthurFrin authored Jun 20, 2024
2 parents dfb1935 + f3527b7 commit cb90b45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion front/src/components/JoinGP.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import socketHelper from '@/helpers/socketHelper';
const roomId = ref<string>('');
const showToast = useUtilsStore().showToast;
socketHelper.disconnect()
socketHelper.disconnect();
interface JoinRoomResponse {
success: boolean;
data: {
Expand Down
2 changes: 2 additions & 0 deletions front/src/helpers/socketHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ const invalidToken = () => {
};
const disconnect=()=>{
socket.disconnect();
socket.connect();
}



export default { joinRoom, message, messageResponse,quitRoom,invalidToken,joinLobby,handleJoinedRoom,handleChef,disconnect}


Expand Down

0 comments on commit cb90b45

Please sign in to comment.