We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be892d9 + cdf0ea4 commit 96e2a47Copy full SHA for 96e2a47
docs/xrobot/platform/websocket.md
@@ -402,6 +402,28 @@ WebSocket 支持 **🎵 音频数据帧**(二进制方式)以及 **文本帧
402
```
403
404
##### 5. Notify 消息
405
+设备需要在 hello 消息的 features 字段中声明对 notify 事件的支持:
406
+```json
407
+{
408
+ "type": "hello",
409
+ "version": 1,
410
+ "features": {
411
+ "mcp": true,
412
+ "notify": {
413
+ "config_updated": true
414
+ }
415
+ },
416
+ "transport": "websocket",
417
+ "audio_params": {
418
+ "format": "opus",
419
+ "sample_rate": 16000,
420
+ "channels": 1,
421
+ "frame_duration": 60,
422
+ "play_buffer_duration": 1000
423
424
+}
425
+```
426
+然后智能体配置更新后,服务端会向设备端发送配置更新的通知
427
```json
428
{
429
"type": "notify",
0 commit comments