Remove the check for localhost.
This commit is contained in:
parent
186ca13025
commit
a1c70b776b
@ -1,11 +1,6 @@
|
|||||||
export function createWebSocket() {
|
export function createWebSocket() {
|
||||||
let appUrl = process.env.APP_URL;
|
let appUrl = process.env.APP_URL;
|
||||||
|
appUrl = `//${appUrl}/chat-service`;
|
||||||
if (appUrl.includes('localhost')) {
|
|
||||||
appUrl = `//${appUrl}/chat-service`;
|
|
||||||
} else {
|
|
||||||
appUrl = `//${appUrl}/chat-service`;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new WebSocket(appUrl);
|
return new WebSocket(appUrl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user