Project URL https://github.com/novnc/websockify-other
apt install openssl-devgit clone [email protected]:novnc/websockify-other.git websockifycd websockify/cmakecp websockify /usr/bin
- Run a service (say netcat/nc) which listen at some TCP port (say 12345)
nc -l -p 12345
- Run websockify to listen at some websocket port (say 8080)
/usr/bin/websockify -D 8080 localhost:12345
- Connect using some websocket client (say browser with JS)
ws = new WebSocket("ws://localhost:8080/");- reference for JS ws client https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications
- You can also use any online tool e.g. https://www.piesocket.com/websocket-tester
Use below sample recipe file websockify_git.bb