amitbet / vncproxy

An RFB proxy, written in go that can save and replay FBS files
Other
206 stars 45 forks source link

Listening on websocket #24

Open Shubham1605 opened 2 years ago

Shubham1605 commented 2 years ago

In the proxy poc, there is option to specify ws port.And on doing on it creates a ws listener on that port. But how can we consume it.Creating simple websocket client wouldn't work due to protocol mismatch issue and all vnc viewers(tightvnc, tigervnc, etc) listens on tcp port.

amitbet commented 2 years ago

This is not meant to be used by a vanilla websocket client, which doesn't know the VNC protocol.

Traditional vnc client/servers use TCP communication (vncproxy offers a TCP port for that reason), if you want to use a web vnc client (like noVnc) you run this as a websocket so it connects to the server via TCP and opens a WSocket for the noVnc client. This way you don't need any additional adapters to connect while using a browser based client