export function createWebSocket() { let appUrl = process.env.APP_URL; appUrl = `//${appUrl}/chat-service`; return new WebSocket(appUrl); }