deployment-talks/chat-app/frontend/websocket.js

7 lines
146 B
JavaScript

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