mirror of
https://github.com/pikvm/pikvm
synced 2024-11-06 21:20:32 +00:00
Update API docs with missing Python imports for Python wss key example (#1042)
This commit is contained in:
parent
f7d35db2e6
commit
4eeda6b183
@ -120,6 +120,7 @@ Another type of event is `ping`, which can be sent by the client: `{"event_type"
|
||||
```python
|
||||
# python, install websocket-client
|
||||
import websocket
|
||||
import ssl, time
|
||||
uri = "wss://10.0.0.7/api/ws?stream=0"
|
||||
headers = {"X-KVMD-User": "admin", "X-KVMD-Passwd": "admin"}
|
||||
ws = websocket.WebSocket(sslopt={"cert_reqs": ssl.CERT_NONE})
|
||||
|
Loading…
Reference in New Issue
Block a user