Is there any kind of example code in go I can use to establish a websocket 
connection and send keyboard commands?

In the simplest way I was trying to connect directly to the console proxy via 
ws://<ip>:8080/websockify?token=<token>

I used the token created by api call createConsoleEndpoint.

Regards,
Swen

-----Ursprüngliche Nachricht-----
Von: Wei ZHOU <[email protected]> 
Gesendet: Montag, 18. März 2024 15:13
An: [email protected]
Betreff: Re: send keyboard commands via websocket

It looks like the connection is not established.

Does the VNC client support websocket ? What websocket URL does the VNC client 
connect to ?



-Wei

On Mon, Mar 18, 2024 at 1:35 PM <[email protected]> wrote:
>
> It does not matter which commands I am sending, I run into the same error.
>
> I created a small go program which uses github.com/mitchellh/go-vnc to 
> establish connection.
> I use this map for keyboard commands: 
> https://github.com/qemu/qemu/blob/master/ui/vnc_keysym.h
>
> Is there a working program out there which works and I can test with?
>
> Regards,
> Swen
>
>
> -----Ursprüngliche Nachricht-----
> Von: Wei ZHOU <[email protected]>
> Gesendet: Montag, 18. März 2024 12:43
> An: [email protected]
> Betreff: Re: send keyboard commands via websocket
>
> What keyboard command do you use?
>
> -Wei
>
> On Mon, Mar 18, 2024 at 12:39 PM <[email protected]> wrote:
> >
> > Does anybody have any idea? When I try to do this I get this error:
> > no suitable auth schemes found. server supported: []byte{0x13}
> >
> > regards,
> > Swen
> >
> > -----Ursprüngliche Nachricht-----
> > Von: [email protected] <[email protected]>
> > Gesendet: Montag, 11. März 2024 12:34
> > An: [email protected]
> > Betreff: send keyboard commands via websocket
> >
> > Hello,
> >
> > did somebody sucssefully send keyboard commands via websocket to noVNC?
> >
> > I create websocket connection data via api createConsoleEndpoint and 
> > I am also able to connect via websocket client (Firefox Weasel) to it.
> >
> > I also see via tcpdump on the console proxy system vm incoming 
> > traffic. But I was not able to send any keyboard commands via 
> > websocket ton the VNC console.
> >
> > Does anybody know how to send keyboard commands via a websocket 
> > client to the console of an instance?
> >
> >
> >
> > Regards,
> >
> > Swen
> >
> >
> >
>
>


Reply via email to