Update API docs with missing Python imports for Python wss key example (#1042)

This commit is contained in:
David Howell 2023-06-28 04:19:52 -07:00 committed by GitHub
parent f7d35db2e6
commit 4eeda6b183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ Another type of event is `ping`, which can be sent by the client: `{"event_type"
```python ```python
# python, install websocket-client # python, install websocket-client
import websocket import websocket
import ssl, time
uri = "wss://10.0.0.7/api/ws?stream=0" uri = "wss://10.0.0.7/api/ws?stream=0"
headers = {"X-KVMD-User": "admin", "X-KVMD-Passwd": "admin"} headers = {"X-KVMD-User": "admin", "X-KVMD-Passwd": "admin"}
ws = websocket.WebSocket(sslopt={"cert_reqs": ssl.CERT_NONE}) ws = websocket.WebSocket(sslopt={"cert_reqs": ssl.CERT_NONE})