From 048f7c3695ff615c55aa0e2803f51b2a88418947 Mon Sep 17 00:00:00 2001 From: Administrator <450292408@qq.com> Date: Sat, 9 Oct 2021 09:45:37 +0000 Subject: [PATCH] docs: update wg-basic/websocket --- wg-basic/websocket.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wg-basic/websocket.md b/wg-basic/websocket.md index 2c5b955..6effc72 100644 --- a/wg-basic/websocket.md +++ b/wg-basic/websocket.md @@ -2,7 +2,7 @@ title: 7.即时消息 description: 即时消息模块的使用 published: true -date: 2021-10-09T09:45:06.612Z +date: 2021-10-09T09:45:36.243Z tags: wg-basic editor: markdown dateCreated: 2021-09-14T06:25:26.887Z @@ -44,7 +44,7 @@ websocket: 6. 注册成功后,可发起 scoket 请求 # 类型与参数 -## 1. 消息格式说明 +## 1.消息格式说明 消息格式为 **JSONObject** 字符串 具体内容如下表 @@ -61,7 +61,7 @@ websocket: 注:from与to可以相同 -## 2. 消息编码 +## 2.消息编码 | 编码 | 说明 | 主体格式 | | :-: | :-: | :-: | @@ -72,7 +72,7 @@ websocket: | 9001 | 消息发送状态 | StatusBody 的 JSONObject 字符串 | | 9101 | 消息接受状态 | StatusBody 的 JSONObject 字符串 | -## 3. 主体 +## 3.主体 **RegisterBody** @@ -97,7 +97,7 @@ websocket: | target | 目标,需要客户端点击触发效果时使用,可以为约定好的 url、page 等等 | String | 是 | | serviceId | 业务ID | String | 是 | -## 4. 状态码 +## 4.状态码 | 编码 | 名称 | 说明 | | :-: | :-: | :-: |