Skip to content

Commit

Permalink
Update socket.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulbharti5 authored Oct 10, 2024
1 parent e65f099 commit 301df4f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/socket.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

const socket = io("https://heystranger-backend.azurewebsites.net");
const socket = io('https://heystranger-backend.azurewebsites.net', {
withCredentials: true, // Make sure credentials (cookies) are sent with the request
transports: ['websocket', 'polling']
});

// Socket Listeners and Caller
const getMatch = (userData) => socket.emit("match", userData);
Expand Down Expand Up @@ -38,4 +41,4 @@ export {
hangUp,
onHangup,
removerListeners
};
};

0 comments on commit 301df4f

Please sign in to comment.