diff --git a/chat-app/frontend/websocket.js b/chat-app/frontend/websocket.js index 0db784c..22318b1 100644 --- a/chat-app/frontend/websocket.js +++ b/chat-app/frontend/websocket.js @@ -1,11 +1,6 @@ export function createWebSocket() { let appUrl = process.env.APP_URL; - - if (appUrl.includes('localhost')) { - appUrl = `//${appUrl}/chat-service`; - } else { - appUrl = `//${appUrl}/chat-service`; - } + appUrl = `//${appUrl}/chat-service`; return new WebSocket(appUrl); }