From 88ae16bebde729e1937c6bd941950e00bc285dba Mon Sep 17 00:00:00 2001 From: menshibin Date: Sat, 3 Aug 2024 03:03:19 +0800 Subject: [PATCH] add python example --- docs/zh/08-develop/07-tmq.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/zh/08-develop/07-tmq.md b/docs/zh/08-develop/07-tmq.md index a9c2b391d3..f148dde9b2 100644 --- a/docs/zh/08-develop/07-tmq.md +++ b/docs/zh/08-develop/07-tmq.md @@ -605,10 +605,12 @@ TMQ 消息队列是一个 [futures::Stream](https://docs.rs/futures/latest/futur - +
+完整 Websocket 连接代码示例 ```python {{#include docs/examples/python/tmq_websocket_example.py}} ``` +
@@ -659,10 +661,12 @@ TMQ 消息队列是一个 [futures::Stream](https://docs.rs/futures/latest/futur - +
+完整原生连接代码示例 ```python {{#include docs/examples/python/tmq_native.py}} ``` +