export function createWebSocket() { try { return new WebSocket("ws://localhost:3000/chat-service"); } catch (e) { console.error(e); throw e; } }