diff --git a/js/socket.js b/js/socket.js index 0baf59d..336db60 100644 --- a/js/socket.js +++ b/js/socket.js @@ -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); @@ -38,4 +41,4 @@ export { hangUp, onHangup, removerListeners -}; \ No newline at end of file +};