Some checks failed
Frontend CI / build-android-apk (push) Has been cancelled
Frontend CI / build-and-push-web (push) Has been cancelled
Frontend CI / ota-android (push) Has been cancelled
Frontend CI / ota-android (pull_request) Has been skipped
Frontend CI / build-and-push-web (pull_request) Has been cancelled
Frontend CI / build-android-apk (pull_request) Has been cancelled
Replace WebSocket-based real-time communication with Server-Sent Events (SSE) across the messaging infrastructure. This includes: - Create new SSEClient datasource to manage SSE connections - Create new SSEMessageHandler to process SSE events - Update ProcessMessageUseCase to use SSEClient instead of WebSocketClient - Update MessageManager and MessageStateManager to work with SSE handlers - Rename connection state variables from `isWebSocketConnected` to `isSSEConnected` - Update type definitions in dto.ts (WSEventType → SSEEventType, etc.) - Delete obsolete WebSocketClient and WebSocketMessageHandler files - Update comments and documentation to reflect SSE terminology This refactoring aligns with the backend's SSE implementation for better compatibility with React Native's networking capabilities.
19 lines
655 B
TypeScript
19 lines
655 B
TypeScript
/**
|
|
* 消息模块统一导出
|
|
*/
|
|
|
|
// 导出主要的管理器
|
|
export { messageManager, MessageManager } from './MessageManager';
|
|
|
|
// 导出状态管理器
|
|
export { messageStateManager, MessageStateManager } from './MessageStateManager';
|
|
export type { MessageState, MessageEvent, MessageSubscriber, MessageEventType } from './MessageStateManager';
|
|
|
|
// 导出同步服务
|
|
export { messageSyncService, MessageSyncService } from './MessageSyncService';
|
|
|
|
// 导出SSE处理器
|
|
export { sseMessageHandler, SSEMessageHandler } from './SSEMessageHandler';
|
|
|
|
// 导出已读管理器
|
|
export { readReceiptManager, ReadReceiptManager } from './ReadReceiptManager'; |