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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user