Skip to content

Commit 04d99a1

Browse files
committed
docs: fix #27
1 parent 6ef48bb commit 04d99a1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/apis/SystemAPI/Network.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,31 +155,31 @@ In the process of WS working, when a message is received or an error occurs, the
155155

156156
#### List of Listening Events
157157

158-
##### `"onTextReceived"` - Listen for string messages.
158+
**`"onTextReceived"` - Listen for string messages.**
159159

160160
- Listener function prototype
161161
`function(msg)`
162162
- Parameter:
163163
- msg : `String`
164164
Received string message.
165165

166-
##### `"onBinaryReceived"` - Listen for binary messages.
166+
**`"onBinaryReceived"` - Listen for binary messages.**
167167

168168
- Listener function prototype
169169
`function(data)`
170170
- Parameter:
171171
- data : `ByteBuffer`
172172
Received binary message.
173173

174-
##### `"onError"` - Listen for errors.
174+
**`"onError"` - Listen for errors.**
175175

176176
- Listener function prototype
177177
`function(msg)`
178178
- Parameter:
179179
- msg : `String`
180180
Error message.
181181

182-
##### `"onLostConnection"` - Listen for lost connections.
182+
**`"onLostConnection"` - Listen for lost connections.**
183183

184184
- Listener function prototype
185185
`function(code)`

docs/apis/SystemAPI/Network.zh.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,31 +165,31 @@
165165

166166
#### 监听事件列表
167167

168-
##### `"onTextReceived"` - 收到文本消息
168+
**`"onTextReceived"` - 收到文本消息**
169169

170170
- 监听函数原型
171171
`function(msg)`
172172
- 参数:
173173
- msg : `String`
174174
收到的文本消息
175175

176-
##### `"onBinaryReceived"` - 收到二进制消息
176+
**`"onBinaryReceived"` - 收到二进制消息**
177177

178178
- 监听函数原型
179179
`function(data)`
180180
- 参数:
181181
- data : `ByteBuffer`
182182
收到的二进制消息
183183

184-
##### `"onError"` - 发生错误
184+
**`"onError"` - 发生错误**
185185

186186
- 监听函数原型
187187
`function(msg)`
188188
- 参数:
189189
- msg : `String`
190190
错误的提示信息
191191

192-
##### `"onLostConnection"` - 连接丢失
192+
**`"onLostConnection"` - 连接丢失**
193193

194194
- 监听函数原型
195195
`function(code)`

0 commit comments

Comments
 (0)