2024-10-05 02:57:21 +00:00
|
|
|
export function createWebSocket() {
|
2024-10-24 02:32:15 +00:00
|
|
|
let appUrl = Bun.env.APP_URL;
|
2024-10-24 02:20:44 +00:00
|
|
|
appUrl = `//${appUrl}/chat-service`;
|
2024-10-24 02:18:29 +00:00
|
|
|
return new WebSocket(appUrl);
|
2024-10-05 02:57:21 +00:00
|
|
|
}
|