Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the exact guacd error code #27

Open
Abhishek627 opened this issue Sep 19, 2024 · 1 comment
Open

How to get the exact guacd error code #27

Abhishek627 opened this issue Sep 19, 2024 · 1 comment

Comments

@Abhishek627
Copy link

I want to get the exact error code or error message from underlying guacd code. How do I get it ?

This is my code right now.

        mux := http.NewServeMux()

	// prepare Websocket server
	wsSraServer := guac.NewWebsocketServer(cfg.wsDoConnect)
	mux.Handle("/test/ext/websocket-tunnel", wsSraServer)

	if cfg.httpTunnel == "enable" {
		// prepare HTTP server
		httpSraServlet := guac.NewServer(cfg.httpDoConnect)
		mux.Handle("/tunnel", httpSraServlet)
		mux.Handle("/test/ext/tunnel", httpSraServlet)
	}	

	//wsSraServer.OnConnectWs = cfg.OnConnectWs
	// wsSraServer.OnDisconnectWs = cfg.OnDisconnectWs
@Abhishek627
Copy link
Author

CC @jakecoffman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant