If you are still interested in using websockify, there is a simple example of using it to create an echo server in the kit] (https://github.com/kanaka/websockify/blob/master/tests/echo.py).
You can run it like this (from websockify check):
./tests/echo.py 8080
Go to localhost: 8080 / tests / echo.html. Enter localhost, 8080 for the host and WebSocket port and click connect. You should see how the client sends messages, and the server sends them back (with the prefix "You said:").
kanaka
source share