https://pypi.org/project/websocket-clie ... connection
communication can be made secure
Code: Select all
$ diff ws.py wss.py
1a2
> import ssl
30c31
< ws = websocket.WebSocketApp("ws://echo.websocket.org/",
---
> ws = websocket.WebSocketApp("wss://echo.websocket.org/",
35c36
< ws.run_forever()
---
> ws.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE})
$
https://twitter.com/HermannSW/status/10 ... 2433609728
Then I applied the same three changes to webrepl_client.py console client.
Unfortunately it hangs before ESP32 MicroPython even sends the Password prompt (traffic is SSL).
Initial handshake, successful push from webrepl_client.py to ESP32 with ACK, then nothing:
From the mentioned sample client above we know that "ws://echo.websocket.org/" as well as "wss://echo.websocket.org/" both work.
Does section of webrepl on not able to use "https:" indicate that WebREPL "wss:" is not implemented?
https://github.com/micropython/webrepl# ... icropython
The test at least proves that it is not enabled.
What is needed to either enable "wss:" or enhance WebREPL to support "wss:"?