BetaRavener/upy-websocket-server

Missing module for websocket-demo.py

SouperMan3 opened this issue · 3 comments

where might I find find the module "websocket_helper"

Seems like the module was removed in micropython 1.20, you can either use older version of micropython or get the file here: https://github.com/micropython/micropython/blob/v1.19/extmod/webrepl/websocket_helper.py

The code in 1.20 moved to extmod/webrepl/webrepl.py (see PR), you could also import that instead.

The code in [websocket_helper.py]
https://github.com/micropython/micropython/blob/v1.19/extmod/webrepl/websocket_helper.py) and extmod/webrepl/webrepl.py is not the same. May be it`s better just add server_handshake definition to ws_server.py?