From 4eeda6b1832141ac2b62d115976f21e7d237b6fb Mon Sep 17 00:00:00 2001 From: David Howell Date: Wed, 28 Jun 2023 04:19:52 -0700 Subject: [PATCH] Update API docs with missing Python imports for Python wss key example (#1042) --- docs/api.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api.md b/docs/api.md index 4883f64a..b3f20dae 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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})