Skip to content

04. HTTP API 接口参考

接口分类路径方法说明
基础/websocket/online-countGET获取在线用户数
/websocket/online-usersGET获取在线用户列表
/websocket/is-online/{userId}GET检查用户是否在线
消息/websocket/send-private-msgPOST发送私聊消息
/websocket/send-group-msgPOST发送群聊消息
/websocket/send-system-msgPOST发送系统消息
/websocket/recall-messagePOST撤回消息
状态/websocket/mark-readPOST标记单条已读
/websocket/mark-read-batchPOST批量标记已读
/websocket/unread-count/{userId}GET获取总未读数
会话/websocket/conversation/list/{userId}GET获取会话列表
/websocket/conversation/pinPOST置顶会话
/websocket/conversation/mutePOST免打扰设置
/websocket/conversation/clear-unreadPOST清空未读数
离线/websocket/offline-messages/{userId}GET获取离线消息列表
历史/websocket/chat-history/privateGET私聊历史 (userId1, userId2)
/websocket/chat-history/group/{chatRoomId}GET群聊历史

Released under the MIT License.