Migrate frontend realtime messaging to SSE.

Switch service integrations and screen/store consumers from websocket events to SSE, and ignore generated dist-web artifacts.

Made-with: Cursor
This commit is contained in:
2026-03-10 12:58:23 +08:00
parent 63e32b15a3
commit be84c01abd
25 changed files with 974 additions and 1305 deletions

View File

@@ -441,6 +441,16 @@ class MessageService {
});
}
/**
* 上报输入状态
* POST /api/v1/conversations/typing
*/
async sendTyping(conversationId: string): Promise<void> {
await api.post('/conversations/typing', {
conversation_id: conversationId,
});
}
/**
* 获取未读总数
* GET /api/v1/conversations/unread/count