feat: implement websocket URL creation and enhance websocket connection logging

This commit is contained in:
mlogclub
2026-04-14 19:59:49 +08:00
parent 2222256f5a
commit 0f3d110018
5 changed files with 27 additions and 8 deletions
+6
View File
@@ -0,0 +1,6 @@
const API_BASE_URL =
process.env.NEXT_PUBLIC_API_BASE_URL?.trim() || "http://127.0.0.1:8083"
export function createWebSocketBaseUrl() {
return API_BASE_URL.replace(/^http/, "ws").replace(/\/$/, "")
}