Skip to content

Commit

Permalink
Merge pull request #1024 from haoxiuwen/doc-v2
Browse files Browse the repository at this point in the history
Modify IM Docs
  • Loading branch information
haoxiuwen authored Nov 5, 2024
2 parents 1a5b805 + 1117ef5 commit b1284ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/document/server-side/message_chatroom.md
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
| 400 | message_send_error | message is too large | 请求体内容中 `body``ext` 字段的内容过大。 | 限制 `body``ext` 字段的内容。 |
| 403 | message_send_error | message send reach limit | 消息发送频率超出限制(默认 1 秒内只允许发送 100 条聊天室消息)。 | 限制消息发送频率,详见[文档说明](message_group.html#发送定向消息)|

1. 对于聊天室广播消息,如果返回的 HTTP 状态码非 `200`,表示请求失败。除了发送普通消息的常见错误码,还可能提示以下错误码:
3. 对于聊天室广播消息,如果返回的 HTTP 状态码非 `200`,表示请求失败。除了发送普通消息的常见错误码,还可能提示以下错误码:

| HTTP 状态码 | 错误类型 | 错误提示 | 可能原因 | 处理建议 |
|:---------|:-------------------|:-----------------|:-----------|:----------|
Expand Down
5 changes: 2 additions & 3 deletions docs/uikit/chatroomuikit/ios/roomuikit_best_practice.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 最佳实践

若要了解以上最佳实践的详情,请访问 [GitHub 仓库](https://github.com/easemob/ChatroomDemo/tree/dev/iOS/ChatroomDemo)

## 初始化 ChatroomUIKit

初始化是使用 ChatroomUIKit 的必要步骤,需在所有接口方法调用前完成。
Expand Down Expand Up @@ -72,6 +74,3 @@ addSubView(roomView)
ChatroomUIKitClient.shared.registerRoomEventsListener(self)
```

## 参考

若要了解以上最佳实践的详情,请访问 [GitHub 仓库](https://github.com/easemob/ChatroomDemo/tree/dev/iOS/ChatroomDemo)
2 changes: 2 additions & 0 deletions docs/uikit/chatroomuikit/ios/roomuikit_quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,5 @@ let roomView = ChatroomUIKitClient.shared.launchRoomView(roomId: "Chat room ID",
点击屏幕下方的 `说点什么` 按钮唤起键盘,输入消息内容,点击 **发送** 按钮,发送消息。

![img](/images/uikit/chatroomios/click_chat.png =500x500)

上图为聊天室 Demo 显示的内容,如果要实现类似的样式,可以点击[这里](https://github.com/easemob/ChatroomDemo/tree/dev/iOS/ChatroomDemo)

0 comments on commit b1284ef

Please sign in to comment.