From 0086c53810bf73cb069a854379a084f9c0429ec6 Mon Sep 17 00:00:00 2001 From: Ansuman Dhar <48406323+iamansuthecoda@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:04:28 +0530 Subject: [PATCH] Changing server endpoint --- public/js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/script.js b/public/js/script.js index 3c2f48b..c20cdd7 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -1,6 +1,6 @@ const DEVMODE = Boolean(location.hostname == 'localhost'); const SETTINGS = { - socketServerLocation: DEVMODE ? 'http://localhost:8082' : 'https://namaste.onrender.com/', + socketServerLocation: DEVMODE ? 'http://localhost:8082' : 'https://namaste-server.onrender.com/', cryptoWorkerLocation: './js/Encryption/Workers/sec-v1.3-Worker.js', }; const socket = io(SETTINGS.socketServerLocation, { autoConnect: false }); @@ -328,4 +328,4 @@ function endCall(fromServer=false, sendRequestToSocketID=user.currentCallRemoteS user.currentCallRemoteSocketID = null; toggleView([DOMElements.videoCallModal, DOMElements.videoCallModalFloatBtn]); if (!fromServer) socket.emit('send-end-call', { socketID: sendRequestToSocketID }); -} \ No newline at end of file +}