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