Remove the check for localhost.

This commit is contained in:
Dave Smith-Hayes 2024-10-23 22:20:44 -04:00
parent 186ca13025
commit a1c70b776b

View File

@ -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);
}