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

6 lines
141 B
JavaScript

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