docs: update wg-basic/websocket

This commit is contained in:
Administrator 2021-09-14 07:28:11 +00:00 committed by John Smith
parent 0261f0e7a4
commit ebb1697780

View File

@ -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. 消息编码