How to connect to vncwebsocket?

brabrabra

New Member
Apr 20, 2023
1
1
3
Hi,I'm beginner of proxmox ,so the question maybe seem so stupid.
I want to access to a vm in my website via the api VNCwebsocket .I have make http request following the API document and get a port(5900) as response.
but i don't know how to connect to the websocket using javascript.
should i do like something this?
1682526493268.png
what i look forward to fulfilling is opening a new page of novnc just like the web GUI do.
can you give me a example using javascript ....It's been bothering me for a long time
i would be greatly appreciated :)
 
  • Like
Reactions: michaaels

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!