From ebb16977802c7ea296324c6007eb6573665f0b61 Mon Sep 17 00:00:00 2001 From: Administrator <450292408@qq.com> Date: Tue, 14 Sep 2021 07:28:11 +0000 Subject: [PATCH] docs: update wg-basic/websocket --- wg-basic/websocket.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wg-basic/websocket.md b/wg-basic/websocket.md index 9b8d56d..96a7cfc 100644 --- a/wg-basic/websocket.md +++ b/wg-basic/websocket.md @@ -2,7 +2,7 @@ title: 7.即时消息 description: 即时消息模块的使用 published: true -date: 2021-09-14T07:27:43.385Z +date: 2021-09-14T07:28:10.007Z tags: wg-basic editor: markdown dateCreated: 2021-09-14T06:25:26.887Z @@ -49,9 +49,8 @@ websocket: 消息格式为 **JSONObject** 字符串 具体内容如下表 - | 属性 | 说明 | 类型 | 是否可空 | -| :-: | :-: | :-: | :-: | +|-|-|-|-| | id | 消息ID,唯一 | String | 否 | | type | 消息类型编码 | Integer | 否 | | isSystem | 是否是系统消息 | Boolean | 否 | @@ -60,7 +59,6 @@ websocket: | body | 消息主体,主体的具体格式会根据 **消息编码(type)** 的变化而变化 | String | 否 | | timestamp | 消息时间戳 millisecond | Long | 是 | - 注:from与to可以相同 ## 2. 消息编码