docs: update wg-basic/websocket
This commit is contained in:
parent
b9d673e2b6
commit
0261f0e7a4
@ -2,7 +2,7 @@
|
||||
title: 7.即时消息
|
||||
description: 即时消息模块的使用
|
||||
published: true
|
||||
date: 2021-09-14T07:27:06.350Z
|
||||
date: 2021-09-14T07:27:43.385Z
|
||||
tags: wg-basic
|
||||
editor: markdown
|
||||
dateCreated: 2021-09-14T06:25:26.887Z
|
||||
@ -49,6 +49,7 @@ websocket:
|
||||
消息格式为 **JSONObject** 字符串
|
||||
具体内容如下表
|
||||
|
||||
|
||||
| 属性 | 说明 | 类型 | 是否可空 |
|
||||
| :-: | :-: | :-: | :-: |
|
||||
| id | 消息ID,唯一 | String | 否 |
|
||||
@ -59,6 +60,7 @@ websocket:
|
||||
| body | 消息主体,主体的具体格式会根据 **消息编码(type)** 的变化而变化 | String | 否 |
|
||||
| timestamp | 消息时间戳 millisecond | Long | 是 |
|
||||
|
||||
|
||||
注:from与to可以相同
|
||||
|
||||
## 2. 消息编码
|
||||
|
Loading…
Reference in New Issue
Block a user