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