Mike Jumper wrote
> Why are you manually invoking sendMessage()?
Well i'm creating an interval to keep checking if connection is alive,
here's the code
tunnel: any = new Guacamole.HTTPTunnel('tunnel');
guac: any = new Guacamole.Client(this.tunnel);
try {
this.tunnel.connect('tunnel');
console.log('connected tunnel');
}catch(err){
console.log('error connecting to tunnel', err)
throw err;
}
//ensures connection is alive
window.setInterval(() => {
console.log('sending ping');
this.tunnel.sendMessage('nop');
}, 5000);
Mike Jumper wrote
> If your tunnel is returning HTTP 500, you will need to look at the
> server-sode code of your tunnel implementation. Running it under a
> debugger
> may be in order.
>
> - Mike
I'm reading the logs from guacd with DEBUG level on, nothing different is
being thrown when calling "this.tunnel.connect(...);" vs when not calling
it.. and the try/catch around "this.tunnel.connect" is not catching an
error.. Should I be reading through trace or is there a better way to narrow
down the issue on why tunnel.connect isn't working?
--
Sent from:
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/