Update 07-python.mdx

This commit is contained in:
wade zhang 2023-11-30 17:09:44 +08:00 committed by GitHub
parent 200b669581
commit bb37f635a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -817,7 +817,7 @@ There is a optional parameter called `req_id` in `schemaless_insert` and `schema
### Data Subscription
Client library support data subscription. For more information about subscroption, please refer to [Data Subscription](../develop/tmq/).
Client library support data subscription. For more information about subscroption, please refer to [Data Subscription](../../develop/tmq/).
#### Create a Topic
@ -842,7 +842,7 @@ consumer = Consumer({"group.id": "local", "td.connect.ip": "127.0.0.1"})
In addition to native connections, the client library also supports subscriptions via websockets.
The syntax for creating a consumer is "consumer = consumer = Consumer(conf=configs)". You need to specify that the `td.connect.websocket.scheme` parameter is set to "ws" in the configuration. For more subscription api parameters, please refer to [Data Subscription](../../../develop/tmq/#create-a-consumer).
The syntax for creating a consumer is "consumer = consumer = Consumer(conf=configs)". You need to specify that the `td.connect.websocket.scheme` parameter is set to "ws" in the configuration. For more subscription api parameters, please refer to [Data Subscription](../../develop/tmq/#create-a-consumer).
```python
import taosws