diff --git a/next.config.ts b/next.config.ts index c4ede2aa..2863d1fd 100644 --- a/next.config.ts +++ b/next.config.ts @@ -32,6 +32,10 @@ const nextConfig: NextConfig = { hostname: "**.supabase.co", pathname: "/storage/v1/object/public/**", }, + { + protocol: "https", + hostname: "free.picui.cn", + }, ], }, }; diff --git a/src/core/net/chat-websocket.ts b/src/core/net/chat-websocket.ts index 81ced9b0..5c78af72 100644 --- a/src/core/net/chat-websocket.ts +++ b/src/core/net/chat-websocket.ts @@ -1,10 +1,6 @@ /** * 聊天 WebSocket 处理器 - * - * 原始 Dart: lib/core/net/websocket_handler.dart - * - * 浏览器方案:使用原生 `WebSocket` API,封装连接管理 + 重连 + 事件回调。 - * + * * 事件: * - onConnected(userId) * - onTyping(isTyping)