refactor(WebSocket): migrate from SSE to WebSocket for real-time messaging
- Replaced SSEClient with WSClient for handling real-time messaging. - Updated ProcessMessageUseCase to initialize WebSocket listeners. - Refactored messageService to prioritize WebSocket for sending messages, with fallback to HTTP. - Removed sseService and adjusted imports across the application to utilize wsService. - Enhanced message handling and connection management for improved performance and reliability.
This commit is contained in:
@@ -76,7 +76,7 @@ export const lightColors = {
|
||||
link: '#4A88C7',
|
||||
success: '#34C759',
|
||||
danger: '#FF3B30',
|
||||
bubbleOutgoing: '#7CB9FF', // 柔和的淡蓝色
|
||||
bubbleOutgoing: '#E8E8E8', // 柔和的淡灰色
|
||||
bubbleIncoming: '#FFFFFF', // 对方发的消息 - 纯白
|
||||
replyTint: '#DFF2FF',
|
||||
replyTintActive: '#CFEAFF',
|
||||
@@ -168,7 +168,7 @@ export const darkColors = {
|
||||
link: '#5AC8FA',
|
||||
success: '#32D74B',
|
||||
danger: '#FF453A',
|
||||
bubbleOutgoing: '#2E5A8C', // 暗色模式:深蓝气泡
|
||||
bubbleOutgoing: '#3A3A3C', // 暗色模式:深灰色
|
||||
bubbleIncoming: '#2C2C2E', // 暗色模式:灰色气泡
|
||||
replyTint: '#1A3A52',
|
||||
replyTintActive: '#224060',
|
||||
|
||||
Reference in New Issue
Block a user