Skip to content

How to get the exact guacd error code  #27

@Abhishek627

Description

@Abhishek627

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions