-
Notifications
You must be signed in to change notification settings - Fork 38
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
Websocket connection failed : WebSocket is closed before the connection is established. #13
Comments
Hi @MeriemBo ! Which websocket server are you using to proxy the connections to guacamole? Are you using this one for testing: https://github.com/ILLGrenoble/guacamole-test-server ? |
No , actually I'm not using that server for testing.I didn't know that I need an intermediate server. |
@MeriemBo - Yups, you will need an intermediate server. The intermediate server will create a websocket connection. The websocket connection will establish a connection to guacd (guacamole server) and create the RDP/VNC connection to your chosen remote server. Once a connection has been established, the RDP/VNC data will be relayed over the websocket back to the client. In regards to the test server: Modifying the code to use your own type of authentication/authorisation workflow shouldn't be too involved. Although it is a test server (I've tried to keep the code minimal), it should give you a good start to implement proper security policies for accessing your machines. Good luck :-) |
Thank you so much for your explanation. |
Hello, thank you again . I am doing my tests with the test server you provided , but I don't know exactly what are the changes that should be made in the code in order to make it work for my app. |
Did you manage to solve it @MeriemBo? I'm having the same problem and I don't know anything about webSocket... |
Im using the test server mentioned above., But after the test server deployment, when it hit the IP:port its throwing 404., What am I missing. |
Hello , I'm using the package in my angular 6 app , and the Webstocket is closed before the connection is established. here's my code :
import { Component, OnInit } from '@angular/core';
import { RemoteDesktopManager } from '@illgrenoble/ngx-remote-desktop';
import { WebSocketTunnel } from '@illgrenoble/guacamole-common-js';
@component({
selector: 'app-rdp',
templateUrl: './rdp.component.html',
styleUrls: ['./rdp.component.scss']
})
export class RDPComponent implements OnInit {
private manager: RemoteDesktopManager;
handleHelp() {
console.log('Hello help');
}
handleEnterFullScreen() {
this.manager.setFullScreen(true);
}
}
what am I doing wrong ?
The text was updated successfully, but these errors were encountered: