20260625215406

This commit is contained in:
oneao committed 2026-06-25 21:54:06 +08:00
1 parent 2e928710df
commit 5e6f9252d5
9 files changed
+295 -235

No files matched your search

@@ -67,7 +67,7 @@ export function useChatWebSocket() {
const apiUrl = process.env.EXPO_PUBLIC_API_URL || "";
const wsProtocol = apiUrl.startsWith("https") ? "wss" : "ws";
const host = apiUrl.replace(/^https?:\/\//, "");
return `${wsProtocol}://${host}/app/chat/ws?token=${token}&family_id=${familyId}`;
return `${wsProtocol}://${host}/chat/ws?token=${token}&family_id=${familyId}`;
}, [token, familyId]);
const connect = useCallback(() => {